geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jazon <reme...@gmail.com>
Subject Re: class-loading
Date Mon, 15 Dec 2008 19:08:14 GMT
the geronimo-web.xml is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<web:web-app xmlns:conn="
http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"
    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
    xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:ejb="
http://openejb.apache.org/xml/ns/openejb-jar-2.2"
    xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:app="
http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
    xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
    xmlns:pers="http://java.sun.com/xml/ns/persistence"
    xmlns:client="
http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0">
    <dep:environment>
        <dep:moduleId>
            <dep:groupId>com.test</dep:groupId>
            <dep:artifactId>testwar</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>war</dep:type>
        </dep:moduleId>
    </dep:environment>
    <dep:inverse-classloading/>
    <web:context-root>/testwar</web:context-root>
</web:web-app>

I am using tomcat.

Thanks


On Mon, Dec 15, 2008 at 12:09 PM, David Jencks <david_jencks@yahoo.com>wrote:

> Could you show us the <environment> element of your geronimo plan?
>
> Also, which geronimo version are you using, jetty or tomcat?
>
> many thanks
> david jencks
>
>
> On Dec 15, 2008, at 8:55 AM, Jazon wrote:
>
>  Hi,
>> I am trying to deploy a web app to Geronimo 2.2-SNAPSHOT. In my
>> geronimo-web.xml, I have <dep:inverse-classloading/>
>> But when the web app starts, I got the following Exception, Can anybody
>> tell me how to solve this problem?
>>
>> org.apache.geronimo.gbean.InvalidConfigurationException: Getter return
>> type in wrong classloader: type: interface
>> javax.management.j2ee.statistics.Stats wanted in classloader:
>> [org.apache.geronimo.kernel.classloader.JarFileClassLoader
>> id=com.test/testwar/1.0/war] actual:
>> [org.apache.geronimo.kernel.classloader.JarFileClassLoader
>> id=org.apache.geronimo.framework/jee-specs/2.2-SNAPSHOT/car]
>>    at
>> org.apache.geronimo.gbean.runtime.GBeanAttribute.<init>(GBeanAttribute.java:230)
>>    at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.buildAttributes(GBeanInstance.java:366)
>>    at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:240)
>>    at
>> org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:352)
>>    at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:441)
>>    at
>> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
>>    at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
>>    at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
>>    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.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>>    at
>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
>>    at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:815)
>>    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$$c7c3a59d.startConfiguration(<generated>)
>>    at
>> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
>>    at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> Thanks
>>
>
>

Mime
View raw message