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
Hi Paolo,
Welcome... :-)
Thanks for the info.
Rather than using the hot deploy directory, could you try to deploy
your ear using the deploy command?
Remove your EAR from geronimo-jetty6-jee5-2.0.1/deploy/
Start the server (e.g. geronimo-jetty6-jee5-2.0.1/bin/geronimo.sh run)
Then, in a separate term window deploy your app using the following:
geronimo-jetty6-jee5-2.0.1/bin/deploy.sh <your-ear-file>
If this fails in the same way, then we'll need to dig a little
further... Well, we'll need to dig a bit further, regardless, to
understand why the hot-deploy directory isn't working...
--kevan
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(<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$$ab38932.installModule(<generated>)
at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModu
le(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$$ab38932.installModule(<generated>)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguratio
n(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$$41e10347.buildConfiguration(<generated>)
at org.apache.geronimo.deployment.Deployer.deploy
(Deployer.java:304)
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.doDe
ploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run
(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:613)
23:16:07,311 ERROR [DirectoryHotDeployer] Unable to deploy:
java.lang.NullPointerException
org.apache.geronimo.common.DeploymentException:
java.lang.NullPointerException
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.doDe
ploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run
(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:613)
Caused by: 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(<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$$ab38932.installModule(<generated>)
at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.installModu
le(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$$ab38932.installModule(<generated>)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguratio
n(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$$41e10347.buildConfiguration(<generated>)
at org.apache.geronimo.deployment.Deployer.deploy
(Deployer.java:304)
... 10 more
23:16:09,671 ERROR [DirectoryHotDeployer] Unable to undeploy
java.lang.NullPointerException
at
org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTarget
ModuleIDs(ConfigIDExtractor.java:174)
at
org.apache.geronimo.deployment.hot.DirectoryHotDeployer.fileRemoved
(DirectoryHotDeployer.java:350)
at
org.apache.geronimo.deployment.hot.DirectoryMonitor.scanDirectory
(DirectoryMonitor.java:325)
at org.apache.geronimo.deployment.hot.DirectoryMonitor.run
(DirectoryMonitor.java:216)
at java.lang.Thread.run(Thread.java:613)