Re: wsdeploy not creating wsdl

From: Glenn <>
Date: Fri, 7 Oct 2005 14:38:00 -0400 (EDT)


The output with verbose on - in both command-line and Ant looks like it was successful

Commandline: (Ant is similar)
  C:\Development\HelloWorldWS>C:\Java\jwsdp-1.6\jaxrpc\bin\wsdeploy -verbose -keep -tmpdir C:\Development\HelloWorldWS\build\wsdeploy-generated -o dist/myHelloWS.war build/HWS.war
info: created temporary directory: C:\Development\HelloWorldWS\build\wsdeploy-generated\jaxrpc-deploy-28768b
info: created output war file: C:\Development\HelloWorldWS\dist\myHelloWS.war

 --- On Fri 10/07, Doug Kohlert < Doug.Kohlert_at_Sun.COM > wrote:
From: Doug Kohlert [mailto: Doug.Kohlert_at_Sun.COM]
Date: Fri, 07 Oct 2005 10:51:10 -0700
Subject: Re: wsdeploy not creating wsdl

What output are you seeing when running this? Have you tried to run wsdeploy command line on HWS.war with verbose on?

Glenn wrote:
I'm using jdk 1.5.0_05, jwsdp 1.6 and tomcat 5.5.9 on Windows XP. I've copied all of the jars from the following directories into <TOMCAT_HOME>/shared/lib:
I've written a simple Hello World Web Service:
 package com.test.service;
 import java.rmi.Remote;
 import java.rmi.RemoteException;

  public interface HelloWorld extends Remote {
    public String sayHi(String s) throws RemoteException;

  package com.test.service;
  import java.rmi.RemoteException;
  public class HelloWS implements HelloWorld {
    public HelloWS() {}
    public String sayHi(String s) throws RemoteException {
      return "Hi "+s;

I have the following web.xml file
   <?xml version="1.0" encoding="UTF-8"?>
     <display-name>Hello World Service</display-name>
     <description>A simple web service</description>

And the following jaxrpc-ri.xml file
   <?xml version="1.0" encoding="UTF-8"?>
   <webServices xmlns="";
     <!-- The endpoint becomes the service name in the WSDL -->
     <endpoint name="HelloWorldWS"
       displayName="Hello World Service"
       description="A simple web service"

     <endpointMapping endpointName=HelloWorldWS" urlpattern="/hi"/>

In my build.xml I compile the HelloWorld and HelloWS classes and copy them to the web/WEB-INF/classes directory
Then I copy web.xml to the web\WEB-INF directory and finally run the following target.
  <target name="build-war" depends="init, compile">
    <taskdef name="wsdeploy"
        <fileset dir="${jwsdp.dir}/jaxrpc/lib">
          <include name="**/*.jar"/>
        <fileset dir="${jwsdp.dir}/jwsdp-shared/lib">
          <include name="**/*.jar"/>
        <fileset dir="${jwsdp.dir}/saaj/lib">
          <include name="**/*.jar"/>
     <war destFile="${build.dir}/HWS.war"
        webxml="${config.dir}/web.xml" >
        <fileset dir="${web.dir}"/>

     <wsdeploy outWarFile="${dist.dir}/myHelloWS.war"

The compilation and initial war file succeed, The temp dir is created and all the files from the initial war are put into the appropriate directories. The deployable war file is created, but it does not contain the wsdl or the stubs and ties. These files do not exist in the generated temp directory either. The target completes (BUILD SUCCESSFUL). Looking at the generated war file, the original web.xml and jaxrpc-ri.xml are there renamed as web-before.xml and jaxrpc-ri-before.xml. The new web.xml looks like this:
  <?xml version="1.0" encoding="UTF-8"?>
    <display-name>Hello World Service</display-name>
    <description>A simple web service</description>

and the file jaxrpc-ri-runtime.xml looks like this:
  <?xml version="1.0" encoding="UTF-8"?>
   <endpoints xmlns=''

Does anyone have any ideas about what I'm doing wrong?

Thanks in advance.

Join Excite! -
The most personalized portal on the Web!