2 Replies Latest reply on Jul 1, 2011 5:03 AM by Siddhartha Kapil Branched from an earlier discussion.

    Does JBoss AS 6 support EJB2.1 Entity Beans?

    Siddhartha Kapil Newbie

      Hello Jaikiran,

                          I just wanted to know that JBoss 6.0 is supporting EJB 2.1 or not??

      As, when I am deploying the EJBs from Jboss 4.2 to Jboss 6.0, packaging exception is thrown. Please help me in sorting out the issue.

      On Jboss 4.2 they are working fine. Can you please guide me if any specific files are needed for deployment.

       

      Regards

      Siddhartha Kapil

        • 1. Re: Does JBoss AS 6 support EJB2.1 Entity Beans?
          jaikiran pai Master

          Siddhartha Kapil wrote:

           

           

                              I just wanted to know that JBoss 6.0 is supporting EJB 2.1 or not??

          Yes, JBoss AS 6 supports EJB2.x.

           

           

          Siddhartha Kapil wrote:

           

          As, when I am deploying the EJBs from Jboss 4.2 to Jboss 6.0, packaging exception is thrown.

          Please provide more details about the issue, including the exception stacktrace, the relevant logs, code and configurations. Also a bit more details about your application and its packaging.

          • 2. Re: Does JBoss AS 6 support EJB2.1 Entity Beans?
            Siddhartha Kapil Newbie

            Hello Jaikiran,

                               Thanks for the information.

            We have one web application on Struts 1.2 framework. We are deploying it as .war in Jboss. EJB version 2.1 is used. In packaging except java file we have two other file for deployment descriptor "ejb-jar.xml" and "jboss.xml " in META-INF folder. We have not made any changes to these two files.

             

            Now the problem is, the EJB jars which were working fine with Jboss 4.2 but when deployed on the Jboss 6.0, the same jars are deployed successfully but when we access the application the EJB throws the invocation exception as below

             

                    javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public a
            bstract com.siemens.ashley.acrm.session.ejb.SessionMgmtSession com.siemens.ashley.acrm.session.ejb.S
            essionMgmtSessionHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
                    at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
                    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:136)
                    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderIntercep
            tor.java:107)
                    at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
                    at org.jboss.ejb.Container.invoke(Container.java:1089)
                    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:597)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
                    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
                    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
                    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
                    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
                    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
                    at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

                    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
                    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
                    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
                    at $Proxy304.create(Unknown Source)
                    at com.siemens.ashley.acrm.wrapper.SessionMgmt.getSessionMgmtSession(SessionMgmt.java:230)
                    at com.siemens.ashley.acrm.wrapper.SessionMgmt.login(SessionMgmt.java:85)
                    at com.siemens.ashley.acrm.session.action.LoginAction.execute(LoginAction.java:182)
                    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

                    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
                    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
                    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
            ava:324)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
            va:181)
                    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.
            java:285)
                    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext
            .java:261)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst
            ablishmentValve.java:100)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
            158)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequest
            ResponseCacheValve.java:53)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
            va:654)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
                    at java.lang.Thread.run(Thread.java:619)
            Caused by: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=publi
            c abstract com.siemens.ashley.acrm.session.ejb.SessionMgmtSession com.siemens.ashley.acrm.session.ej
            b.SessionMgmtSessionHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
                    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionC
            ontainer.java:172)
                    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnect
            ionInterceptor.java:187)
                    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInst
            anceInterceptor.java:97)
                    at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java
            :56)
                    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
                    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
                    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
                    at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230)
                    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
                    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java
            :99)
                    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.j
            ava:88)
                    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
                    ... 50 more