1 Reply Latest reply: Sep 14, 2012 10:44 AM by 945123 RSS

    DeployerException with web service invoking another web service

    945123
      Weblogic 10.3.5

      I need to create a web service that invokes another web service.
      I started by creating a simple single servlet application that invokes the web service, and that is working well.

      Now I am trying to create a web service that does the same.
      I am trying to use this in my build.xml to create the web service application ear file.

           <target name="build-service">
           <jwsc
                     srcdir="${src.dir}"
                     destdir="${bld.dir}/${app.name}Ear">
                     <jws file="testpackage/WebServiceTestWSImpl.java"
                          type="JAXRPC">
                          <clientgen
                               type="JAXRPC"
                               wsdl="http://${acv.ws.hostname}:${acv.ws.port}/WCFTestService/Service.svc?WSDL"
                               generatePolicyMethods="true"
                               serviceName="Service"
                               packageName="testpackage"/>
                     </jws>     
           </jwsc>
           </target>

      This is part of the WebServiceTestWSImpl.java:

           import testpackage.Service;

           @WebService(name="WebServiceTestWSPortType", serviceName="WebServiceTestWSService")
           public class WebServiceTestWSImpl {

                @WebServiceRef
                private Service L1Service;

      All the files are generated in the correct locations, but when I try to deploy the web service I get the following error:

      Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 145 failed:
      Target state: deploy failed on Server testserver
      java.lang.NullPointerException
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)

      I wish it would let me know which class it is having trouble loading.
      Does anyone see what I have done incorrectly?
      Any help or advice is greatly appreciated.
      Thank you.