This is related with OpenEJB, but it must not be a problem for working sample.

Look https://issues.apache.org/jira/browse/OPENEJB-1131

Gurkan


From: Lu Jiang <jessyever@gmail.com>
To: user@openwebbeans.apache.org
Sent: Tue, August 10, 2010 12:38:53 PM
Subject: Re: How to run the ejb-sample?

Wow,thanks for your quick reply.I am using tomcat 6.0.29.After trying
your way,now I can successfully deploy ejb-sample to tomcat.But when
starting the the application.
An EJB exception will occur,have you ever met this,or is this an OPENEJB bug..
The OPENEJB is downloaded from the URL you provided
http://www.apache.org/dyn/closer.cgi/openejb/3.1.2/openejb.war.

2010-08-10 17:26:53,343 - ERROR - Unable to clear Sun JarFileFactory cache
java.lang.ClassCastException: java.lang.String cannot be cast to java.net.URL
    at org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
    at org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
    at org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:97)
    at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:185)
    at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:509)
    at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380)
    at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:299)
    at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)
    at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
    at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
    at org.apache.openejb.tomcat.catalina.TomcatLoader.init(TomcatLoader.java:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.openejb.loader.Embedder.init(Embedder.java:75)
    at org.apache.openejb.tomcat.loader.TomcatHook.hook(TomcatHook.java:98)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.openejb.tomcat.loader.TomcatEmbedder.embed(TomcatEmbedder.java:77)
    at org.apache.openejb.tomcat.loader.LoaderServlet.init(LoaderServlet.java:44)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)