8 Replies Latest reply on Mar 10, 2009 11:23 AM by itsjewel

    EJB3.0 Over HTTP Using JBOSS 5

    godfrey.nangoma

      I am trying to configure JBOSS 5 so that I can invoke session bean over HTTP(s) rather than the default way of using RMI protocol. The only documentation that I can find to this is related to JBOSS 4. I am wondering if there is new documentation to do this on JBOSS5. Anyone with a pointer to the documentation, could you please share with me through this forum.

      Thanks,
      Godfrey

        • 1. Re: EJB3.0 Over HTTP Using JBOSS 5
          formica

          I'm also interested in that point, did you manage to get any information ?
          Do you know what happened to the servlet-invoker.war ?

          • 2. Re: EJB3.0 Over HTTP Using JBOSS 5
            jaikiran

            Right now there isn't one for JBoss5. Stay tuned, i will get something on the wiki for this soon.

            • 3. Re: EJB3.0 Over HTTP Using JBOSS 5
              jaikiran

              This is what you need for JBossAS5 https://www.jboss.org/community/docs/DOC-13276

              • 4. Re: EJB3.0 Over HTTP Using JBOSS 5
                godfrey.nangoma

                 

                "jaikiran" wrote:
                This is what you need for JBossAS5 https://www.jboss.org/community/docs/DOC-13276


                Thanks for the wiki post regarding AS5. I will give it a try and let you know if I encounter any problems....


                Thanks,
                Godfrey

                • 5. Re: EJB3.0 Over HTTP Using JBOSS 5

                  Were anybody able to implement this successfully? I am getting following error message when trying to access ejb from a remote machine,

                  javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
                   java.net.SocketException: Connection reset]


                  Though it works in same machine.

                  • 6. Re: EJB3.0 Over HTTP Using JBOSS 5

                    Chaning all the porst to 80 fro 8080 results following exception during server startup,

                    javax.servlet.ServletException: Can not find servlet server invoker with same locator as specified (servlet://127.0.0.1/servlet-invoker/ServerInvokerServlet)


                    • 7. Re: EJB3.0 Over HTTP Using JBOSS 5
                      jaikiran

                       

                      "itsjewel" wrote:
                      I am getting following error message when trying to access ejb from a remote machine,

                      javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
                       java.net.SocketException: Connection reset]




                      Please post the entire exception stacktrace.

                      • 8. Re: EJB3.0 Over HTTP Using JBOSS 5

                        Here is the full exception stack trace,

                        21:20:21,000 ERROR [[/servlet-invoker]] Servlet /servlet-invoker threw load() exception
                        javax.servlet.ServletException: Can not find servlet server invoker with same locator as specified (servlet://127.0.0.1/servlet-invoker/ServerInvokerServlet)
                         at org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.getInvokerFromInvokerUrl(ServerInvokerServlet.java:209)
                         at org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.init(ServerInvokerServlet.java:68)
                         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
                         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
                         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                         at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                         at $Proxy36.start(Unknown Source)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                         at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         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.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                         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:1178)
                         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:1598)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         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:698)
                         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                         at org.jboss.Main.boot(Main.java:209)
                         at org.jboss.Main$1.run(Main.java:547)
                         at java.lang.Thread.run(Thread.java:619)