3 Replies Latest reply on Sep 11, 2008 10:45 AM by Ales Justin

    JBAS5 - unable to do a remote deploy from Jmx MainDeployer

    olivier merlin Newbie

      Hello,

      I don't find any information on a basic feature : remote deployment on Jboss.
      So i look into the JMX Service MainDeployer and achieve to deploy a local file with the url : file:/product/jboss/mmgui.war.

      fine !

      Now - i want a REMOTE upload to jboss. So i install an Apache on my local windows host and create an alias (and test my alias with my browser)
      I check that my server can see my IP address
      I check with wget that my http URL is correct.

      and then i set the URL in the JMX MainDemployer with :
      http://10.10.164.143:81/jboss/mmgui.war

      It does not work !
      Is it normal ? (I'm using Beta4 - and cannot upgrade to CR1 at the moment)

      javax.servlet.ServletException: Failed to invoke operation
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:269)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      javax.management.MBeanException
       org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:184)
       org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
       org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
       org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      org.jboss.deployment.DeploymentException: Failed to deploy: http://10.10.164.143:81/jboss/mmgui.war
       org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:820)
       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)
       org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
       org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
       org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
       org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
      


      rgds,
      Olivier

        • 1. Re: JBAS5 - unable to do a remote deploy from Jmx MainDeploy
          Ales Justin Master

          See the tests in AS5_trunk_testsuite/org/jboss/test/profileservice.

          It's the new ProfileService that knows how to do this.

          • 2. Re: JBAS5 - unable to do a remote deploy from Jmx MainDeploy
            olivier merlin Newbie

            Hello,

            Sorry i didn't put the full stack trace :
            the interresting root cause seems to be :
            java.io.IOException: No context factory for http://10.10.164.143:81/jboss/mmgui.war

            See the tests in AS5_trunk_testsuite/org/jboss/test/profileservice.

            It's the new ProfileService that knows how to do this.

            I don't see what you mean - not clear for me.

            rgds

            javax.servlet.ServletException: Failed to invoke operation
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:269)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
            root cause
            
            javax.management.MBeanException
             org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:184)
             org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
             org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
             org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
             org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
             org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
            root cause
            
            org.jboss.deployment.DeploymentException: Failed to deploy: http://10.10.164.143:81/jboss/mmgui.war
             org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:820)
             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)
             org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
             org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
             org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
             org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
             org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
            root cause
            
            java.io.IOException: No context factory for http://10.10.164.143:81/jboss/mmgui.war
             org.jboss.virtual.VFS.getVFS(VFS.java:134)
             org.jboss.virtual.VFS.getRoot(VFS.java:149)
             org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
             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)
             org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
             org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
             org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
             org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
             org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
             org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            


            • 3. Re: JBAS5 - unable to do a remote deploy from Jmx MainDeploy
              Ales Justin Master

               

              "omerlin" wrote:

              I don't see what you mean - not clear for me.

              Put little effort into looking at the AS5 code,
              either binary or source,
              and I doubt you'll miss profileservice notion. ;-)