geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeterAU2 <i...@plusplus.com.au>
Subject Re: Calculator sample 'problem deploying war'
Date Fri, 28 Sep 2007 06:24:50 GMT

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 <info@plusplus.com.au> 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
>> (<generated>)
>>         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
>> (<generated>)
>>         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
>> (<generated>)
>>         at
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModule(
>> SwitchingModuleBuilder.java:153)
>>         at
>>
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke
>> (<generated>)
>>         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
>> (<generated>)
>>         at
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(
>> EARConfigBuilder.java:567)
>>         at
>>
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke
>> (<generated>)
>>         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
>> (<generated>)
>>         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.<init>(FileOutputStream.java:179)
>>         at java.io.FileOutputStream.<init>(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.


Mime
View raw message