1 2 Previous Next 25 Replies Latest reply on Apr 28, 2010 4:52 PM by Wolfgang Knauf

    Error working wih EJB3, Struts2 & JBoss 4.2GA

    NAG Kum Newbie

      Hi All,

       


      Nice chatting with you all...:) Facing below error - while accessing struts 2 action from browser -
      ************************************************
      java.lang.reflect.InvocationTargetException
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
      com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
      com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
      org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
      org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
      org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

       


      root cause

       

      java.lang.NoClassDefFoundError: Could not initialize class $Proxy146
      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      org.jboss.ejb3.stateful.StatefulLocalProxyFactory.createProxy(StatefulLocalProxyFactory.java:150)
      org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:53)
      javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1273)
      org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1290)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:763)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      javax.naming.InitialContext.lookup(InitialContext.java:392)
      com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPaymentAction.java:27)
      com.tarangtech.mtg.authentication.struts.AuthenticationAction.execute(AuthenticationAction.java:23)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
      com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
      com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
      com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
      org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
      org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
      org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
      org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      ************************************************

       

       

       

      Please find my code below - to look up a EJB -

       

      public

       

      static TreeMap<String, String[]> getAuthentication(XmlHandlerRequestASM objReqHandAsm){

       

       

       

      map = new TreeMap<String, String[]>();

       

       

       

      try {

       

       

       

      ctx = new InitialContext();

       

      AuthenticationBean authEjb = (AuthenticationBean)

       

      ctx.lookup("AuthenticationLocal");

       

      XmlHandlerResponseASM objRespASM = authEjb.doLoginAdm(objReqHandAsm);

       

       

       

      key = Constants.AdminConstants.authentication;

       

       

       

      if(objRespASM.getStatus().get(Constants.Communication.STATUSCODE) != null ) {

       

       

       

      values[0] = (String) objRespASM.getStatus().get(Constants.Communication.STATUSCODE);

       

      }

       

      else if(objRespASM.getStatus().get(Constants.Communication.ERRORCODE) != null ) {

       

       

       

      values[0] = (String) objRespASM.getStatus().get(Constants.Communication.ERRORCODE);

       

      }

       

      else {

       

       

       

      values[0] = "input";

       

      }

       

       

       

      map.put(key,values);

       

      }

       

      catch (NamingException e) {

       

       

       

      //LoggerHelper.log(arg0, arg1, arg2, arg3)

       

      e.printStackTrace();

       

      }

       

      catch (NullPointerException e) {

       

       

       

      // TODO Auto-generated catch block

       

      e.printStackTrace();

       

      }

       

      catch (TarangFrameworkException e) {

       

       

       

      // TODO Auto-generated catch block

       

      e.printStackTrace();

       

      }

       

       

       

      return map;

       

      }

       

       

       

      Below is the AuthenticationBean class ::

       

       

       

      @Stateful

       

      @Local

       

      (AuthenticationLocal.class)

       

      @LocalBinding

       

      (jndiBinding="AuthenticationLocal")

       

      @Remote

       

      (Authentication.class)

       

      @RemoteBinding

       

      (jndiBinding="Authentication")

       

      public

       

       

       

      class AuthenticationBean implements AuthenticationLocal{

       

       

       

      Appreciate any ideas to resolve my application issue.

       

      Thanks in advance..
      NK

        • 1. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
          Wolfgang Knauf Master

          Hi,

           

          first: your bean does not implement the remote interface:

           

          {quote}

          class AuthenticationBean implements AuthenticationLocal, Authentication

          {quote}

           

          Maybe this results in deployment problems.

           

          second: your lookup should cast the result to the interface, not to the bean instance!

           

          {quote}

          AuthenticationLocal authEjb = (AuthenticationLocal) ctx.lookup("AuthenticationLocal");{quote}

           

          I don't know wheter your "@Local"/"@Remote" declarations work, I think it is better to place them on the interfaces (without parameters in this case).

           

          Hope this helps

           

          Wolfgang

          • 2. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
            NAG Kum Newbie
            Hi Wolfgang,
            Thank you very much for your reply. Modified code as below -
            EJB :
            @Stateful
            public class AuthenticationBean implements AuthenticationLocal,AuthenticationRemote {

             

                public static final String RemoteJNDIName =  AuthenticationBean.class.getSimpleName() + "/remote";
            Client :
            AuthenticationRemote authEjb = (AuthenticationRemote)ServiceLocator.getEJB(AuthenticationBean.RemoteJNDIName);
            No success! Pls find below JBoss server error ... (Using jboss-4.2.2.GA)
            The server encountered an internal error () that prevented it from fulfilling this request.

            exception


            rk2.UnknownHandlerManager
            19:55:24,921 INFO  [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.2.GA/server/default/deploy/PaymentAdmin.ear
            19:55:32,937 ERROR [STDERR] javax.naming.NameNotFoundException: remote not bound
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
            19:55:32,937 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
            19:55:32,937 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:55:32,937 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.Transport$1.run(Transport.java:159)
            19:55:32,937 ERROR [STDERR]     at java.security.AccessController.doPrivileged(Native Method)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            19:55:32,937 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            19:55:32,937 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            19:55:32,937 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
            19:55:32,937 ERROR [STDERR]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
            19:55:32,937 ERROR [STDERR]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            19:55:32,937 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
            19:55:32,937 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
            19:55:32,937 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
            19:55:32,937 ERROR [STDERR]     at com.tarangtech.framework.ejb.clients.util.ServiceLocator.getEJB(ServiceLocator.java:25)
            19:55:32,937 ERROR [STDERR]     at com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPayment
            Action.java:23)
            19:55:32,937 ERROR [STDERR]     at com.tarangtech.mtg.authentication.struts.AuthenticationAction.execute(AuthenticationAction.ja
            va:23)
            19:55:32,937 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:55:32,937 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:55:32,937 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:55:32,937 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440
            )
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java
            :279)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInter
            ceptor.java:122)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.j
            ava:195)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.j
            ava:195)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:7
            5)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:13
            8)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.ja
            va:164)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInt
            erceptor.java:176)
            19:55:32,937 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
            19:55:32,937 ERROR [STDERR]     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareA
            ndExecuteFilter.java:91)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
            235)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            19:55:32,937 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
            235)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            19:55:32,937 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:1
            79)
            19:55:32,937 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            19:55:32,937 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            19:55:32,937 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            19:55:32,937 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            19:55:32,937 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:5
            83)
            19:55:32,937 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            19:55:32,937 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
            19:55:32,953 ERROR [STDERR] java.lang.NullPointerException
            19:55:32,953 ERROR [STDERR]     at com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPayment
            Action.java:24)
            19:55:32,953 ERROR [STDERR]     at com.tarangtech.mtg.authentication.struts.AuthenticationAction.execute(AuthenticationAction.ja
            va:23)
            19:55:32,953 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            19:55:32,953 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            19:55:32,953 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            19:55:32,953 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440
            )
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java
            :279)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInter
            ceptor.java:122)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.j
            ava:195)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.j
            ava:195)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:7
            5)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:13
            8)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor
            .java:87)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.ja
            va:164)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInt
            erceptor.java:176)
            19:55:32,953 ERROR [STDERR]     at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
            19:55:32,953 ERROR [STDERR]     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareA
            ndExecuteFilter.java:91)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
            235)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            19:55:32,953 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
            235)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            19:55:32,953 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:1
            79)
            19:55:32,953 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            19:55:32,953 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            19:55:32,953 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            19:55:32,953 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            19:55:32,953 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:5
            83)
            19:55:32,953 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            19:55:32,953 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)

             

             

            Thanks again in advance for your help...

             

            Regds,

            NK

            • 3. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
              Wolfgang Knauf Master

              Hi,

               

              how does your bean look like in JNDIView ( http://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole ) ? Is the remote interface bound to the name your client tries to use?

               

              Best regards

               

              Wolfgang

              • 4. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                NAG Kum Newbie

                Hi Wolfgang,

                 

                I was busy other task, sorry for late response..

                 

                My JNDIView shows as below -

                 

                +- PaymentAdmin (class: org.jnp.interfaces.NamingContext)   |   +- AuthenticationBean (class: org.jnp.interfaces.NamingContext)   |   |   +- local (proxy: $Proxy146 implements interface com.tarangtech.mtg.authentication.ejb.AuthenticationLocal,interface org.jboss.ejb3.JBossProxy)   |   |   +- remote (proxy: $Proxy144 implements interface com.tarangtech.mtg.authentication.ejb.AuthenticationRemote,interface org.jboss.ejb3.JBossProxy)   +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)

                 

                And here is my code below -

                            ctx = new InitialContext();
                            Object obj = ctx.lookup("PaymentAdmin/AuthenticationBean/remote");
                            AuthenticationRemote auRem = (AuthenticationRemote)obj;

                 

                 

                Exception -

                javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900]
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:723)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
                    at javax.naming.InitialContext.lookup(Unknown Source)
                    at Main.main(Main.java:13)
                Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900
                    at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
                    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
                    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
                    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
                    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
                    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
                    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
                    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
                    at java.io.ObjectInputStream.readObject0(Unknown Source)
                    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
                    at java.io.ObjectInputStream.readSerialData(Unknown Source)
                    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
                    at java.io.ObjectInputStream.readObject0(Unknown Source)
                    at java.io.ObjectInputStream.readObject(Unknown Source)
                    at java.rmi.MarshalledObject.get(Unknown Source)
                    at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:653)
                    ... 3 more

                 

                What's wrong here?

                 

                Please assist me ..

                 

                Thanks,

                Nagesh

                • 5. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                  Wolfgang Knauf Master

                  Hi,

                   

                  -does your app bundle some JBoss jars? If yes: remove them.

                  -does the client use JBoss jars from another version as the server? If yes: always use the client jars matching exactly your server version.

                  -does the client contain old ".class" files of your EJBs? If yes: update to the latest ones from your EJB project.

                   

                  Hope this helps

                   

                  Wolfgang

                  • 6. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                    NAG Kum Newbie

                    Hi,

                     

                         My EJB3 lookup problem got resolved but the actual problem of making server up not resolved...

                     

                         Now I face below error -

                    20:25:35,828 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.e
                    ar/ state=ClassLoader mode=Manual requiredState=PostClassLoader
                    org.jboss.deployers.spi.DeploymentException: Cannot process metadata
                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                            at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
                            at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
                            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                            at org.jboss.Main.boot(Main.java:221)
                            at org.jboss.Main$1.run(Main.java:556)
                            at java.lang.Thread.run(Thread.java:619)
                    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.tarangtech.fds.ejb.MerchantEJBBean from BaseClassLoader@e0e49f{VFSClassLo
                    aderPolicy@c1beab{name=vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/ domain=ClassLoaderDomain@1e2afb2{name=DefaultDomain parentPol
                    icy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@b1c5fa} roots=[MemoryContextHandler@30210579[path= context=vfsmemory://4su1x60-pmjhx6
                    -g88u6au5-1-g88u6x5j-2c real=vfsmemory://4su1x60-pmjhx6-g88u6au5-1-g88u6x5j-2c], DelegatingHandler@3539354[path=PaymentAdmin.ear context=file:/E:/jbos

                     

                    Though I had com.tarangtech.fds.ejb.MerchantEJBBean in .ear file, & added this to classpath, error still persists ...

                     

                    Please help..

                    Thanks,

                    NK

                    • 7. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                      NAG Kum Newbie

                      Hi,

                       

                           Thank you for your suggestion, half of the problem got resolved. But, Could not make server up due to the below error -

                       

                      Error :

                      ******************************************************************************

                      20:25:09,906 INFO  [AttributeCallbackItem] Owner callback not implemented.
                      20:25:11,250 INFO  [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server
                      org.jboss.mx.server.MBeanServerImpl@e3ffdf[ defaultDomain='jboss' ]
                      20:25:35,828 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.e
                      ar/ state=ClassLoader mode=Manual requiredState=PostClassLoader
                      org.jboss.deployers.spi.DeploymentException: Cannot process metadata
                              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
                              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
                              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                              at org.jboss.Main.boot(Main.java:221)
                              at org.jboss.Main$1.run(Main.java:556)
                              at java.lang.Thread.run(Thread.java:619)
                      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.tarangtech.fds.ejb.MerchantEJBBean from BaseClassLoader@e0e49f{VFSClassLo
                      aderPolicy@c1beab{name=vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/ domain=ClassLoaderDomain@1e2afb2{name=DefaultDomain parentPol
                      icy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@b1c5fa} roots=[MemoryContextHandler@30210579[path= context=vfsmemory://4su1x60-pmjhx6
                      -g88u6au5-1-g88u6x5j-2c real=vfsmemory://4su1x60-pmjhx6-g88u6au5-1-g88u6x5j-2c], DelegatingHandler@3539354[path=PaymentAdmin.ear context=file:/E:/jbos
                      s-5.1.0.GA/server/default/deploy/ real=file:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear], DelegatingHandler@27471565[path=PaymentAdmin.e
                      ar/AuthenticationBean.jar context=file:/E:/jboss-5.1.0.GA/server/default/deploy/ real=file:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/A
                      uthenticationBean.jar]]  delegates=null exported=[UserValidation.jar.com.tarangtech.mtg.authentication.ejb, Tpay.jar.com.tarangtech.framework.xml.navm
                      ap, ChargeBackBean.jar.META-INF, SearchBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.utils.alert, TransValidation.jar.com.tarangtech.mtg.transval.ejb
                      , Tpay.jar.com.tarangtech.mtg.client.utils.messaging, Tpay.jar.com.tarangtech.mtg.transaction.instrument.credit.request, Tpay.jar.com.tarangtech.adapt
                      ers.helper, ManageMerchantBean.jar.com.tarangtech.mtg.client.merchant.ejb, Tpay.jar.com.tarangtech.adapters.db.ejb, Tpay.jar.com.tarangtech.framework.
                      logger.pagination, CreditInstrument.jar.com.tarangtech.mtg.transaction.instrument.credit.ejb, Tpay.jar.com.tarangtech.mtg.client.dao.registration, Deb
                      itInstrument.jar.com.tarangtech.mtg.transaction.instrument, Tpay.jar.com.tarangtech.mtg.authentication.ejb, Tpay.jar.com.tarangtech.mtg.client.dao.mer
                      chant, Tpay.jar.com.tarangtech.mtg.transaction.entity, DebitInstrument.jar.META-INF, Tpay.jar.com.tarangtech.mtg.transaction.formatter, Tpay.jar.com.t
                      arangtech.mtg.client.services.messaging.ejb, Tpay.jar.com.tarangtech.mtg.utils.logger, Tpay.jar.com.tarangtech.mtg.client.merchantservice.ejb, Tpay.ja
                      r.com.tarangtech.mtg.client.dto.messaging, Tpay.jar.com.tarangtech.pcf.presentation, Tpay.jar.com.tarangtech.pcf.session, CreditInstrument.jar.META-IN
                      F, Tpay.jar.com.tarangtech.mtg.proxies.mck, MerchantServiceBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.proxies.secure3d, Tpay.jar.com.tarangtech.mt
                      g.utils.exception, Tpay.jar.com.tarangtech.mtg.utils.helper, Tpay.jar.com.tarangtech.fds.ejb, Tpay.jar.com.tarangtech.framework.logger.main, Tpay.jar.
                      com.tarangtech.mtg.client.services.reporting.ejb, DebitInstrument.jar.com.tarangtech.mtg.transaction.instrument.debit.ejb, Tpay.jar.com.tarangtech.mtg
                      .transaction.ejb, Tpay.jar.com.tarangtech.mtg.client.dao.common, Tpay.jar.com.tarangtech.mtg.client.utils.registration, Tpay.jar.com.tarangtech.pcf.da
                      taext, Tpay.jar.com.tarangtech.pcf.navigator, Tpay.jar.com.tarangtech.mtg.client.pagination, Tpay.jar.com.tarangtech.mtg.transval.ejb, Tpay.jar.com.ta
                      rangtech.mtg.proxies.redirection, TransValidation.jar.META-INF, CreditInstrument.jar.com.tarangtech.mtg.transaction.instrument, com.tarangtech.mtg.aut
                      hentication.ejb, Tpay.jar.com.tarangtech.framework.xml.responseasm, Tpay.jar.com.tarangtech.mtg.client.services.search.ejb, MerchantRegistration.jar.c
                      om.tarangtech.mtg.client.services.registration.ejb, Tpay.jar.com.tarangtech.mtg.utils.dbmanager, ManageUserBean.jar.META-INF, Tpay.jar.com.tarangtech.
                      fds.dbmanager, Tpay.jar.com.tarangtech.mtg.client.services.registration.ejb, Tpay.jar.com.tarangtech.framework.ejb.clients.util, Tpay.jar.com.tarangte
                      ch.pos.servlet, SearchBean.jar.com.tarangtech.mtg.client.services.search.ejb, Tpay.jar.com.tarangtech.mtg.client.merchant.ejb, Tpay.jar.META-INF, Repo
                      rtBean.jar.com.tarangtech.mtg.client.services.reporting.ejb, Tpay.jar.com.tarangtech.pos.transaction, Tpay.jar.com.tarangtech.pcf.service, Tpay.jar.co
                      m.tarangtech.framework.logger.appender, Tpay.jar.com.tarangtech.pcf.utils, ManageMerchantBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.client.dao.mes
                      saging, Tpay.jar.com.tarangtech.mtg, Tpay.jar.com.tarangtech.mtg.transaction.instrument, Tpay.jar.com.tarangtech.pcf.devcap, Tpay.jar.com.tarangtech.m
                      tg.registration.manager, TxnManager.jar.com.tarangtech.mtg.transaction.ejb, Tpay.jar.com.tarangtech.mtg.transaction.instrument.credit.ejb, FraudBean.j
                      ar.META-INF, Tpay.jar, Tpay.jar.com.tarangtech.mtg.client.siteowner.ejb, ManageUserBean.jar.com.tarangtech.mtg.client.siteowner.ejb, Tpay.jar.com.tara
                      ngtech.mtg.client.utils.siteowner, Tpay.jar.com.tarangtech.adapters.iso8583, Tpay.jar.com.tarangtech.framework.asm, MessageManager.jar.com.tarangtech.
                      mtg.client.services.messaging.ejb, Tpay.jar.com.tarangtech.mtg.transaction.validation, Tpay.jar.com.tarangtech.mtg.utils.logger.ejb, ChargeBackBean.ja
                      r.com.tarangtech.mtg.client.services.chargeback.ejb, TxnManager.jar.META-INF, Tpay.jar.com.tarangtech.mtg.client.services.chargeback.ejb, UserValidati
                      on.jar.META-INF, Tpay.jar.com.tarangtech.framework.logger.extension, LoggerBean.jar.com.tarangtech.mtg.utils.logger.ejb, Tpay.jar.com.tarangtech.mtg.c
                      lient.dto.siteowner, Tpay.jar.com.tarangtech.framework.ejb.clients, Tpay.jar.com.tarangtech.framework.xml.devcap, MerchantRegistration.jar.META-INF, T
                      pay.jar.com.tarangtech.mtg.client.dao.siteowner, Tpay.jar.com.tarangtech.mtg.transaction.dao, Tpay.jar.com.tarangtech.pcf.utils.fomapping, Tpay.jar.co
                      m.tarangtech.framework.xml.config, MessageManager.jar.META-INF, Tpay.jar.com.tarangtech.framework.logger.connpool, Tpay.jar.com.tarangtech.pcf, Tpay.j
                      ar.com.tarangtech.mtg.transaction.dto, Tpay.jar.com.tarangtech.mtg.transaction.utils, META-INF, Tpay.jar.com.tarangtech.mtg.transaction.instrument.deb
                      it.ejb, Tpay.jar.com.tarangtech.fds.dao, Tpay.jar.com.tarangtech.framework.util, LoggerBean.jar.META-INF, ReportBean.jar.META-INF, Tpay.jar.com.tarang
                      tech.mtg.authentication, Tpay.jar.com.tarangtech.framework.xml.requestasm] <IMPORT-ALL>NON_EMPTY}}
                              at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:76)
                              at org.jboss.deployers.plugins.annotations.AbstractElement.getOwner(AbstractElement.java:73)
                              at org.jboss.deployment.OptAnnotationMetaDataDeployer.getClasses(OptAnnotationMetaDataDeployer.java:172)
                              at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossMetaData(OptAnnotationMetaDataDeployer.java:133)
                              at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:84)
                              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:177)
                              ... 31 more
                      Caused by: java.lang.ClassNotFoundException: com.tarangtech.fds.ejb.MerchantEJBBean from BaseClassLoader@e0e49f{VFSClassLoaderPolicy@c1beab{name=vfszi
                      p:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/ domain=ClassLoaderDomain@1e2afb2{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.
                      bootstrap.NoAnnotationURLClassLoader@b1c5fa} roots=[MemoryContextHandler@30210579[path= context=vfsmemory://4su1x60-pmjhx6-g88u6au5-1-g88u6x5j-2c real
                      =vfsmemory://4su1x60-pmjhx6-g88u6au5-1-g88u6x5j-2c], DelegatingHandler@3539354[path=PaymentAdmin.ear context=file:/E:/jboss-5.1.0.GA/server/default/de
                      ploy/ real=file:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear], DelegatingHandler@27471565[path=PaymentAdmin.ear/AuthenticationBean.jar co
                      ntext=file:/E:/jboss-5.1.0.GA/server/default/deploy/ real=file:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/AuthenticationBean.jar]]  del
                      egates=null exported=[UserValidation.jar.com.tarangtech.mtg.authentication.ejb, Tpay.jar.com.tarangtech.framework.xml.navmap, ChargeBackBean.jar.META-
                      INF, SearchBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.utils.alert, TransValidation.jar.com.tarangtech.mtg.transval.ejb, Tpay.jar.com.tarangtech.mt
                      g.client.utils.messaging, Tpay.jar.com.tarangtech.mtg.transaction.instrument.credit.request, Tpay.jar.com.tarangtech.adapters.helper, ManageMerchantBe
                      an.jar.com.tarangtech.mtg.client.merchant.ejb, Tpay.jar.com.tarangtech.adapters.db.ejb, Tpay.jar.com.tarangtech.framework.logger.pagination, CreditIns
                      trument.jar.com.tarangtech.mtg.transaction.instrument.credit.ejb, Tpay.jar.com.tarangtech.mtg.client.dao.registration, DebitInstrument.jar.com.tarangt
                      ech.mtg.transaction.instrument, Tpay.jar.com.tarangtech.mtg.authentication.ejb, Tpay.jar.com.tarangtech.mtg.client.dao.merchant, Tpay.jar.com.tarangte
                      ch.mtg.transaction.entity, DebitInstrument.jar.META-INF, Tpay.jar.com.tarangtech.mtg.transaction.formatter, Tpay.jar.com.tarangtech.mtg.client.service
                      s.messaging.ejb, Tpay.jar.com.tarangtech.mtg.utils.logger, Tpay.jar.com.tarangtech.mtg.client.merchantservice.ejb, Tpay.jar.com.tarangtech.mtg.client.
                      dto.messaging, Tpay.jar.com.tarangtech.pcf.presentation, Tpay.jar.com.tarangtech.pcf.session, CreditInstrument.jar.META-INF, Tpay.jar.com.tarangtech.m
                      tg.proxies.mck, MerchantServiceBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.proxies.secure3d, Tpay.jar.com.tarangtech.mtg.utils.exception, Tpay.jar.
                      com.tarangtech.mtg.utils.helper, Tpay.jar.com.tarangtech.fds.ejb, Tpay.jar.com.tarangtech.framework.logger.main, Tpay.jar.com.tarangtech.mtg.client.se
                      rvices.reporting.ejb, DebitInstrument.jar.com.tarangtech.mtg.transaction.instrument.debit.ejb, Tpay.jar.com.tarangtech.mtg.transaction.ejb, Tpay.jar.c
                      om.tarangtech.mtg.client.dao.common, Tpay.jar.com.tarangtech.mtg.client.utils.registration, Tpay.jar.com.tarangtech.pcf.dataext, Tpay.jar.com.tarangte
                      ch.pcf.navigator, Tpay.jar.com.tarangtech.mtg.client.pagination, Tpay.jar.com.tarangtech.mtg.transval.ejb, Tpay.jar.com.tarangtech.mtg.proxies.redirec
                      tion, TransValidation.jar.META-INF, CreditInstrument.jar.com.tarangtech.mtg.transaction.instrument, com.tarangtech.mtg.authentication.ejb, Tpay.jar.co
                      m.tarangtech.framework.xml.responseasm, Tpay.jar.com.tarangtech.mtg.client.services.search.ejb, MerchantRegistration.jar.com.tarangtech.mtg.client.ser
                      vices.registration.ejb, Tpay.jar.com.tarangtech.mtg.utils.dbmanager, ManageUserBean.jar.META-INF, Tpay.jar.com.tarangtech.fds.dbmanager, Tpay.jar.com.
                      tarangtech.mtg.client.services.registration.ejb, Tpay.jar.com.tarangtech.framework.ejb.clients.util, Tpay.jar.com.tarangtech.pos.servlet, SearchBean.j
                      ar.com.tarangtech.mtg.client.services.search.ejb, Tpay.jar.com.tarangtech.mtg.client.merchant.ejb, Tpay.jar.META-INF, ReportBean.jar.com.tarangtech.mt
                      g.client.services.reporting.ejb, Tpay.jar.com.tarangtech.pos.transaction, Tpay.jar.com.tarangtech.pcf.service, Tpay.jar.com.tarangtech.framework.logge
                      r.appender, Tpay.jar.com.tarangtech.pcf.utils, ManageMerchantBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.client.dao.messaging, Tpay.jar.com.tarangt
                      ech.mtg, Tpay.jar.com.tarangtech.mtg.transaction.instrument, Tpay.jar.com.tarangtech.pcf.devcap, Tpay.jar.com.tarangtech.mtg.registration.manager, Txn
                      Manager.jar.com.tarangtech.mtg.transaction.ejb, Tpay.jar.com.tarangtech.mtg.transaction.instrument.credit.ejb, FraudBean.jar.META-INF, Tpay.jar, Tpay.
                      jar.com.tarangtech.mtg.client.siteowner.ejb, ManageUserBean.jar.com.tarangtech.mtg.client.siteowner.ejb, Tpay.jar.com.tarangtech.mtg.client.utils.site
                      owner, Tpay.jar.com.tarangtech.adapters.iso8583, Tpay.jar.com.tarangtech.framework.asm, MessageManager.jar.com.tarangtech.mtg.client.services.messagin
                      g.ejb, Tpay.jar.com.tarangtech.mtg.transaction.validation, Tpay.jar.com.tarangtech.mtg.utils.logger.ejb, ChargeBackBean.jar.com.tarangtech.mtg.client.
                      services.chargeback.ejb, TxnManager.jar.META-INF, Tpay.jar.com.tarangtech.mtg.client.services.chargeback.ejb, UserValidation.jar.META-INF, Tpay.jar.co
                      m.tarangtech.framework.logger.extension, LoggerBean.jar.com.tarangtech.mtg.utils.logger.ejb, Tpay.jar.com.tarangtech.mtg.client.dto.siteowner, Tpay.ja
                      r.com.tarangtech.framework.ejb.clients, Tpay.jar.com.tarangtech.framework.xml.devcap, MerchantRegistration.jar.META-INF, Tpay.jar.com.tarangtech.mtg.c
                      lient.dao.siteowner, Tpay.jar.com.tarangtech.mtg.transaction.dao, Tpay.jar.com.tarangtech.pcf.utils.fomapping, Tpay.jar.com.tarangtech.framework.xml.c
                      onfig, MessageManager.jar.META-INF, Tpay.jar.com.tarangtech.framework.logger.connpool, Tpay.jar.com.tarangtech.pcf, Tpay.jar.com.tarangtech.mtg.transa
                      ction.dto, Tpay.jar.com.tarangtech.mtg.transaction.utils, META-INF, Tpay.jar.com.tarangtech.mtg.transaction.instrument.debit.ejb, Tpay.jar.com.tarangt
                      ech.fds.dao, Tpay.jar.com.tarangtech.framework.util, LoggerBean.jar.META-INF, ReportBean.jar.META-INF, Tpay.jar.com.tarangtech.mtg.authentication, Tpa
                      y.jar.com.tarangtech.framework.xml.requestasm] <IMPORT-ALL>NON_EMPTY}}
                              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
                              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
                              at java.lang.Class.forName0(Native Method)
                              at java.lang.Class.forName(Class.java:247)
                              at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:72)
                              ... 36 more
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@19435026{vfszip:/E:/jboss-5.1.0.GA/server/default/de
                      ploy/foo-ejb.jar/}
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@19435026{vfszip:/E:/jboss-5.1.0.GA/server/default/de
                      ploy/foo-ejb.jar/}
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14387650{vfsfile:/E:/jboss-5.1.0.GA/server/default/d
                      eploy/profileservice-secured.jar/}
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14387650{vfsfile:/E:/jboss-5.1.0.GA/server/default/d
                      eploy/profileservice-secured.jar/}
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14387650{vfsfile:/E:/jboss-5.1.0.GA/server/default/d
                      eploy/profileservice-secured.jar/}
                      20:25:35,890 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14387650{vfsfile:/E:/jboss-5.1.0.GA/server/default/d
                      eploy/profileservice-secured.jar/}
                      20:25:39,359 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
                      20:25:39,484 INFO  [MailService] Mail Service bound to java:/Mail
                      20:25:41,718 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks
                      messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instru
                      ctions on how to do this.
                      20:25:41,734 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
                      20:25:42,000 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
                      20:25:42,187 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
                      20:25:42,187 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
                      20:25:42,531 INFO  [TransactionManagerService] Initializing recovery manager
                      20:25:42,687 INFO  [TransactionManagerService] Recovery manager configured
                      20:25:42,687 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
                      20:25:42,718 INFO  [TransactionManagerService] Starting transaction recovery manager
                      20:25:43,203 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found o
                      n the java.library.path: C:\Program Files\Java\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0
                      _03\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\P
                      rogram Files\QuickTime\QTSystem\;C:\apache-ant-1.7.1\bin;E:\jboss-5.1.0.GA\bin;E:\Sun\SDK\bin;E:\Sun\SDK\bin
                      20:25:43,281 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8081
                      20:25:43,281 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
                      20:25:43,312 INFO  [StandardService] Starting service jboss.web
                      20:25:43,312 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
                      20:25:43,375 INFO  [Catalina] Server startup in 83 ms
                      20:25:43,390 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws

                      ******************************************************************************

                      Though com.tarangtech.fds.ejb.MerchantEJBBean is available in classpath, error still persists..

                       

                      Please suggest,

                      Thanks,

                      NK

                      • 8. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                        Wolfgang Knauf Master

                        Hi,

                         

                        could you post the structure of your EAR and EJB jar files? Use "jar tvf jarfile.jar" to display the content.

                         

                        I saw in the logfile that your classpath seems to be quite a mess ;-):

                         

                        "C:\Program Files\Java\jdk1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0
                        _03\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\;C:\apache-ant-1.7.1\bin;E:\jboss-5.1.0.GA\bin;E:\Sun\SDK\bin;E:\Sun\SDK\bin"

                         

                        I think JBoss requires higher java versions than 1.6.0_03, and you should clean up the PATH variable to point to a valid JDK. Also, did you make sure that you have the JBoss version which is for Java 1.6?

                         

                        Best regards

                         

                        Wolfgang

                        • 9. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                          NAG Kum Newbie

                          Hi,

                           

                          Pls find my PaymentAdmin.ear structure ---

                          ****************************************************************************

                          E:\tPay\tPayMigrate\PaymentAdmin\build>jar -tvf PaymentAdmin.ear
                               0 Wed Apr 21 10:33:26 GMT+05:30 2010 META-INF/
                             126 Wed Apr 21 10:34:10 GMT+05:30 2010 META-INF/MANIFEST.MF
                          11803 Wed Apr 21 10:33:18 GMT+05:30 2010 AuthenticationBean.jar
                          15118 Wed Apr 21 10:33:18 GMT+05:30 2010 ChargeBackBean.jar
                          20346 Wed Apr 21 10:33:20 GMT+05:30 2010 CreditInstrument.jar
                            4381 Wed Apr 21 10:33:20 GMT+05:30 2010 DebitInstrument.jar
                            1069 Wed Apr 21 10:33:20 GMT+05:30 2010 FraudBean.jar
                          10135 Wed Apr 21 10:33:18 GMT+05:30 2010 LoggerBean.jar
                          21646016 Wed Apr 21 10:33:26 GMT+05:30 2010 PaymentAdmin.war
                            1457 Tue Apr 20 16:50:02 GMT+05:30 2010 META-INF/application.xml
                             906 Wed Mar 31 21:08:08 GMT+05:30 2010 META-INF/persistence.xml
                          746428 Wed Apr 21 10:32:12 GMT+05:30 2010 Tpay.jar

                          ****************************************************************************

                           

                          And my AuthenticationBean.jar structure..

                          ****************************************************************************

                          E:\tPay\tPayMigrate\PaymentAdmin\build\beans>jar -tvf AuthenticationBean.jar
                              39 Wed Apr 21 10:33:16 GMT+05:30 2010 META-INF/MANIFEST.MF
                             625 Wed Apr 21 10:33:16 GMT+05:30 2010 com/tarangtech/mtg/authentication/ejb/AuthenticationRemote.class
                            1118 Wed Apr 21 10:33:16 GMT+05:30 2010 META-INF/ejb-jar.xml
                          17481 Wed Apr 21 10:33:16 GMT+05:30 2010 com/tarangtech/mtg/authentication/ejb/AuthenticationBean.class
                             439 Wed Apr 21 10:33:16 GMT+05:30 2010 com/tarangtech/mtg/authentication/ejb/AuthenticationLocalHome.class
                             441 Wed Apr 21 10:33:16 GMT+05:30 2010 com/tarangtech/mtg/authentication/ejb/AuthenticationLocal.class
                             692 Wed Apr 21 10:33:16 GMT+05:30 2010 META-INF/jboss.xml
                             461 Wed Apr 21 10:33:16 GMT+05:30 2010 com/tarangtech/mtg/authentication/ejb/AuthenticationHome.class

                          ****************************************************************************

                           

                          I installed jboss-5.1.0.GA-jdk6 (for Java 1.6). Modified my classpath & path pointed to jdk1.6.0_03 (Currently downloading latest jdk version)...

                           

                          Rebuilt all & deployed & Restarted my Jboss....

                           

                          Facing the below problem -

                          3:39:45,234 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/E:/jboss-5.1.0.GA/server/default/de
                          ymentAdmin.ear/ state=PreReal mode=Manual requiredState=Real
                          rg.jboss.deployers.spi.DeploymentException: Error deploying AuthenticationBean.jar: Error creating ejb container Authenticatio
                          nBean: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=AuthenticationBean,service=EJB3,VMID=4
                          7847712f:57fcd84d:1281f69a0b6:-7fd0 + is already registered
                                 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
                                 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
                                 at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
                                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                 at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                 at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                                 at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
                                 at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
                                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                 at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServi
                          :306)
                                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                                 at org.jboss.Main.boot(Main.java:221)
                                 at org.jboss.Main$1.run(Main.java:556)
                                 at java.lang.Thread.run(Thread.java:619)
                          aused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container AuthenticationBean: Container jboss
                          ar=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=AuthenticationBean,service=EJB3,VMID=4cbb36267847712f:57fcd84d:1281
                          :-7fd0 + is already registered
                                 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:732)
                                 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
                                 at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
                                 at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
                                 at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
                                 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
                                 ... 34 more
                          aused by: java.lang.IllegalStateException: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=Au
                          ationBean,service=EJB3,VMID=4cbb36267847712f:57fcd84d:1281f69a0b6:-7fd0 + is already registered
                                 at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)
                                 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:728)
                                 ... 39 more
                          3:39:45,390 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERR
                          DETAILS):

                           

                          EPLOYMENTS IN ERROR:
                          Deployment "vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/" is in error due to the following reason
                          va.lang.IllegalStateException: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=Authentication
                          rvice=EJB3,VMID=4cbb36267847712f:57fcd84d:1281f69a0b6:-7fd0 + is already registered

                           

                          3:39:45,406 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8081

                           

                          Appreciate your quick help..

                           

                          Thank you,

                          NK

                          • 10. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                            Wolfgang Knauf Master

                            Every time another error ;-)?

                             

                            Any chance that the ejb class gets deployed twice (e.g. in two locations of the EAR/JAR structure)?

                             

                            You have "AuthenticationLocalHome" and "AuthenticationHome" files. Do you require them? Actually, the concept of "Home interfaces" is EJB 2.x, so you don't need them in EJB3.

                             

                            If this (and upgrading to a more recent JDK) does not help, please post the relevant content of "ejb-jar.xml" and "jboss.xml".

                             

                            Best regards

                             

                            Wolfgang

                            • 11. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                              NAG Kum Newbie

                              Hi,

                               

                              Its most unfortunate, making me to learn more than getting solution (every time new error:)) HMMMMMMMMMMMMMMM....)

                               

                              My .ear contains all EJB3 bean jar files and .war which contains classed pertaining to each EJB.

                              I mean every class file is available twice.. Pls find

                               

                              ejb-jar

                              <?xml version="1.0" encoding="UTF-8"?>

                               

                              <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
                                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                                        http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
                                        version="3.0">
                                       
                                       <description>AuthenticationBean</description>
                                       <display-name>AuthenticationBean</display-name>
                                      
                                       <enterprise-beans>
                                          <session>
                                              <ejb-name>AuthenticationBean</ejb-name>
                                              <home>com.tarangtech.mtg.authentication.ejb.AuthenticationHome</home>
                                              <remote>com.tarangtech.mtg.authentication.ejb.AuthenticationRemote</remote>
                                              <local-home>com.tarangtech.mtg.authentication.ejb.AuthenticationLocalHome</local-home>
                                              <local>com.tarangtech.mtg.authentication.ejb.AuthenticationLocal</local>
                                              <ejb-class>com.tarangtech.mtg.authentication.ejb.AuthenticationBean</ejb-class>
                                              <session-type>Stateless</session-type>
                                              <transaction-type>Container</transaction-type>               
                                          </session>           
                                        </enterprise-beans>         

                              </ejb-jar>

                               

                              jboss

                              <?xml version="1.0" encoding="UTF-8"?>
                              <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
                              <jboss>
                              <enterprise-beans>
                                   <session>
                                       <ejb-name>AuthenticationBean</ejb-name>
                                       <ejb-ref>        
                                           <ejb-ref-name>com.tarangtech.mtg.authentication.ejb.AuthenticationRemote</ejb-ref-name>
                                           <jndi-name>AuthenticationBean/remote</jndi-name>   
                                       </ejb-ref>
                                       <ejb-local-ref>
                                           <ejb-ref-name>com.tarangtech.mtg.authentication.ejb.AuthenticationLocal</ejb-ref-name>
                                           <local-jndi-name>AuthenticationBean/local</local-jndi-name>                
                                       </ejb-local-ref>
                                  </session>
                              </enterprise-beans>
                              </jboss>

                               

                              Thanks a lot for you patience & kind reply..

                              Please help in getting my UI work..:)

                               

                              Regds,

                              NK

                              • 12. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                                NAG Kum Newbie

                                Hi Wolfgang,

                                 

                                When I removed Home & LocalHome interfaces got the below error -

                                 

                                efault/deploy/PaymentAdmin.ear/ state=ClassLoader mode=Manual requiredState=PostClassLoader
                                rg.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/Payment
                                dmin.ear/AuthenticationBean.jar/
                                       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                       at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                                       at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                 

                                       at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
                                1)
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                       at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
                                .java:306)
                                       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                                       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                                       at org.jboss.Main.boot(Main.java:221)
                                       at org.jboss.Main$1.run(Main.java:556)
                                       at java.lang.Thread.run(Thread.java:619)
                                aused by: org.jboss.metadata.validation.chain.ValidatorChainException: Validation has failed due to the following Valida
                                ionException(s) raised:
                                EJB AuthenticationBean has defined EJB2.x remote component interface of com.tarangtech.mtg.authentication.ejb.Authentic
                                tionRemote but has no home; ; Incomplete EJB2.x View [JBMETA-130]

                                 

                                       at org.jboss.metadata.validation.chain.ejb.jboss.JBossMetaDataValidatorChain.validate(JBossMetaDataValidatorChain

                                 

                                Sorry I am crowding up with errors..

                                But I have to get resolution, thanks

                                 

                                NK

                                • 13. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                                  NAG Kum Newbie

                                  Hi,

                                   

                                  Installed latest java version JDK6U20 & ubfortunate again same probelm ..:)

                                  Plese see error beow -

                                   

                                  icationBean: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=AuthenticationBean,service=EJB3,VM
                                  ID=4cbb36267847712f:-23e97a62:12820e1ed0c:-7ff9 + is already registered
                                          at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
                                          at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
                                          at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
                                          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                          at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                                          at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                   

                                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
                                  61)
                                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                          at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
                                  e.java:306)
                                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                                          at org.jboss.Main.boot(Main.java:221)
                                          at org.jboss.Main$1.run(Main.java:556)
                                          at java.lang.Thread.run(Thread.java:619)
                                  Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container AuthenticationBean: Container jboss.
                                  j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=AuthenticationBean,service=EJB3,VMID=4cbb36267847712f:-23e97a62
                                  :12820e1ed0c:-7ff9 + is already registered
                                          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:732)
                                          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
                                          at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
                                          at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
                                          at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
                                          at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
                                          ... 34 more
                                  Caused by: java.lang.IllegalStateException: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=Aut
                                  henticationBean,service=EJB3,VMID=4cbb36267847712f:-23e97a62:12820e1ed0c:-7ff9 + is already registered
                                          at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)
                                          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:728)
                                          ... 39 more
                                  20:30:41,515 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRO
                                  RS FOR DETAILS):

                                   

                                  DEPLOYMENTS IN ERROR:
                                    Deployment "vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.ear/" is in error due to the following reason(
                                  s): java.lang.IllegalStateException: Container jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=Authentica
                                  tionBean,service=EJB3,VMID=4cbb36267847712f:-23e97a62:12820e1ed0c:-7ff9 + is already registered

                                   

                                   

                                  I don't know when can I fix this!!!! HMMMMMMM

                                   

                                  Trails never end till goal is achieved..

                                  NK

                                  • 14. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                                    jaikiran pai Master

                                    Is this the same error that you started off with? I ask this because, in your first few posts you mention using JBoss AS 4.2.2. And after a few posts, you have logs from JBoss AS-5.1.0.

                                     

                                    jboss.j2ee:ear=PaymentAdmin.ear,jar=AuthenticationBean.jar,name=AuthenticationBean,service=EJB3,VM
                                    ID=4cbb36267847712f:-23e97a62:12820e1ed0c:-7ff9  + is already registered

                                    How are you deploying your application? Looks like that bean is already deployed once.

                                    1 2 Previous Next