djencks wrote:
>
> I'm having trouble distinguishing between this and the previous
> error. Are you sure this isn't leftover in the log from a previous
> failed run? You might want to start with a fresh copy of geronimo
> just to be certain you are seeing only the most up to date problems :-)
>
> Could you show the environment element from your geronimo plan?
>
I clean the geronimo.log and installed WAR again.
At the same time the Geronimo console displays the message:
"The application was successfully deployed.
The application was successfully started"
and geronimo.log: (same time)
---------------------------------------------------------------------------------------------
13:51:47,763 WARN [ConfigurationUtil] Could not load gbean
default/globalsafe/1208796686919/war?J2EEApplication=null,j2eeType=WebModule,name=default/globalsafe/1208796686919/war
org.apache.geronimo.gbean.InvalidConfigurationException: Getter return type
in wrong classloader: type: interface javax.transaction.UserTransaction
wanted in classloader:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=default/globalsafe/1208796686919/war] actual:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=org.apache.geronimo.configs/jee-specs/2.0.2/car]
at
org.apache.geronimo.gbean.runtime.GBeanAttribute.<init>(GBeanAttribute.java:241)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:245)
at
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:354)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:433)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$dbf181f0.startConfiguration(<generated>)
at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:619)
---------------------------------------------------------------------------------------------
geronimo-web.xml:
---------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
<environment>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.configs</groupId>
<artifactId>javamail</artifactId>
<version>2.0.2</version>
<type>car</type>
</dependency>
<dependency>
<groupId>console.dbpool</groupId>
<artifactId>jdbc%2FGlobalSafeDS</artifactId>
</dependency>
</dependencies>
<non-overridable-classes>
<filter>javax.transaction.</filter>
</non-overridable-classes>
<inverse-classloading/>
</environment>
<context-root>/globalsafe</context-root>
<resource-ref>
<!-- Used in web.xml -->
<ref-name>mail/MailSession</ref-name>
<!-- Default Geronimo mail session -->
<resource-link>mail/MailSession</resource-link>
</resource-ref>
<resource-ref>
<ref-name>jdbc/GlobalSafeDS</ref-name>
<resource-link>jdbc/GlobalSafeDS</resource-link>
</resource-ref>
</web-app>
---------------------------------------------------------------------------------------------
An important information:
If I remove inverse-classloading and non-overridable-classes my app started
and run!!
But I have some problems with the common-lang of geronimo which is version
2.0, and I need the 2.1.
If I use the hidden-classes my application work without any error:
<hidden-classes>
<filter>org.apache.commons</filter>
</hidden-classes>
But I would like to do the inverse ... I want to use the
inverse-classloading instead of hidden-classes. I would give priority to my
WEB-INF\lib instead of putting all jars incompatible in hidden-classes.
--
View this message in context:
http://www.nabble.com/inverse-classloading-error-tp16790691s134p16808276.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.