Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 45774 invoked from network); 31 Aug 2007 17:57:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Aug 2007 17:57:27 -0000 Received: (qmail 99819 invoked by uid 500); 31 Aug 2007 17:57:19 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 99792 invoked by uid 500); 31 Aug 2007 17:57:19 -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 99773 invoked by uid 99); 31 Aug 2007 17:57:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 10:57:19 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 64.233.184.236 as permitted sender) Received: from [64.233.184.236] (HELO wr-out-0506.google.com) (64.233.184.236) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 17:57:14 +0000 Received: by wr-out-0506.google.com with SMTP id 70so498313wra for ; Fri, 31 Aug 2007 10:56:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=CMzEr1yj7NwPIY6Du9MBZ84Mi0UklOiAWc2foHY56QtIdW+gQjJpKwBrZuyACCYEMXuGO4T3291EpOHL1AaxEYt77RX9VQgAU0BPl8WQWF+oeROO7latEOfbMW6lYS0OVyDeLMcgTJMFYQCmDIFwfZiPAknYBakhGhDlpwAYtMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=Uggf0wgb20xyn8rNVag/7x863gtud7XYgnxcX6mpXMNgWSsy7bPh9Xh7nh8CsOAxsWEmiJrlHufqhJFXWspFALrVmR+6nJhLSTRmrueBmYD3l/4gNnf3Iy5MCgvz7Z77IlnKTQRF6pbOv1mDB+T9BM6u+MhhbAEDFZJx1T68cZ4= Received: by 10.90.29.18 with SMTP id c18mr2354697agc.1188583012834; Fri, 31 Aug 2007 10:56:52 -0700 (PDT) Received: from ?10.0.1.200? ( [76.182.118.42]) by mx.google.com with ESMTPS id 1sm6790431agb.2007.08.31.10.56.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2007 10:56:51 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <46D34668.5010304@gmail.com> References: <46D34668.5010304@gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-1--177598055 Message-Id: From: Kevan Miller Subject: Re: Problem at geronimo boot Date: Fri, 31 Aug 2007 13:56:39 -0400 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1--177598055 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Aug 27, 2007, at 5:47 PM, Paolo Denti wrote: > Hi, i am a brand new geronimo user (or at least i am trying to be) > I am trying to deploy already existing applications (EARs), already > working on jboss, without any particular deployment descriptior, on > geronimo. > I always get NPEs at geronimo startup. below you can find the > stacktrace. > it happens if i deploy with geronimo running or if i deploy with > geronimo stopped and then start geronimo. > > environment is > - geronimo 2.0.1 with jetty > - os x 10.4.10 > - jdk 1.5.0_07 > - JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ > CurrentJDK/Home > > thanks > Paolo > > Geronimo Application Server started > 23:16:07,293 ERROR [Deployer] Deployment failed due to > java.lang.NullPointerException > at > org.apache.geronimo.deployment.CopyResourceContext.addFile > (CopyResourceContext.java:144) > at org.apache.geronimo.deployment.DeploymentContext.addFile > (DeploymentContext.java:461) > at > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installM > odule(AbstractWebModuleBuilder.java:288) > at > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder$ > $FastClassByCGLIB$$8523248f.invoke() > 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.j2ee.deployment.ModuleBuilder$ > $EnhancerByCGLIB$$ab38932.installModule() > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModu > le(SwitchingModuleBuilder.java:153) > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$ > $FastClassByCGLIB$$d0c31844.invoke() > Hi Paolo, Backing up to your original problem, I've run some hot-deploy tests (deploying an EAR with WARS, etc), and didn't see a problem. If you can make your app available, I'm sure somebody would take a look at it. Alternatively, you can debug the createModule() method in either the Tomcat or Jetty ModuleBuilders: modules/geronimo-jetty6-builder/src/main/java/org/apache/geronimo/ jetty6/deployment/JettyModuleBuilder.java or modules/geronimo-tomcat6-builder/src/main/java/org/apache/geronimo/ tomcat/deployment/TomcatModuleBuilder.java The builder should be setting specDD to contain the entire contents of the deployment descriptor. It seems that we aren't finding that file. Since your manual deploy is working, it seems that the DD must exist and be in the right place. Perhaps some error is occurring during the hot deployment process... --kevan --Apple-Mail-1--177598055 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Aug 27, 2007, = at 5:47 PM, Paolo Denti wrote:

Hi, i am a brand = new geronimo user (or at least i am trying to be)
I am trying to = deploy already existing applications (EARs), already working on jboss, = without any particular deployment descriptior, on geronimo.
I always = get NPEs at geronimo startup. below you can find the stacktrace.
it = happens if i deploy with geronimo running or if i deploy with geronimo = stopped and then start geronimo.

environment is
- geronimo = 2.0.1 with jetty
- os x 10.4.10
- jdk 1.5.0_07
- = JAVA_HOME=3D/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJD= K/Home

thanks
Paolo

Geronimo Application Server = started
23:16:07,293 ERROR [Deployer] Deployment failed due to
= java.lang.NullPointerException
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.deployment.CopyResourceContext.addFile(CopyResourceCon= text.java:144)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.deployment.DeploymentContext.addFile(DeploymentContext= .java:461)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModul= e(AbstractWebModuleBuilder.java:288)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder$$FastClassBy= CGLIB$$8523248f.invoke(<generated>)
=A0=A0=A0=A0=A0=A0=A0 at = net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
=A0=A0=A0=A0= =A0=A0=A0 at = org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvok= er.java:38)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.jav= a:124)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:= 830)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) =A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationIn= voker.java:35)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMet= hodInterceptor.java:96)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$ab3893= 2.installModule(<generated>)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModule(S= witchingModuleBuilder.java:153)
=A0=A0=A0=A0=A0=A0=A0 at = org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGL= IB$$d0c31844.invoke(<generated>)
=A0=A0 = =A0

Hi Paolo,
Backing = up to your original problem, I've run some hot-deploy tests (deploying = an EAR with WARS, etc), and didn't see a problem. If you can make your = app available, I'm sure somebody would take a look at it.=A0
Alternatively, you can = debug the createModule() method in either the Tomcat or Jetty = ModuleBuilders:

modules/geronimo-jetty6-build= er/src/main/java/org/apache/geronimo/jetty6/deployment/JettyModuleBuilder.= java = or
modules/geronimo-tomcat6-builder/src/main/java/org/apache/ger= onimo/tomcat/deployment/TomcatModuleBuilder.java

The builder should be = setting specDD to contain the entire contents of the deployment = descriptor. It seems that we aren't finding that file. Since your manual = deploy is working, it seems that the DD must exist and be in the right = place. Perhaps some error is occurring during the hot deployment = process...

--kevan
=A0
= --Apple-Mail-1--177598055--