Hi there,
Im running tomcat (stand alone) and
going through the tutorial [1].
Now I'm stucking with the first
applet

!
I get these messages:
mars gs # ant build
Buildfile: build.xml
init:
prepare:
[mkdir] Created dir: /opt/tomcat/webapps/jwstutorial13/examples/gs/build
[mkdir] Created
dir: /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF
[mkdir] Created
dir: /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF/classes
[mkdir] Created
dir: /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF/lib
[mkdir] Created
dir: /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF/tags
copy:
[copy] Copying 1 file
to /opt/tomcat/webapps/jwstutorial13/examples/gs/build
[copy] Copying 1 file
to /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF
build:
[javac] Compiling 1 source file
to /opt/tomcat/webapps/jwstutorial13/examples/gs/build/WEB-INF/classes
BUILD FAILED
file:/opt/tomcat/webapps/jwstutorial13/examples/gs/build.xml:55: /opt/tomcat/webapps/jwstutorial13/examples/gs/${jwsdp.home}/common/lib
not found.
Don't make me wonder.
The right path have to be
${jwsdp.home}/common/lib
${jwsdp.home} should be expand to "/opt/tomcat" aka ($CATALINA_HOME}.
At line 55 of gs/build.xml
<target name="build" depends="copy"
description="Compile app Java files and copy HTML and JSP pages" >
<javac srcdir="src" destdir="${build}/WEB-INF/classes">
<include name="**/*.java" />
<classpath refid="classpath"/>
</javac>
<copy todir="${build}/WEB-INF/lib">
<fileset dir="${jwsdp.home}/jstl/lib">
<include name="*.jar" />
</fileset>
</copy>
</target>
Ant have just to copy two files from "/opt/tomcat/common/lib/"
to "./build/WEB-INF/lib"
Changes in serveral dependig target.xml an build.* don't have any
success and is not the right way.
How kann ant retrive the correct ${jwsdp.home}/common/lib
path?
regards markus
1]
http://java.sun.com/webservices/downloads/webservicestutorial.html