tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobias koltsch <tob...@koltsch.de>
Subject java.lang.ClassCastException in org.apache.openejb.ClassLoaderUtil
Date Fri, 15 Jan 2010 07:59:28 GMT

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
View raw message