Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 13589 invoked from network); 28 Sep 2007 06:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 06:25:23 -0000 Received: (qmail 2850 invoked by uid 500); 28 Sep 2007 06:25:12 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 2816 invoked by uid 500); 28 Sep 2007 06:25:12 -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 2805 invoked by uid 99); 28 Sep 2007 06:25:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 23:25:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 06:27:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ib9HO-0003BI-48 for user@geronimo.apache.org; Thu, 27 Sep 2007 23:24:50 -0700 Message-ID: <12935297.post@talk.nabble.com> Date: Thu, 27 Sep 2007 23:24:50 -0700 (PDT) From: PeterAU2 To: user@geronimo.apache.org Subject: Re: Calculator sample 'problem deploying war' In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: info@plusplus.com.au References: <12934606.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Strange. I definitely choose the file C:\course\ejb\calculator-stateless-pojo\calculator-stateless-ear-2.0-SNAPSHOT.ear to deploy, then I get the error below. I'm using Geronimo 2.0.1 on Windows Xp with Sun Java JDK 1.5.0 What are you using? Peter Viet Nguyen-4 wrote: > > On 9/28/07, PeterAU2 wrote: >> >> >> I'm trying to deploy the ear file from the calculator example from >> >> http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.html >> I've downloaded the calculator-stateless-pojo.zip and unpacked it. >> I go to the Geronimo 2.0.1 console,Applications, Deploy New. >> I browse to the archive, and then click Install. >> I get: >> Deployment failed: >> org.apache.geronimo.common.DeploymentException: Problem deploying war > > > The sample generates an EAR for you, and this is what you probably want to > deploy. I just tested to deploy the EAR and it works fine for me. > Deploying > the WAR should not work in this case because it depends on certain classes > that are packaged in the JAR. But that is the purpose of having an EAR, so > that the WAR and JAR are all together. > > What am I doing wrong? Is there something missing from that ear file? Has >> anyone else got it to work straight out of the box? >> (full text of error at bottom). >> Thanks for any help >> Peter >> I'm using Geronimo 2.0.1 on Windows Xp with Sun Java JDK 1.5.0 >> >> rg.apache.geronimo.common.DeploymentException: Problem deploying war >> org.apache.geronimo.common.DeploymentException: >> org.apache.geronimo.common.DeploymentException: Problem deploying war >> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java >> :385) >> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java >> :126) >> at >> org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.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 >> :865) >> at >> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) >> at >> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy >> (AbstractDeployCommand.java:116) >> at >> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run( >> DistributeCommand.java:61) >> at java.lang.Thread.run(Thread.java:595) >> Caused by: org.apache.geronimo.common.DeploymentException: Problem >> deploying >> war >> at >> >> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule >> (AbstractWebModuleBuilder.java:308) >> 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$$b654160f.installModule >> () >> at >> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModule( >> SwitchingModuleBuilder.java:153) >> at >> >> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.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$$b654160f.installModule >> () >> at >> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration( >> EARConfigBuilder.java:567) >> at >> >> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.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.CorbaGBeanNameSource$$EnhancerByCGLIB$$ed819024.buildConfiguration >> () >> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java >> :304) >> ... 10 more >> Caused by: java.io.FileNotFoundException: C:\Program >> Files\geronimo- >> tomcat6-jee5-2.0.1\repository\org\apache\geronimo\samples\calculator-stateless-ear\2.0-SNAPSHOT\calculator-stateless-ear-2.0-SNAPSHOT.ear\calculator-stateless-war-2.0-SNAPSHOT.war\apidocs\org\apache\geronimo\samples\calculator\CalculatorServlet.html >> (The system cannot find the path specified) > > > I think this problem is caused by the file name limit in Windows. I didn't > actually count the number of characters in it, but I think it exceeds 256 > characters. You might want to put your GERONIMO_HOME directory in C:\g\. > > I hope this helps > > -Viet > > at java.io.FileOutputStream.open(Native Method) >> at java.io.FileOutputStream.(FileOutputStream.java:179) >> at java.io.FileOutputStream.(FileOutputStream.java:131) >> at >> org.apache.geronimo.deployment.CopyResourceContext.addFile( >> CopyResourceContext.java:194) >> at >> org.apache.geronimo.deployment.CopyResourceContext.addFile( >> CopyResourceContext.java:163) >> at >> org.apache.geronimo.deployment.CopyResourceContext.addFile( >> CopyResourceContext.java:132) >> at >> org.apache.geronimo.deployment.DeploymentContext.addFile( >> DeploymentContext.java:449) >> at >> >> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule >> (AbstractWebModuleBuilder.java:293) >> ... 40 more >> >> -- >> View this message in context: >> http://www.nabble.com/Calculator-sample-%27problem-deploying-war%27-tf4532454s134.html#a12934606 >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Calculator-sample-%27problem-deploying-war%27-tf4532454s134.html#a12935297 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.