tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Gallimore <jonathan.gallim...@gmail.com>
Subject Re: java.lang.ClassCastException in org.apache.openejb.ClassLoaderUtil
Date Sat, 16 Jan 2010 18:14:07 GMT
Hi,

Just to let you know I've committed a fix for this in trunk - revision
900008.

Cheers

Jon

On Fri, Jan 15, 2010 at 2:03 PM, Jonathan Gallimore <
jonathan.gallimore@gmail.com> wrote:

> Thanks for reporting that. I'll have a go with that and see if I'll have a
> go at sorting it out this evening.
>
> Jon
>
>
> On Fri, Jan 15, 2010 at 7:59 AM, tobias koltsch <tobias@koltsch.de> wrote:
>
>>
>> I use OpenEJB for EJB Unit-Test and everything works fine. Today I changed
>> the Sun-JDK from version 1.6.0_17 to version 1.6.0_18. Everything works
>> fine
>> anymore, but now during the container startup I get this exception:
>>
>>
>> INFO - Beginning load:
>>
>> C:\development\tools\maven\repository\net\sourceforge\jexcelapi\jxl\2.6\jxl-2.6.jar
>> DEBUG - Destroying classLoader URLClassLoader@15628820
>> DEBUG - Destroying classLoaders for application
>>
>> C:\development\tools\maven\repository\net\sourceforge\jexcelapi\jxl\2.6\jxl-2.6.jar
>> DEBUG - Releasing URLs for application
>>
>> C:\development\tools\maven\repository\net\sourceforge\jexcelapi\jxl\2.6\jxl-2.6.jar
>> DEBUG - Clearing Sun JarFileFactory cache for directory
>>
>> C:\development\tools\maven\repository\net\sourceforge\jexcelapi\jxl\2.6\jxl-2.6.jar
>> 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:292)
>>        at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:271)
>>        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
>>        at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>>        at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>>        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.OpenEJBInstance.init(OpenEJBInstance.java:36)
>>        at
>>
>> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
>>        at
>>
>> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
>>        at
>>
>> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
>>        at
>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
>>        at
>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
>>        at javax.naming.InitialContext.init(InitialContext.java:223)
>>        at javax.naming.InitialContext.<init>(InitialContext.java:197)
>>
>>
>> --
>> View this message in context:
>> http://n4.nabble.com/java-lang-ClassCastException-in-org-apache-openejb-ClassLoaderUtil-tp1014577p1014577.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message