Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 93047 invoked from network); 15 Dec 2008 19:08:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2008 19:08:49 -0000 Received: (qmail 95210 invoked by uid 500); 15 Dec 2008 19:08:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 95195 invoked by uid 500); 15 Dec 2008 19:08:55 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 95186 invoked by uid 99); 15 Dec 2008 19:08:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 11:08:55 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of remedyu@gmail.com designates 209.85.198.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 19:08:35 +0000 Received: by rv-out-0708.google.com with SMTP id k29so3572585rvb.0 for ; Mon, 15 Dec 2008 11:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=voOe7aK1+c/9frGvRO/bx5OLSELFo36uajoSc8hb+EI=; b=jZfRClX2NkFo8/Y9rFeZM9+VFeratk+rMHuO4tzhmA/40hq+WKqV/mkdc882LFlaKk 4lZSX8nKTC8KlJmDIMFdgzE66tYIIrDY0NGk6iVWGw1fcZx3dM1c2yYhrgfFziJd1Zoi EjnjUt9JXPG/FtatlV3Sz4trerKvYT/lEeZ/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=vkfCf3bwCiFnEKTMGTw4FQR2xcLKd6WpbOMkB8rpaGz2MMfOfl8a1Jdf20FR/TQ8L1 XSx1OohRdcg42jYX+E18uCP5Jg1VXZ+S0XrvjYHTNNXpP1CB86g6PScpjs0bmF8Jgy6f E3BGc5v8lAmzvSh3ZCqJNPi5t7r0ww9uQLx80= Received: by 10.141.49.18 with SMTP id b18mr3870140rvk.96.1229368094909; Mon, 15 Dec 2008 11:08:14 -0800 (PST) Received: by 10.140.50.6 with HTTP; Mon, 15 Dec 2008 11:08:14 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 13:08:14 -0600 From: Jazon To: user@geronimo.apache.org Subject: Re: class-loading In-Reply-To: <5134A3F0-31F0-45AF-8325-DFD4A85849A7@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8940_24574330.1229368094874" References: <5134A3F0-31F0-45AF-8325-DFD4A85849A7@yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8940_24574330.1229368094874 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline the geronimo-web.xml is: com.test testwar 1.0 war /testwar I am using tomcat. Thanks On Mon, Dec 15, 2008 at 12:09 PM, David Jencks wrote: > Could you show us the 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 >> 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.(GBeanAttribute.java:230) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstance.buildAttributes(GBeanInstance.java:366) >> at >> org.apache.geronimo.gbean.runtime.GBeanInstance.(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() >> at >> org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) >> at java.lang.Thread.run(Thread.java:619) >> >> >> >> Thanks >> > > ------=_Part_8940_24574330.1229368094874 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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


------=_Part_8940_24574330.1229368094874--