0 Replies Latest reply on Apr 6, 2011 7:36 PM by manish jain

    Failed to Create EJB throws - javax.ejb.CreateException,java.rmi.RemoteException:: javax.ejb.EJBException

    manish jain Newbie

      I am trying to deply my application in jBoss 6 and using Java 6

       

      Application structure

       

      ../default/deployer/

      --myConsole.war

      --myB2Bear.ear

      ----ReportManager.jar (ejb lies inside the ear package) 

       

       

       

      boot.log

       

       

      18:22:03,123 INFO  [EjbDeployer] installing bean: ejb/ReportManager.jar#ReportManager,uid1105286902

      18:22:03,123 INFO  [EjbDeployer]   with dependencies:

      18:22:03,123 INFO  [EjbDeployer]   and supplies:

      18:22:03,123 INFO  [EjbDeployer]        jndi:myB2Bear/ReportManager/b2b.beans.report.ReportManager

      18:22:03,123 INFO  [EjbDeployer]        jndi:ReportManager

      18:22:03,123 INFO  [EjbDeployer]        jndi:myB2Bear/ReportManager

       

      ------------

      ---------

       

      17:56:36,093 INFO  [EjbModule] Deploying ReportManager

      17:56:36,133 INFO  [ProxyFactory] Bound EJB Home 'ReportManager' to jndi 'ReportManager'

       

       

       

       

      Class loader from jmx-console

       

      # domain="DefaultDomain",system=1397120162

      # domain="JAXRPCDeployerDomain",system=1397120162

      # domain="com.vetsource:archive=myB2Bear",system=1397120162

       

       

      jboss.J2EE from jmx-console


      ear="ansHealthB2B.ear",module="ReportManager.jar",service=EjbModule

       

      # jndiName=ReportManager,plugin=pool,service=EJB

      # jndiName=ReportManager,service=EJB

       

      ------------------------------------------------------

       

      When I set callbyvalue to true my application find the ejbs fine but if have set the callbyvalue to false which I want to

      I get followig error when trying to lookup ejbs.

       

       

       

      18:01:47,228 FINE  [sun.rmi.loader] http-0.0.0.0-80-2: name = "org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy", codebase = "http://chadpc:8083/", defaultLoader = org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@14b274ea

      18:01:47,229 DEBUG [org.jboss.remoting.Client] Client[2027312600:a6416m-et2s91-gm6us8im-1-gm6v4eal-d9].connect(null)

      18:01:47,229 DEBUG [org.jboss.remoting.Client] Client[2027312600:a6416m-et2s91-gm6us8im-1-gm6v4eal-d9] connected to InvokerLocator [socket://chadpc:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]

      18:01:47,229 DEBUG [org.jboss.remoting.Client] Client[2027312600:a6416m-et2s91-gm6us8im-1-gm6v4eal-d9] is connected

      18:01:47,231 FINE  [sun.rmi.loader] http-0.0.0.0-80-2: name = "org.jboss.proxy.ejb.EJBMetaDataImpl", codebase = "http://chadpc:8083/", defaultLoader = org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@14b274ea

      18:01:47,233 FINE  [sun.rmi.loader] http-0.0.0.0-80-2: name = "b2b.beans.report.ReportManagerHome", codebase = "http://chadpc:8083/", defaultLoader = org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@14b274ea

      18:01:47,236 FINE  [sun.rmi.loader] http-0.0.0.0-80-2: name = "org.jboss.proxy.ejb.handle.HomeHandleImpl", codebase = "http://chadpc:8083/", defaultLoader = org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@14b274ea

      18:01:47,238 FINE  [sun.rmi.loader] http-0.0.0.0-80-2: name = "b2b.beans.report.ReportManager", codebase = "http://chadpc:8083/", defaultLoader = org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@14b274ea

      18:01:47,240 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract b2b.beans.report.ReportManager b2b.beans.report.ReportManagerHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException:: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract b2b.beans.report.ReportManager b2b.beans.report.ReportManagerHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:172) [:6.0.0.Final]

              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:187) [:6.0.0.Final]

              at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56) [:6.0.0.Final]

              at org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:69) [:6.0.0.Final]

              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:97) [:6.0.0.Final]

              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230) [:6.0.0.Final]

              at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205) [:6.0.0.Final]

              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:99) [:6.0.0.Final]

              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88) [:6.0.0.Final]

              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) [:6.0.0.Final]

              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) [:6.0.0.Final]

              at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639) [:6.0.0.Final]

              at org.jboss.ejb.Container.invoke(Container.java:1089) [:6.0.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

              at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) [:6.0.0.Final]

              at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) [:6.0.0.Final]

              at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209) [:6.0.0.Final]

              at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195) [:6.0.0.Final]

              at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) [:6.0.0.Final]

              at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64) [:6.0.0.Final]

              at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68) [:6.0.0.Final]

              at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184) [:6.0.0.Final]

              at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101) [:6.0.0.Final]

              at $Proxy564.create(Unknown Source)     at b2b.beans.EntityBeanLookup.getReportManager(EntityBeanLookup.java:1659) [:]

              at b2b.beans.EntityBeanLookup.getReportManager(EntityBeanLookup.java:1637) [:]

              at ansreports.WebReportEngineFactory.executeJasperReport(WebReportEngineFactory.java:752) [:]

              at ansreports.WebReportEngineFactory.generateReport(WebReportEngineFactory.java:602) [:]

              at console.server.handlers.search.PrintedOutputsHelper.processOrderPickTicket(PrintedOutputsHelper.java:1739) [:]

              at console.server.handlers.search.PrintedOutputsHandler.perform(PrintedOutputsHandler.java:347) [:]

              at com.generic.processhandler.ResourceLoader.loadHandlerClass(ResourceLoader.java:334) [:]

              at com.generic.processhandler.ProcessJob.loadIt(ProcessJob.java:65) [:]

              at com.generic.processhandler.ProcessHandler.processRequest(ProcessHandler.java:831) [:]

              at com.generic.processhandler.ProcessHandler.perform(ProcessHandler.java:250) [:]

              at com.server.servlets.RequestProcessor.processRequest(RequestProcessor.java:193) [:]

              at com.server.servlets.TransactionJobHandler.doPost(TransactionJobHandler.java:197) [:]

              at com.server.servlets.TransactionJobHandler.doGet(TransactionJobHandler.java:137) [:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) [:2.6.0]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) [:6.0.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

       

      18:01:47,264 INFO  [STDOUT] RemoteException in EntityBeanLookup

      18:01:47,269 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myConsole].[org.apache.jsp.htmljsp.search.printed_005foutputs_jsp]]  Disabling the response for futher output

       

       

      Please help ?