You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Xh <xh...@yahoo.co.uk> on 2007/07/14 10:09:08 UTC
Calculator Stateless POJO example - FileNotFoundException
Hi All!
I've noticed that the example stateless session bean throws an exception (FileNotFoundException).
The file is available at:
http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.data/calculator-stateless-pojo.zip
Stack trace is presented below.
Second thing,
in which jar there are all EJB3 annotations?
I cannot compile downloaded example because I cannot resolve all classes (annotations)
best regards
Lukasz
org.apache.geronimo.common.DeploymentException: org.apache.geronimo.common.DeploymentException: Problem deploying war
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
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:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:863)
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:306)
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:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
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$$66c2f149.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:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
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$$66c2f149.installModule(<generated>)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:555)
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:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
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$$9df06b5e.buildConfiguration(<generated>)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
... 10 more
Caused by: java.io.FileNotFoundException: H:\programy\apache\geronimo\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\apidocsxxx\org\apache\geronimo\samples\calculator\class-use\CalculatorServlet.html (System nie może odnaleźć określonej ścieżki)
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:386)
at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:291)
... 40 more
___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
Re: Calculator Stateless POJO example - FileNotFoundException
Posted by Prasad Kashyap <go...@gmail.com>.
I just downloaded the zip from the wiki and deployed it without a
problem. The sample app even served fine.
Looking at your stack trace, I suspect that you might be hitting the
long path problem on Windows. Windows has a restriction on the number
of characters in a path. I believe it is 255 chars. Your path has 271
chars in it.
To answer your second question, the EJB 3.0 annotations are in
geronimo-ejb_3.0_spec-1.0.jar. This dependency is already specified
in the parent of the calculator-stateless-pojo project that you are
trying to build. The parent artifact has been published and will be
downloaded when you build calculator sample. By means of maven's
transitive dependency, it should download the
geronimo-ejb_3.0_spec-1.0.jar too.
Hope this helps
Cheers
Prasad
On 7/14/07, Xh <xh...@yahoo.co.uk> wrote:
>
> Hi All!
>
> I've noticed that the example stateless session bean throws an exception
> (FileNotFoundException).
> The file is available at:
> http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.data/calculator-stateless-pojo.zip
>
> Stack trace is presented below.
>
> Second thing,
>
> in which jar there are all EJB3 annotations?
> I cannot compile downloaded example because I cannot resolve all classes
> (annotations)
>
> best regards
> Lukasz
> org.apache.geronimo.common.DeploymentException:
> org.apache.geronimo.common.DeploymentException: Problem
> deploying war
> at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383)
> at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
> 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:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:863)
> 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:306)
> 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:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
> 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$$66c2f149.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:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
> 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$$66c2f149.installModule(<generated>)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:555)
> 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:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:828)
> 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$$9df06b5e.buildConfiguration(<generated>)
> at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
> ... 10 more
> Caused by: java.io.FileNotFoundException:
> H:\programy\apache\geronimo\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\apidocsxxx\org\apache\geronimo\samples\calculator\class-use\CalculatorServlet.html
> (System nie może odnaleźć określonej ścieżki)
> 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:386)
> at
> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:291)
> ... 40 more
>
>
> ________________________________
> Yahoo! Answers - Get better answers from someone who knows. Try it now.