From user-return-14290-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Tue Dec 08 22:59:19 2009 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 68898 invoked from network); 8 Dec 2009 22:59:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 22:59:19 -0000 Received: (qmail 39667 invoked by uid 500); 8 Dec 2009 22:59:18 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 39610 invoked by uid 500); 8 Dec 2009 22:59:18 -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 39601 invoked by uid 99); 8 Dec 2009 22:59:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 22:59:18 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jaydmchugh@gmail.com designates 209.85.211.195 as permitted sender) Received: from [209.85.211.195] (HELO mail-yw0-f195.google.com) (209.85.211.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 22:59:15 +0000 Received: by ywh33 with SMTP id 33so5945352ywh.23 for ; Tue, 08 Dec 2009 14:58:54 -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 :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=JdDprv9d2UQfFfv9xI+fk6xEM6mQrxhVPUB1yqiJSeE=; b=vWqqPXDsuQMuNJcv3AXEELySoR0R0EXTNeOvfJJqK0yr3aAy8o2Os0jmDjFyZ0jl1+ MzmkofthGUWe03iogZb8N2nh5aAChuClOH2gajtlV+ydhTEQmOHYAI1agcfzQNjl4NT2 160pAxE41lMG+YqGHsZE1PFkKVToEFF318nL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=UvA9R3e1T57k7sCitTWe6wLmvtg4I2O/Ej7TQCEf1AghRNW4xpf0ntAj3wwUJUtIUp OHaMKJANL6Y7xJsghsvGgjzkN6kfhP90kQOChLTF/5miuBQ1D+PBAopZBkEQwqrIvQZG J996QOmxK3iSR6DnttM8e8br3T1B5NVAL2+R8= Received: by 10.90.158.5 with SMTP id g5mr3620077age.104.1260313134102; Tue, 08 Dec 2009 14:58:54 -0800 (PST) Received: from ?172.16.3.3? (198.pubint.com [66.84.139.198]) by mx.google.com with ESMTPS id 22sm4448489iwn.4.2009.12.08.14.58.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 14:58:53 -0800 (PST) Message-ID: <4B1EDA2C.6080805@gmail.com> Date: Tue, 08 Dec 2009 16:58:52 -0600 From: "Jay D. McHugh" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: Cannot reinitialize webapp References: <26700488.post@talk.nabble.com> <4B1EC934.7000405@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hai-Dang, Would you be able to send a copy of your app so that we can further test whether there is a bug in the redeploy? Thanks, Jay David Jencks wrote: > I agree about using "inPlace". > > I don't think your explanation of the redeploy error is accurate, since > the original deploy, whether onlne or offline should install everything > needed into the g. repo. So, there might be a bug in the redeploy comand. > > thanks > david jencks > > On Dec 8, 2009, at 1:46 PM, Jay D. McHugh wrote: > >> Hey Juergen, >> >> Did you perhaps want to do an 'inPlace' deployment? >> >> I think that might give you the result you are looking for. >> >> Then changes to the contents of the /projekte/test directory would >> affect the deployed app. >> >> Otherwise, I believe that an offline deployment would cause your app to >> be uploaded into the Geronimo repository. And if you do not have a >> geronimo-web.xml in that directory (or specify one in the deploy >> command) then Geronimo will not know what you expect your app to be >> called. And that is why you are having problems during the redeploy. >> >> Jay >> >> Juergen Weber wrote: >>> Hi, >>> >>> I played with web apps and G2.2 2009.11.28-05:33:51.600-0800 >>> geronimo-tomcat6-javaee5-2.2 >>> >>> I have deployed an exploded webapp (see below) with >>> >>> ./deploy.sh -u system -p manager --offline deploy /projekte/test >>> >>> I found that restarting the web app does not reflect changes in >>> web.xml, not >>> even in a .jsp >>> This is surprising, as I'd expect, that reloading the page would get >>> changes >>> in a jsp and restarting the app would get changes in web.xml (I >>> believe this >>> is Tomcat's behaviour) >>> >>> I found that the only way to get the changes was to undeploy and >>> deploy the >>> application again. >>> deploy.sh redeploy got me the exception below. >>> >>> I think this behaviour is not quite perfect, I'd very much prefer >>> Tomcat's >>> behaviour. >>> >>> Thanks, >>> Juergen >>> >>> -------------------- >>> >>> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >>> version="2.4"> >>> >>> test >>> >>> >>> hello >>> world >>> >>> >>> >>> -------------------- >>> hello >>> >>> >>> hello is: = <%= application.getInitParameter("hello") %> >>> >>> >>> >>> -------------------- >>> >>> >>> >>> weberjn@linda:/projekte/geronimo-tomcat6-javaee5-2.2/bin$ ./deploy.sh -u >>> system -p manager --offline redeploy /projekte/test >>> Using GERONIMO_HOME: /projekte/geronimo-tomcat6-javaee5-2.2 >>> Using GERONIMO_TMPDIR: var/temp >>> Using JRE_HOME: /projekte/jdk1.6.0_17/jre >>> No ModuleID or TargetModuleID provided. Attempting to guess based >>> on the content of the archive. >>> Unable to locate Geronimo deployment plan in archive. Calculating >>> default ModuleID from archive name. >>> Attempting to use ModuleID 'default/test//' >>> 2009-12-08 21:44:46,516 ERROR [GBeanInstanceState] Error while starting; >>> GBean is now in the FAILED state: >>> abstractName="default/test/1260304611193/car?configurationName=default/test/1260304611193/car" >>> >>> org.apache.geronimo.kernel.config.InvalidConfigException: Class not >>> loadable >>> in classloader: >>> [org.apache.geronimo.kernel.config.MultiParentClassLoader >>> id=default/test/1260304611193/car] >>> at >>> org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:133) >>> >>> at >>> org.apache.geronimo.kernel.config.SerializedGBeanState.getGBeans(SerializedGBeanState.java:64) >>> >>> at >>> org.apache.geronimo.kernel.config.ConfigurationData.getGBeans(ConfigurationData.java:177) >>> >>> at >>> org.apache.geronimo.kernel.config.Configuration.(Configuration.java:295) >>> >>> at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown >>> Source) >>> at >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >>> >>> at >>> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >>> at >>> org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952) >>> >>> at >>> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276) >>> >>> at >>> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) >>> at >>> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) >>> at >>> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:911) >>> >>> at >>> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269) >>> >>> at >>> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) >>> >>> at >>> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525) >>> >>> at >>> org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:359) >>> >>> at >>> org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:163) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1070) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:780) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:747) >>> >>> 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:816) >>> >>> 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$$a2c78da6.reloadConfiguration() >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeployUpdatedConfiguration(RedeployCommand.java:139) >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:106) >>> >>> at java.lang.Thread.run(Thread.java:619) >>> Caused by: java.lang.ClassNotFoundException: Unable to find class >>> used in >>> GBeanData >>> default/test/1260304611193/car?J2EEApplication=null,j2eeType=WebModule,name=default/test/1260304611193/car >>> >>> at >>> org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:363) >>> >>> at >>> org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:282) >>> at >>> org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:124) >>> >>> ... 33 more >>> Caused by: java.lang.ClassNotFoundException: Unable to find class >>> used in >>> GBeanData >>> default/test/1260304611193/car?J2EEApplication=null,j2eeType=WebModule,name=default/test/1260304611193/car, >>> >>> attribute: holder >>> at >>> org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:332) >>> >>> ... 35 more >>> Caused by: java.lang.ClassNotFoundException: Could not load class >>> org.apache.geronimo.j2ee.annotation.Holder from classloader: >>> default/test/1260304611193/car, destroyed state: false >>> at >>> org.apache.geronimo.kernel.ClassLoading.loadClass(ClassLoading.java:213) >>> at >>> org.apache.geronimo.kernel.ObjectInputStreamExt.resolveClass(ObjectInputStreamExt.java:38) >>> >>> at >>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) >>> at >>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) >>> at >>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) >>> >>> at >>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >>> at >>> java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >>> at >>> org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:330) >>> >>> ... 35 more >>> Deployer operation failed: reload of default/test/1260305085420/car >>> failed >>> org.apache.geronimo.kernel.config.LifecycleException: reload of >>> default/test/1260305085420/car failed >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1102) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:780) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:747) >>> >>> 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:816) >>> >>> 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$$a2c78da6.reloadConfiguration() >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeployUpdatedConfiguration(RedeployCommand.java:139) >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:106) >>> >>> at java.lang.Thread.run(Thread.java:619) >>> Caused by: java.lang.NullPointerException >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1040) >>> >>> ... 16 more >>> Redeployed default/test/1260305085420/car >>> 2009-12-08 21:44:46,536 ERROR [DeployTool] Error: >>> org.apache.geronimo.common.DeploymentException: Operation failed: >>> reload of >>> default/test/1260305085420/car failed >>> org.apache.geronimo.kernel.config.LifecycleException: reload of >>> default/test/1260305085420/car failed >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1102) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:780) >>> >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:747) >>> >>> 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:816) >>> >>> 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$$a2c78da6.reloadConfiguration() >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeployUpdatedConfiguration(RedeployCommand.java:139) >>> >>> at >>> org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:106) >>> >>> at java.lang.Thread.run(Thread.java:619) >>> Caused by: java.lang.NullPointerException >>> at >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1040) >>> >>> ... 16 more >>> >>> at >>> org.apache.geronimo.deployment.cli.CommandRedeploy.execute(CommandRedeploy.java:167) >>> >>> at >>> org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168) >>> >>> at >>> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) >>> >>> at >>> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) >>> at >>> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) >>> weberjn@linda:/projekte/geronimo-tomcat6-javaee5-2.2/bin$ >>> >>> >