JAX-WS 2.1.1 RC1 samples are tested to work fine on tomcat and GF v2.
From your log it appears that you are running the samples using JDK6.
Are you running tomcat 5.5 also on JDK6? If not the deployment will fail
due to UnsupportedClassVersionError. Check the tomcat log.
-vivek.
Hitesh Raghav wrote:
>
> Hi Vivek,
>
> I followed the steps as per provided instructions.
>
> As a result of my first Ant target run, "jaxws-fromjava.war" is created
> and deployed into "webapps" folder of my Tomcat.
>
> This WAR does not contains generated WSDL. Therefore, it's cause for my
> second Ant target run failure.
> Since WSDL is not generated, therefore
> http://localhost:8080/jaxws-fromjava/addnumbers?wsdl shows HTTP Status
> 404 with message "The requested resource (/jaxws-fromjava/addnumbers) is
> not available".
>
> I could not able to find out the cause of non-generation of WSDL.
>
> Note:
> (a). Same type of issue with other samples also.
> (b). I verified that my Tomcat is running with 8080 HTTP port only.
>
>
> Thanks,
> Hitesh
>
>
>
>
> -----Original Message-----
> From: Vivek.Pandey_at_Sun.COM [mailto:Vivek.Pandey_at_Sun.COM]
> Sent: Friday, April 13, 2007 4:36 AM
> To: users_at_jax-ws.dev.java.net
> Subject: Re: cud not able to run JAXWS 2.1 samples
>
> Can you check if the endpoint is deployed correctly? You can check frm a
> web browser by accessing
> http://localhost:8080/jaxws-fromjava/addnumbers?wsdl. I suspect if your
> tomcat is configured to run with 8080 HTTP port.
>
> -vivek.
>
> Hitesh Raghav wrote:
>
>> Dear All,
>>
>> I'm new to JAXWS. I tried to build and deploy the JAXWS 2.1.1 samples
>> in to Tomcat 5.5.
>> I started with 'fromJava' sample.
>> My first ant target (i.e. ant clean server -Dtomcat=true ) run shows
>> as successful.
>>
>> My second ant target (i.e. ant clean client run -Dtomcat=true ) is
>> failing.
>> Below is error stack trace:
>>
>> generate-client:
>> [wsimport] Consider using <depends>/<produces> so that wsimport won't
>>
>
>
>> do unnecessary compilation [wsimport] parsing WSDL...
>> [wsimport]
>> [wsimport]
>> [wsimport] [ERROR] Failed to read the WSDL document:
>> http://localhost:8080/jaxws-fromjava/addnumbers?wsdl, be cause 1)
>> could not find the document; /2) the document could not be read; 3)
>> the root element of the document is not <wsdl:definitions>.
>> [wsimport] unknown location
>> [wsimport]
>> [wsimport] Failed to parse the WSDL.
>> [wsimport] Command invoked: wsimport "C:\Program
>> Files\Java\jdk1.6.0\jre\bin\java.exe" -d D:\Hitesh\GYAN\JAXW
>> S\jaxws-ri\samples\fromjava\build\classes -g -keep
>> http://localhost:8080/jaxws-fromjava/addnumbers?wsdl -p fro
>> mjava.client
>>
>> BUILD FAILED
>> D:\Hitesh\GYAN\JAXWS\jaxws-ri\samples\fromjava\build.xml:81: wsimport
>> failed
>>
>> I verified that though my first ant target shows successful, but it's
>> not generating WSDL.
>>
>> Could you please help me out regarding the same.
>>
>> Please find the attached build file (i.e. build.xml)
>>
>>
>> Thanks,
>> Hitesh
>>
>> ----------------------------------------------------------------------
>> --
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <project basedir="." default="help" name="fromjava">
>>
>> <import file="etc/deploy-targets.xml"/>
>>
>> <path id="jaxws.classpath">
>> <pathelement location="${java.home}/../lib/tools.jar"/>
>> <pathelement
>>
> location="${lib.sample.home}/jaxwsSampleUtils.jar"/>
>
>> <fileset dir="${lib.home}">
>> <include name="*.jar"/>
>> <exclude name="j2ee.jar"/>
>> </fileset>
>> </path>
>>
>>
>> <taskdef name="apt" classname="com.sun.tools.ws.ant.Apt">
>> <classpath refid="jaxws.classpath"/>
>> </taskdef>
>>
>> <taskdef name="wsimport"
>>
> classname="com.sun.tools.ws.ant.WsImport">
>
>> <classpath refid="jaxws.classpath"/>
>> </taskdef>
>>
>>
>> <target name="setup">
>> <mkdir dir="${build.home}"/>
>> <mkdir dir="${build.classes.home}"/>
>> <mkdir dir="${build.war.home}"/>
>> </target>
>>
>> <target name="build-server-java" depends="setup">
>> <apt
>> fork="true"
>> debug="true"
>> verbose="${verbose}"
>> destdir="${build.classes.home}"
>> sourcedestdir="${build.classes.home}"
>> sourcepath="${basedir}/src">
>> <classpath>
>> <path refid="jaxws.classpath"/>
>> <pathelement location="${basedir}/src"/>
>> </classpath>
>> <option key="r" value="${build.home}"/>
>> <source dir="${basedir}/src">
>> <include name="**/server/*.java"/>
>> <include name="**/common/*.java"/>
>> </source>
>> </apt>
>> <!-- copy handlers descriptor file -->
>> <copy todir="${build.classes.home}">
>> <fileset dir="${basedir}/src">
>> <include name="**/server/**/*.xml"/>
>> </fileset>
>> </copy>
>> </target>
>>
>> <target name="clean">
>> <delete dir="${build.home}" includeEmptyDirs="true"/>
>> </target>
>>
>> <target name="create-war">
>> <war warfile="${build.war.home}/jaxws-${ant.project.name}.war"
>>
> webxml="etc/web.xml">
>
>> <webinf dir="${basedir}/etc" includes="sun-jaxws.xml"/>
>> <zipfileset
>> dir="${basedir}/etc"
>> includes="*.wsdl, *.xsd"
>> prefix="WEB-INF/wsdl"/>
>> <classes dir="${build.classes.home}"/>
>> </war>
>> </target>
>>
>> <target name="generate-client" depends="setup">
>> <wsimport
>> xendorsed="true"
>> debug="true"
>> verbose="${verbose}"
>> keep="true"
>> destdir="${build.classes.home}"
>> package="fromjava.client"
>>
>>
> wsdl="http://localhost:8080/jaxws-fromjava/addnumbers?wsdl">
>
>> </wsimport>
>> </target>
>>
>> <target name="client" depends="generate-client">
>> <javac
>> fork="true"
>> srcdir="${basedir}/src"
>> destdir="${build.classes.home}"
>> includes="**/client/**,**/common/**">
>> <classpath refid="jaxws.classpath"/>
>> </javac>
>> </target>
>>
>> <target name="run">
>> <java fork="true"
>>
> classname="fromjava.client.AddNumbersClient">
>
>> <classpath>
>> <path refid="jaxws.classpath"/>
>> <pathelement location="${build.classes.home}"/>
>> <pathelement location="${basedir}/etc"/>
>> </classpath>
>> </java>
>> </target>
>>
>> <target name="help">
>> <echo message="server: Builds and deploy the
>>
> service endpoint WAR"/>
>
>> <echo message="client: Builds the client"/>
>> <echo message="run: Runs the client"/>
>> <echo message="server-j2se: Builds and deploy the
>>
> Endpoint API based service"/>
>
>> <echo message="server-j2se-stop: Stops Endpoint API based
>> service"/>
>>
>> </target>
>>
>> <target name="server" depends="setup">
>>
>> <antcall target="clean"/>
>>
>> <antcall target="build-server-java"/>
>>
>> <antcall target="create-war"/>
>>
>> <antcall target="deploy"/>
>> </target>
>>
>> <target name="server-j2se" depends="setup">
>> <antcall target="clean"/>
>>
>> <antcall target="build-server-java"/>
>>
>> <echo message="Starting endpoint... To stop: ant
>> server-j2se-stop "/>
>>
>> <java fork="true" classname="fromjava.server.AddWebservice">
>> <classpath>
>> <path refid="jaxws.classpath"/>
>> <pathelement location="${build.classes.home}"/>
>> </classpath>
>> </java>
>> </target>
>>
>> <target name="server-j2se-stop" depends="setup">
>> <get src="http://localhost:9090/stop" dest="stop.status"/>
>> </target>
>>
>>
>>
>> </project>
>>
>> ----------------------------------------------------------------------
>> --
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>