5 Replies Latest reply on Mar 15, 2007 10:24 AM by trivedi kumar

    Need help on wsdl first webservice approach documentation

    trivedi kumar Newbie

      Hi,

      I was using jboss4.0.4 and jbossws-1.2.0.SP1.ZIP for webservices. I am doing wsdl first approach, I generated the java sources/classes using wsconsume tool. After that I wrote webservice impl class and updated web.xml with those details.

      I packaged it into war and deployed it in jboss deploy folder. But when I go to the link http://localhost:8080/jbossws/services, I am able to see my webservice. But when I am trying to see wsdl file, it is throwing the following error:

      ===========================================
      10:51:03,723 ERROR [[/jbossws1]] StandardWrapper.Throwable
      java.lang.NullPointerException
      at org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpointManager(AbstractServiceEndpointServlet.java:135)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.init(AbstractServiceEndpointServlet.java:60)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      10:51:03,723 ERROR [[HelloWebServiceImpl]] Allocate exception for servlet HelloWebServiceImpl
      java.lang.NullPointerException
      at org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpointManager(AbstractServiceEndpointServlet.java:135)
      at org.jboss.ws.core.server.AbstractServiceEndpointServlet.init(AbstractServiceEndpointServlet.java:60)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)

      ============================================

      Pls let me know, Am I missing anything? I am just using web.xml file nothing else for my webservice. For the earlier version of jboss, we should have mapping and jboss-services xml files.

      If there is any documentation on step by step process for creating wsdl first webservices in jboss, Please let me know.

      Thanks in advance,
      Trivedi

        • 1. Re: Need help on wsdl first webservice approach documentatio
          Heiko Braun Master

          You cannot use 1.2.0 with jboss4.0.4. It works with 4.0.5 and later versions.

          • 2. Re: Need help on wsdl first webservice approach documentatio
            trivedi kumar Newbie

            Hi,

            Thanks for your reply. Then what should i use for jboss4.0.4 for webservice impl with wsdl first approach? pls provide me any link to the reference.

            Thanks in advance.
            Trivedi

            • 3. Re: Need help on wsdl first webservice approach documentatio
              Andrew Dale Newbie

              Hi,

              You can use the 1.0.4GA release of JBossWS no with no prblems in 4.0.4.GA

              Thanks,

              Andy

              • 4. Re: Need help on wsdl first webservice approach documentatio
                trivedi kumar Newbie

                Hi Andy,

                Thanks for the information. I will try with 1.0.4GA. Can I find documentation on how to use this?

                Pls help me.
                Trivedi

                • 5. Re: Need help on wsdl first webservice approach documentatio
                  trivedi kumar Newbie

                  Hi Andy,

                  As you said, I downloaded and installed 1.0.4GA in jboss4.0.4. But its not working. When I look at the link http://localhost:8080/jbossws/services for services, I was getting the following error:
                  =====================================
                  19:46:22,861 ERROR [[ContextServlet]] Servlet.service() for servlet ContextServlet threw exception
                  java.lang.NoSuchMethodError: org.jboss.ws.server.ServiceEndpointManagerMBean.showServiceEndpointTable()Ljava/lang/String;
                  at org.jboss.ws.server.ContextServlet.doGet(ContextServlet.java:57)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                  at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                  at java.lang.Thread.run(Thread.java:595)

                  ============================================
                  What went wrong?

                  Thanks,
                  Trivedi