geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Different Exception during deploy this time
Date Tue, 22 May 2007 15:33:05 GMT
Try putting the ibm jar in shared/lib and including

      <sys:dependency>
      <sys:groupId>geronimo</sys:groupId>
      <sys:artifactId>sharedlib</sys:artifactId>
      <sys:type>car</sys:type>
      </sys:dependency>

in the dependencies of the ear plan (next to the axis dependency)

(I'm hoping this version of was ce has the shared/lib feature:  
otherwise you need to install the jar into the geronimo repo and use  
a dependency to its repo location. )

I would guess that if the war only has stuff to make the ejb web  
service work on was 6.1 and nothing else you will have better results  
on geronimo if you remove the war.

Hope this helps.
david jencks


On May 22, 2007, at 6:59 AM, Doug Lochart wrote:

> Due to the parameters I must work under at the moment I have not  
> gotten the all clear to deploy this directly on Geronimo and use  
> the debugger.  So I am still using WAS CE.  So what I did was I  
> installed WAS 6.1 trial edition to make sure the app deploys.  It  
> did not.  So I cleaned out the build area and reran the build.   
> This EAR was a bit bigger (I forgot I removed the WAR from the  
> earlier one as a test).  This new build deployed properly on WAS  
> 6.1 so I knew that I had something better to work with.  I tried  
> deploying this new EAR and I seemed to get a lot farther but I  
> recieved this excpetion:
>
> org.apache.geronimo.kernel.config.LifecycleException: start of  
> france/FrancePolicyServerEar/1.0/car failed
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:544)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:508)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$ 
> $FastClassByCGLIB$$ce77a924.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:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
>        at org.apache.geronimo.kernel.KernelGBean.invoke 
> (KernelGBean.java:338)
>        at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$ 
> $1cccefc9.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:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
>        at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke 
> (MBeanGBeanBridge.java:168)
>        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke 
> (DynamicMetaDataImpl.java:231)
>        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke 
> (MetaDataImpl.java:238)
>        at  
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke 
> (DefaultMBeanServerInterceptor.java:833)
>        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke 
> (JmxMBeanServer.java:802)
>        at javax.management.remote.rmi.RMIConnectionImpl.doOperation 
> (RMIConnectionImpl.java:1423)
>        at javax.management.remote.rmi.RMIConnectionImpl.access$100 
> (RMIConnectionImpl.java:96)
>        at javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1260)
>        at java.security.AccessController.doPrivileged 
> (AccessController.java:275)
>        at  
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
> (RMIConnectionImpl.java:1363)
>        at javax.management.remote.rmi.RMIConnectionImpl.invoke 
> (RMIConnectionImpl.java:797)
>        at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:615)
>        at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:309)
>        at sun.rmi.transport.Transport$1.run(Transport.java:168)
>        at java.security.AccessController.doPrivileged 
> (AccessController.java:275)
>        at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
>        at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:506)
>        at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.handleRequest(TCPTransport.java:838)
>        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:912)
>        at java.lang.Thread.run(Thread.java:799)
> Caused by:  
> org.apache.geronimo.kernel.config.InvalidConfigException: Unknown  
> start exception
>        at  
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:440)
>        at  
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:411)
>        at  
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start 
> (KernelConfigurationManager.java:187)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:527)
>        ... 36 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:  
> Configuration france/ 
> FrancePolicyServerEar_FrancePolicyServer_WEB.war/1.0/car failed to  
> start due to the following reasons:
>  The service J2EEApplication=france/FrancePolicyServerEar/1.0/ 
> car,j2eeType=WebModule,name=FrancePolicyServer_WEB.war did not  
> start because the doStart method threw an exception.
> java.lang.NullPointerException
>        at java.util.Hashtable.put(Hashtable.java:630)
>        at  
> org.apache.naming.resources.DirContextURLStreamHandler.bind 
> (DirContextURLStreamHandler.java:233)
>        at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart 
> (TomcatWebAppContext.java:443)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance 
> (GBeanInstance.java:981)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( 
> GBeanInstanceState.java:267)
>        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start 
> (GBeanInstanceState.java:102)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive 
> (GBeanInstanceState.java:124)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive 
> (GBeanInstance.java:540)
>        at  
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean 
> (BasicKernel.java:379)
>        at  
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:374)
>        at  
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:411)
>        at  
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start 
> (KernelConfigurationManager.java:187)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:527)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf 
> iguration(SimpleConfigurationManager.java:508)
>        at  
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$ 
> $FastClassByCGLIB$$ce77a924.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:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
>        at org.apache.geronimo.kernel.KernelGBean.invoke 
> (KernelGBean.java:338)
>        at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$ 
> $1cccefc9.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:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
> (GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
> (BasicKernel.java:239)
>        at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke 
> (MBeanGBeanBridge.java:168)
>        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke 
> (DynamicMetaDataImpl.java:231)
>        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke 
> (MetaDataImpl.java:238)
>        at  
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke 
> (DefaultMBeanServerInterceptor.java:833)
>        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke 
> (JmxMBeanServer.java:802)
>        at javax.management.remote.rmi.RMIConnectionImpl.doOperation 
> (RMIConnectionImpl.java:1423)
>        at javax.management.remote.rmi.RMIConnectionImpl.access$100 
> (RMIConnectionImpl.java:96)
>        at javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1260)
>        at java.security.AccessController.doPrivileged 
> (AccessController.java:275)
>        at  
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
> (RMIConnectionImpl.java:1363)
>        at javax.management.remote.rmi.RMIConnectionImpl.invoke 
> (RMIConnectionImpl.java:797)
>        at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:615)
>        at sun.rmi.server.UnicastServerRef.dispatch 
> (UnicastServerRef.java:309)
>        at sun.rmi.transport.Transport$1.run(Transport.java:168)
>        at java.security.AccessController.doPrivileged 
> (AccessController.java:275)
>        at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
>        at sun.rmi.transport.tcp.TCPTransport.handleMessages 
> (TCPTransport.java:506)
>        at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.handleRequest(TCPTransport.java:838)
>        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (TCPTransport.java:912)
>        at java.lang.Thread.run(Thread.java:799)
>
>
>        at  
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration 
> GBeans(ConfigurationUtil.java:403)
>        ... 39 more
>    Error: Operation failed: start of
>    france/FrancePolicyServerEar/1.0/car failed
>
>
> For completeness I will include the geronimo-application.xml and  
> openejb-jar.xml
> geronimo-application.xml
> -----------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <application application-name="FrancePolicyServerEar"
>              xmlns="http://geronimo.apache.org/xml/ns/j2ee/ 
> application-1.1"
>              xmlns:sec="http://geronimo.apache.org/xml/ns/ 
> security-1.1"
>              xmlns:sys="http://geronimo.apache.org/xml/ns/ 
> deployment-1.1">
>  <sys:environment>
>    <sys:moduleId>
>      <sys:groupId>france</sys:groupId>
>      <sys:artifactId>FrancePolicyServerEar</sys:artifactId>
>      <sys:version>1.0</sys:version>
>      <sys:type>car</sys:type>
>    </sys:moduleId>
>    <sys:dependencies>
>      <sys:dependency>
>      <sys:groupId>geronimo</sys:groupId>
>      <sys:artifactId>axis</sys:artifactId>
>      <sys:type>car</sys:type>
>      </sys:dependency>
>    </sys:dependencies>
>    <sys:hidden-classes/>
>    <sys:non-overridable-classes/>
>  </sys:environment>
> </application>
>
> openejb-jar.xml
> ---------------------
> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
>  <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/ 
> deployment-1.1">
>    <dep:moduleId>
>      <dep:groupId>qdfrancepolicy.</dep:groupId>
>      <dep:artifactId>FrancePolicyServverEjb</dep:artifactId>
>      <dep:version>1.0</dep:version>
>      <dep:type>car</dep:type>
>    </dep:moduleId>
>    <dep:dependencies>
>      <dep:dependency>
>        <dep:groupId>geronimo</dep:groupId>
>        <dep:artifactId>tomcat</dep:artifactId>
>        <dep:type>car</dep:type>
>      </dep:dependency>
>    </dep:dependencies>
>    <dep:hidden-classes/>
>    <dep:non-overridable-classes/>
>  </dep:environment>
>  <enterprise-beans>
>    <session>
>      <ejb-name>FrancePolicyServer</ejb-name>
>      <jndi-name>qdfrancepolicy.FrancePolicyHome</jndi-name>
>    </session>
>  </enterprise-beans>
> </openejb-jar>
>
>
> This ear includes a WAR which is merely a WebServiceRouter (ibm  
> class), EJB WebService Session Bean implementation, and some JARs  
> that the code depends upon.
>
> Note:
>
> The WAR router servlet is an IBM specific class that lives in a jar  
> that is not in the ear as it is expected to be in the WAS system  
> and I assume available to all.  I added this jar to the lib  
> directory under the geronimo install.  I hope this is sufficient  
> for this if not I would like to know the best strategy for  
> deploying this jar preferrably outside the EAR.
>
> thanks
>
> Doug
>
>
>
>
>


Mime
View raw message