geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From newbie-gero <chongm...@e7tech.com>
Subject Re: How to deploy in Geronimo?
Date Fri, 21 Mar 2008 04:54:53 GMT

Hi lists,

I require some help. i have check that i require a geronimo-web.xml file in
the WEB-INF folder which i did not have previously. I have already include
that into the folder. i have check the Geronimo documentation and it mainly
focus on the war file and no ear file documentation. if there is, please let
me know the link. I upload my LoanApp.ear file into this message
http://www.nabble.com/file/p16193883/LoanApp.ear LoanApp.ear 

I have already insert the geronimo.xml into /LoanApp.ear/war-ic.war/WEB-INF/
but it still says cannot find the xml file. 
These are the errors it prompt when i deploy it into
/home/Ken/geronimo/deploy
Geronimo Application Server started
12:45:16,399 ERROR [DirectoryMonitor] Unable to scan file
/home/chongming/geronimo/deploy/LoanApp.ear during initialization
java.lang.NullPointerException
        at
org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeploymentTime(DirectoryHotDeployer.java:237)
        at
org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(DirectoryMonitor.java:240)
        at
org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:213)
        at java.lang.Thread.run(Thread.java:595)
12:45:24,759 WARN  [TomcatModuleBuilder] Web application
home/chongming/Desktop/LoanApp/war-ic.war does not contain a
WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a problem,
depending on whether you have things like resource references that need to
be resolved.  You can also give the deployer a separate deployment plan file
on the command line.
12:45:27,447 WARN  [TomcatModuleBuilder] Web application
home/chongming/Desktop/LoanApp/war-ic.war does not contain a
WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a problem,
depending on whether you have things like resource references that need to
be resolved.  You can also give the deployer a separate deployment plan file
on the command line.
12:45:28,325 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="default/LoanApp/1206036014024/car?configurationName=default/LoanApp/1206036014024/car"
org.apache.geronimo.kernel.config.InvalidConfigException: Class not loadable
in classloader: [org.apache.geronimo.kernel.config.MultiParentClassLoader
id=default/LoanApp/1206036014024/car]
        at
org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:120)
        at
org.apache.geronimo.kernel.config.SerializedGBeanState.getGBeans(SerializedGBeanState.java:65)
        at
org.apache.geronimo.kernel.config.ConfigurationData.getGBeans(ConfigurationData.java:172)
        at
org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:278)
        at sun.reflect.GeneratedConstructorAccessor67.newInstance(Unknown
Source)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
        at
org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:361)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:160)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1072)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:774)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:740)
        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:585)
        at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
        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.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$9b28082.reloadConfiguration(<generated>)
        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:595)
Caused by: java.lang.ClassNotFoundException: Unable to find class used in
GBeanData
default/LoanApp/1206036014024/car?EJBModule=LoanApp/ejb-jar-ic.jar,J2EEApplication=default/LoanApp/1206036014024/car,j2eeType=StatelessSessionBean,name=LoanBean
        at
org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:324)
        at
org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:247)
        at
org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:111)
        ... 29 more
Caused by: java.lang.ClassNotFoundException: Unable to find class used in
GBeanData
default/LoanApp/1206036014024/car?EJBModule=LoanApp/ejb-jar-ic.jar,J2EEApplication=default/LoanApp/1206036014024/car,j2eeType=StatelessSessionBean,name=LoanBean,
attribute: componentContextMap
        at
org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:293)
        ... 31 more
Caused by: java.lang.ClassNotFoundException: Could not load class
org.apache.geronimo.naming.reference.ORBReference from classloader:
default/LoanApp/1206036014024/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:1544)
        at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at java.util.HashMap.readObject(HashMap.java:1067)
        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at
org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:291)
        ... 31 more
12:45:28,425 ERROR [DirectoryHotDeployer] Unable to undeploy
/home/chongming/geronimo/deploy/LoanApp.ear(default/LoanApp/1206036008040/car)reload
of default/LoanApp/1206074722438/car failed
org.apache.geronimo.kernel.config.LifecycleException: reload of
default/LoanApp/1206074722438/car failed
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:1105)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:774)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:740)
        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:585)
        at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
        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.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$9b28082.reloadConfiguration(<generated>)
        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:595)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unable
to load configuration gbean default/LoanApp/1206074722438/car
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:154)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.reloadConfiguration(SimpleConfigurationManager.java:962)
        ... 16 more
Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean
already registered: geronimo.config:name="default/LoanApp/1206074722438/car"
        at
org.apache.geronimo.kernel.basic.BasicRegistry.register(BasicRegistry.java:88)
        at
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:355)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:152)
        ... 17 more


