2 Replies Latest reply on Sep 26, 2007 1:00 AM by Gary Greenberg

    Problem migrating web service from WS4EE to JBOSSWS

    Manuel Valladares Newbie

      I had a web service working in WS4EE and now it is giving me an error when I call it in JbossWS. In both cases I am using Jboss 4.0.4RC1 and I removed the WS4EE and installed JbossWS.

      In WS4EE was giving me an error saying:
      interface org.jboss.mx.util.ProxyContext is not visible from class loader
      but it still worked fine.

      Now with JbossWS the same error is causing the webservice to crash.

      Here I append the errors that show up in the browser when I try to access the WSDL.


      javax.servlet.ServletException: Servlet.init() for servlet UseOccupations threw exception
       org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
       org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
       org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
       org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
       org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866)
       org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       java.lang.Thread.run(Thread.java:595)
      
      root cause
      
      java.lang.IllegalArgumentException: interface org.jboss.mx.util.ProxyContext is not visible from class loader
       java.lang.reflect.Proxy.getProxyClass(Proxy.java:345)
       java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
       org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
       org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78)
       org.jboss.ws.server.AbstractServlet.init(AbstractServlet.java:63)
       org.jboss.ws.server.ServiceEndpointServlet.init(ServiceEndpointServlet.java:68)
       org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
       org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
       org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
       org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
       org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866)
       org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       java.lang.Thread.run(Thread.java:595)
      


      If you need more information, like the configuration files, please, let me know.

      Any help would be greatly appreciated.
      Manuel Valladares


        • 1. Re: Problem migrating web service from WS4EE to JBOSSWS
          Thomas Diesler Master

          JBossWS is not supported in jboss-4.0.4RC1, you need to work from CVS or wait until jboss-4.0.4

          • 2. Re: Problem migrating web service from WS4EE to JBOSSWS
            Gary Greenberg Newbie

            I am having the same problem in both 4.0.4 and 4.2.1
            The "helloworld' type sample web service works just fine but when I am trying to do a real thing using Spring injected beans then I am getting this exception on deployment:

            ERROR [-::RMI TCP Connection(25)-10.10.10.10] [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/rsystools/ws]] StandardWrapper.Throwable
            java.lang.IllegalArgumentException: interface org.jboss.mx.util.ProxyContext is not visible from class loader
            at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
            at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
            at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
            at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78)
            at org.jboss.ws.server.AbstractServlet.init(AbstractServlet.java:66)
            at org.jboss.ws.server.ServiceEndpointServlet.init(ServiceEndpointServlet.java:72)

            If anyone knows the solution, please speak up.