Hi All,

 

I am evaluating Geronimo/WASCE to migrate my application from WebSphere to WASCE. As a start, I removed all websphere specific configuration files bundled with EAR such as ibm-application-bnd.xmi, ibm-ejb-jar-bnd.xmi, ibm-ejb-jar-ext.xmi and ibm_ejbext.properties. Also I created openejb-jar.xml based on the information of jboss.xml and bundled it with EAR.

 

For example, if jboss.xml contains like:

 

<session>

         <ejb-name>SandboxService</ejb-name>

         <jndi-name>SandboxService</jndi-name>

         <resource-ref>

            <res-ref-name>xmeta_defaultDS</res-ref-name>

            <jndi-name>java:/jdbc/ASBDataSource</jndi-name>

         </resource-ref>

        <method-attributes>

        </method-attributes>

 </session>

 

It is re-written in the openejb-jar.xml like this:

 

<session>

         <ejb-name>SandboxService</ejb-name>

         <jndi-name>SandboxService</jndi-name>

         <resource-ref>

            <ref-name>xmeta_defaultDS</ref-name>

            <resource-link>ASB</resource-link>

         </resource-ref>

      </session>

 </session>

 

My EAR contains lots of stat full and stateless beans.

 

When I tried to deploy it on WASCE, I am getting exception and following are the stack traces

 

16:53:06,817 ERROR [Deployer] Deployment failed due to

java.lang.NoClassDefFoundError: javax/ejb/EJBObject

      at java.lang.ClassLoader.findBootstrapClass(Native Method)

      at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.naming.deployment.ENCConfigBuilder.assureInterface(ENCConfigBuilder.java:646)

      at org.apache.geronimo.naming.deployment.ENCConfigBuilder.assureEJBObjectInterface(ENCConfigBuilder.java:628)

      at org.openejb.deployment.SessionBuilder.initContext(SessionBuilder.java:398)

      at org.openejb.deployment.OpenEJBModuleBuilder.initContext(OpenEJBModuleBuilder.java:334)

      at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:760)

      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)

      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$97bf9acb.initContext(<generated>)

      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:334)

      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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:760)

      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)

      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$a3aca33d.buildConfiguration(<generated>)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:183)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:89)

      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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:795)

      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:181)

      at org.apache.geronimo.console.configmanager.DeploymentPortlet.processAction(DeploymentPortlet.java:119)

      at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)

      at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

      at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)

      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)

      at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)

      at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)

      at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)

      at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)

      at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)

      at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

      at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:46)

      at org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextValve.java:50)

      at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)

      at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)

      at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

      at java.lang.Thread.run(Unknown Source)

16:53:06,832 ERROR [[Deployment]] Servlet.service() for servlet Deployment threw exception

java.lang.NoClassDefFoundError: javax/ejb/EJBObject

      at java.lang.ClassLoader.findBootstrapClass(Native Method)

      at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:140)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.apache.geronimo.naming.deployment.ENCConfigBuilder.assureInterface(ENCConfigBuilder.java:646)

      at org.apache.geronimo.naming.deployment.ENCConfigBuilder.assureEJBObjectInterface(ENCConfigBuilder.java:628)

      at org.openejb.deployment.SessionBuilder.initContext(SessionBuilder.java:398)

      at org.openejb.deployment.OpenEJBModuleBuilder.initContext(OpenEJBModuleBuilder.java:334)

      at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:760)

      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)

      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$97bf9acb.initContext(<generated>)

      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:334)

      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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:760)

      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)

      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)

      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)

      at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$a3aca33d.buildConfiguration(<generated>)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:183)

      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:89)

      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:118)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:795)

      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:181)

      at org.apache.geronimo.console.configmanager.DeploymentPortlet.processAction(DeploymentPortlet.java:119)

      at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)

      at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

      at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)

      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)

      at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)

      at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)

      at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)

      at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)

      at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)

      at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

      at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:46)

      at org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextValve.java:50)

      at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)

      at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)

      at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

      at java.lang.Thread.run(Unknown Source)

 

 

Am I missing some thing else here?

 

Thanks,

-Siraj