here's my build.xml, the only change i made is marked 'HERE'
<?xml version="1.0" encoding="UTF-8"?>
<!--
The contents of this file are subject to the terms
of the Common Development and Distribution License
(the License). You may not use this file except in
compliance with the License.
You can obtain a copy of the license at
https://glassfish.dev.java.net/public/CDDLv1.0.html.
See the License for the specific language governing
permissions and limitations under the License.
When distributing Covered Code, include this CDDL
Header Notice in each file and include the License file
at
https://glassfish.dev.java.net/public/CDDLv1.0.html.
If applicable, add the following below the CDDL Header,
with the fields enclosed by brackets [] replaced by
you own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Copyright 2006 Sun Microsystems Inc. All Rights Reserved
-->
<project basedir="." default="help" name="fromjava">
<import file="etc/deploy-targets.xml"/>
<!-- HERE
<property environment="env"/>
<property file="../../../jwsdp-shared/bin/sjsas.props"/>
<condition property="lib.home" value="${DOMAIN_DIR}/../lib">
<available file="../../../jwsdp-shared/bin/sjsas.props"/>
</condition>
<condition property="lib.home" value="${env.JAXWS_HOME}/lib">
<not>
<available file="../../../jwsdp-shared/bin/sjsas.props"/>
</not>
</condition>
-->
<property name="lib.home" value="C:/java/jaxws-2.0.1-ea51/lib"/>
<property file="etc/build.properties"/>
<property name="build.home" value="${basedir}/build"/>
<property name="build.classes.home" value="${build.home}/classes"/>
<property name="build.war.home" value="${build.home}/war"/>
<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="${debug}"
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
debug="${debug}"
verbose="${verbose}"
keep="${keep}"
extension="${extension}"
destdir="${build.classes.home}"
wsdl="${client.wsdl}">
<binding dir="${basedir}/etc" includes="${client.binding}"/>
</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="${client}">
<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="${j2se.sei}">
<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>
On 7/5/06, jm <jmuguruza_at_gmail.com> wrote:
> thanks Sameer,
> I'm at home now, will send it tomorrow if that helps, but I was just
> using the original build.xml in the fromjava example. The only thing I
> changed was how the lib.home is set, and I set it to the jax-ws/lib
> directory.
>
>
> On 7/5/06, Sameer Tyagi <Sameer.Tyagi_at_sun.com> wrote:
> > Please send me your build.xml file.
> >
> > /s
> >
> >
> >
> > jm wrote:
> >
> > > hi,
> > >
> > > I already had it set to the correct folder...any other idea??
> > >
> > > thanks
> > >
> > > On 7/4/06, Sameer Tyagi <Sameer.Tyagi_at_sun.com> wrote:
> > >
> > >> You need to set the environment variable JAXWS_HOME to the JAX-WS
> > >> installation directory
> > >>
> > >> /s
> > >>
> > >>
> > >>
> > >> jm wrote:
> > >>
> > >> > hi,
> > >> >
> > >> > I am trying to run generate-client from the examples, I have tried
> > >> > with several and I always get the same excpetion, both with 2.0 and
> > >> > 2.0.1.
> > >> >
> > >
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>