1 Reply Latest reply on Dec 30, 2008 12:27 PM by peterj

    Simple Top Down WS deployment Fails on JBoss 4.2.3 - Help

    chandra_88

      Hi,

      Iam running into a issue of unable to deploy a TOp down WSDL on JBoss. I have packaged the app as an war file containing the wsdl file under the wsdl folder. I have a simple Implementation of the methods described in the WSDL.


      <?xml version="1.0" encoding="UTF-8"?>
      <!--
      
       Licensed to the Apache Software Foundation (ASF) under one or more
       contributor license agreements. See the NOTICE file distributed with
       this work for additional information regarding copyright ownership.
       The ASF licenses this file to You under the Apache License, Version 2.0
       (the "License"); you may not use this file except in compliance with
       the License. You may obtain a copy of the License at
      
       http://www.apache.org/licenses/LICENSE-2.0
      
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
      
      -->
      <!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
      <wsdl:definitions name="wsdl-first"
       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
       xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:tns="http://servicemix.apache.org/samples/wsdl-first"
       xmlns:typens="http://servicemix.apache.org/samples/wsdl-first/types"
       targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
      
       <wsdl:types>
       <xsd:schema targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types"
       elementFormDefault="qualified">
       <xsd:element name="GetPerson">
       <xsd:complexType>
       <xsd:sequence>
       <xsd:element name="personId" type="xsd:string"/>
       </xsd:sequence>
       </xsd:complexType>
       </xsd:element>
       <xsd:element name="GetPersonResponse">
       <xsd:complexType>
       <xsd:sequence>
       <xsd:element name="personId" type="xsd:string"/>
       <xsd:element name="ssn" type="xsd:string"/>
       <xsd:element name="name" type="xsd:string"/>
       </xsd:sequence>
       </xsd:complexType>
       </xsd:element>
       <xsd:element name="UnknownPersonFault">
       <xsd:complexType>
       <xsd:sequence>
       <xsd:element name="personId" type="xsd:string"/>
       </xsd:sequence>
       </xsd:complexType>
       </xsd:element>
       </xsd:schema>
       </wsdl:types>
      
       <wsdl:message name="GetPersonRequest">
       <wsdl:part name="payload" element="typens:GetPerson"/>
       </wsdl:message>
       <wsdl:message name="GetPersonResponse">
       <wsdl:part name="payload" element="typens:GetPersonResponse"/>
       </wsdl:message>
       <wsdl:message name="UnknownPersonFault">
       <wsdl:part name="payload" element="typens:UnknownPersonFault"/>
       </wsdl:message>
      
       <wsdl:portType name="Person">
       <wsdl:operation name="GetPerson">
       <wsdl:input message="tns:GetPersonRequest"/>
       <wsdl:output message="tns:GetPersonResponse"/>
       <wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
       </wsdl:operation>
       </wsdl:portType>
      
       <wsdl:binding name="PersonSOAPBinding" type="tns:Person">
       <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
       <wsdl:operation name="GetPerson">
       <wsdl:input>
       <soap:body use="literal" />
       </wsdl:input>
       <wsdl:output>
       <soap:body use="literal" />
       </wsdl:output>
       <wsdl:fault name="UnknownPerson">
       <soap:fault use="literal" name="UnknownPerson" />
       </wsdl:fault>
       </wsdl:operation>
       </wsdl:binding>
      
       <wsdl:service name="PersonService">
       <wsdl:port binding="tns:PersonSOAPBinding" name="soap">
       <soap:address location="http://localhost:8280/TestWebServicesSample/Person" />
       </wsdl:port>
       </wsdl:service>
      
      </wsdl:definitions>
      
      


      My Person Impl class looks like this.
      @WebService(name = "Person", targetNamespace = "http://servicemix.apache.org/samples/wsdl-first", endpointInterface="com.gehcit.platform.types.Person.PersonImpl")
      public class PersonImpl implements Person{
      
       public void getPerson(Holder<String> personId, Holder<String> ssn, Holder<String> name)
       throws UnknownPersonFault_Exception {
       // TODO Auto-generated method stub
       name.value = "Guillaume";
       ssn.value = "000-000-0000";
      
       }
      }
      


      While deploying on to JBoss i get an error saying

      ava.lang.NullPointerException
       at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFil
      Publisher.java:303)
       at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFileP
      blisher.java:103)
       at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.create(Publi
      hContractDeploymentAspect.java:52)
       at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
      Unknown Source)
       at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
      oyerHook.java:97)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
      rceptor.java:90)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      tart(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      tor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      ava:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy46.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      orImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      r.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      r.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      eanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      ava:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy10.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      Scanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      anner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      oScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      stractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      pport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      anSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      orImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      r.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      ava:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      er.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      orImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      r.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      ava:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      ava:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      orImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      r.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      r.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      eanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      ava:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:595)
      4:27:02,058 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
      oy/jmx-console.war/
      4:27:02,152 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      


      Can you please help what is going wrong this is a JSR 181 deployment and JBoss supports it .