djencks wrote:
> 
> The simplest explanation for these results is that when you used the  
> hot deployer the app did actually deploy and deploying it a second  
> time with the command line conflicted with the first deployment.
> 
> To be clearer on what is going on I suggest you unpack a fresh copy  
> of geronimo and try deploying your app using the command line from  
> some place other than the hot deploy directory.
> 
> thanks
> david jencks
> 
> On Mar 20, 2008, at 8:23 AM, newbie-gero wrote:
> 
>>
>> Hi lists,
>> I have a ejb program and it working under jboss. Currently, i'm  
>> trying out
>> the geronimo an i did not manage to deploy and run the ejb codes
>> successfully.
>>
>> My ejb file was Loan.ear. I copy the LoanApp.ear into
>> /home/Ken/geronimoV2.1/deploy ( the deploy folder inside gernimo).
>> Runni ng of the file in localhost is unsuccessful.
>>
>> Next step i try this command:
>> # java -jar deployer.jar --user system --password manager deploy
>> /home/chongming/geronimo/deploy/LoanApp.ear
>>
>> It gives this error.:
>>
>> org.apache.geronimo.kernel.config.LifecycleException: start of
>> default/LoanApp/1206026374359/car failed
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
>> iguration(SimpleConfigurationManager.java:551)
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
>> iguration(SimpleConfigurationManager.java:515)
>>         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:585)
>>         at
>> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
>> (ReflectionMethodInvoker.java:34)
>>         at
>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
>> (GBeanOperation.java:124)
>>         at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
>> (GBeanInstance.java:867)
>>         at
>> org.apache.geronimo.kernel.basic.BasicKernel.invoke 
>> (BasicKernel.java:239)
>>         at
>> org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
>>         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:585)
>>         at
>> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
>> (ReflectionMethodInvoker.java:34)
>>         at
>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
>> (GBeanOperation.java:124)
>>         at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
>> (GBeanInstance.java:867)
>>         at
>> org.apache.geronimo.kernel.basic.BasicKernel.invoke 
>> (BasicKernel.java:239)
>>         at
>> org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke 
>> (MBeanGBeanBridge.java:172)
>>         at
>> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke 
>> (DynamicMetaDataImpl.java:213)
>>         at
>> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke 
>> (DefaultMBeanServerInterceptor.java:815)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>>         at
>> javax.management.remote.rmi.RMIConnectionImpl.doOperation 
>> (RMIConnectionImpl.java:1410)
>>         at
>> javax.management.remote.rmi.RMIConnectionImpl.access$100 
>> (RMIConnectionImpl.java:81)
>>         at
>> javax.management.remote.rmi.RMIConnectionImpl 
>> $PrivilegedOperation.run(RMIConnectionImpl.java:1247)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
>> (RMIConnectionImpl.java:1350)
>>         at
>> javax.management.remote.rmi.RMIConnectionImpl.invoke 
>> (RMIConnectionImpl.java:784)
>>         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:585)
>>         at
>> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
>>         at sun.rmi.transport.Transport$1.run(Transport.java:153)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>>         at
>> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 
>> 466)
>>         at
>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
>> (TCPTransport.java:707)
>>         at java.lang.Thread.run(Thread.java:595)
>> Caused by:  
>> org.apache.geronimo.kernel.config.InvalidConfigException: Unknown
>> start exception
>>         at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
>> GBeans(ConfigurationUtil.java:522)
>>         at
>> org.apache.geronimo.kernel.config.KernelConfigurationManager.start 
>> (KernelConfigurationManager.java:187)
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
>> iguration(SimpleConfigurationManager.java:534)
>>         ... 40 more
>> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
>> Configuration default/LoanApp/1206026374359/car failed to start due  
>> to the
>> following reasons:
>>   The service
>> EJBModule=ejb-jar-ic.jar,J2EEApplication=default/LoanApp/ 
>> 1206026374359/car,j2eeType=StatelessSessionBean,name=LoanBean
>> did not start because
>> default/LoanApp/1206026374359/car?J2EEApplication=default/LoanApp/ 
>> 1206026374359/car,j2eeType=EJBModule,name=ejb-jar-ic.jar
>> did not start.
>>   The service
>> J2EEApplication=default/LoanApp/1206026374359/ 
>> car,j2eeType=EJBModule,name=ejb-jar-ic.jar
>> did not start because Application cannot be deployed as it contains
>> deployment-ids which are in use: app:
>> /home/chongming/geronimo/var/temp/geronimo-deploymentUtil50627.jar
>>     ejb-jar-ic.jar/LoanBean
>>
>>         at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
>> GBeans(ConfigurationUtil.java:485)
>>         ... 42 more
>>     Error: Operation failed: start of default/LoanApp/1206026374359/ 
>> car
>>     failed
>>
>>         Unknown start exception
>>
>>         Configuration default/LoanApp/1206026374359/car failed to  
>> start due
>>     to the following reasons:
>>
>>       The service
>>
>> EJBModule=ejb-jar-ic.jar,J2EEApplication=default/LoanApp/ 
>> 1206026374359/car,j2eeType=StatelessSessionBean,name=LoanBean
>>     did not start because
>>
>> default/LoanApp/1206026374359/car?J2EEApplication=default/LoanApp/ 
>> 1206026374359/car,j2eeType=EJBModule,name=ejb-jar-ic.jar
>>     did not start.
>>
>>       The service
>>
>> J2EEApplication=default/LoanApp/1206026374359/ 
>> car,j2eeType=EJBModule,name=ejb-jar-ic.jar
>>     did not start because Application cannot be deployed as it  
>> contains
>>     deployment-ids which are in use: app:
>>     /home/chongming/geronimo/var/temp/geronimo-deploymentUtil50627.jar
>>
>>         ejb-jar-ic.jar/LoanBean
>> How i i deploy the ear file succesfully?
>> Thanks in advance
>> -- 
>> View this message in context: http://www.nabble.com/How-to-deploy- 
>> in-Geronimo--tp16181101s134p16181101.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-deploy-in-Geronimo--tp16181101s134p16193883.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message