geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: How to deploy in Geronimo? Using command line to deploy
Date Fri, 21 Mar 2008 14:59:27 GMT
The embedded war file is created incorrectly. It contains extra
directory. For example, jar vtf war-ic.war returns the following
entry:

war-ic/WEB-INF/web.xml

but it should be:

WEB-INF/web.xml

Jarek

On Fri, Mar 21, 2008 at 1:54 AM, newbie-gero <chongming@e7tech.com> wrote:
>
>  Hi,
>  I have deploy my application file using the command line as shown below:
>   # java -jar bin/deployer.jar --user system --password manager deploy
>  LoanApp.ear
>
>  This are the response from the server:
>  Deployed default/LoanApp/1206078465276/car
>       `-> war-ic.war @ /payment
>       `-> ejb-jar-ic.jar
>
>  However when i open my firefox and enter http://localhost:8080/payment
>  it response back with and error:
>   The requested resource (/payment/) is not available.
>
>  This is the file i deploy into the server
>  http://www.nabble.com/file/p16194044/LoanApp.ear LoanApp.ear
>
>  Thanks
>
>  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--tp16181101s134p16194044.html
>  Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message