I'm not using that book but I think this line is your problem:
path="${path}" config="file:${build}/${example}.xml"/>
I think it should be:
path="${path}" config="file://${build}/${example}.xml"/>
----- Original Message -----
From: "Kairam, Raj" < >
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 11:15 AM
Subject: Install task problem
>
> ANT_HOME=F:\jwsdp-1_0-ea2
> CATALINA_HOME=F:\jwsdp-1_0-ea2
> J2EE_HOME=F:\jwsdp-1_0-ea2
> JAVA_HOME=F:\j2sdk1.4.0-rc
> JWSDP_HOME=F:\jwsdp-1_0-ea2
>
> Ant version 1.4.1 compiled on March 14 2002
> java version "1.4.0-rc"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
> Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
>
> I am trying to create an application called 'drawingstore1' based on the
> Sun's 'bookstore1'
> example. Instead of their Cloudscape database I am using Oracle database
for
> this
> application to work with. The java source files all compile.
> But I am running in to problems with the install target.
> Could any one working with Java Web Services Developers Edition and Ant
> (1.4)
> and who tried the bookstore examples help me, please ?.
>
> Snippet from the build.xml
>
> <target name="install" description="Install web application"
> depends="build">
> <install url="${url}" username="${username}" password="${password}"
> path="${path}" config="file:${build}/${example}.xml"/>
> </target>
>
> When I run 'ant -verbose build' it is OK.
> When I run 'ant -verbose install' , I get the following error
> ( the last few lines from screen output - build.xml : 44 FAIL below
refers
> to the line path="${path}" config="file:${build}/${example}.xml"/>
> in the snippet from build.xml shown above.
> I have the config file specifying the Context and Resource in the
> F:\jwsdp-1_0-ea2\webapps\drawingstore1\build\drawingstore1.xml file. ).
>
> install:
> [install] FAIL - Encountered exception java.io.IOException:
> java.lang.reflect.InvocationTargetException
> [install]
>
> BUILD FAILED
>
> F:\jwsdp-1_0-ea2\webapps\drawingstore1\build.xml:44: FAIL - Encountered
> exception java.io.IOException: java.lang.reflectInvocationTargetException
> at
>
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.ja
> va:278)
> at
>
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.ja
> va:171)
> at
org.apache.catalina.ant.InstallTask.execute(InstallTask.java:157)
> at org.apache.tools.ant.Task.perform(Task.java:217)
> at org.apache.tools.ant.Target.execute(Target.java:184)
> at org.apache.tools.ant.Target.performTasks(Target.java:202)
> at org.apache.tools.ant.Project.executeTarget(Project.java:601)
> at org.apache.tools.ant.Project.executeTargets(Project.java:560)
> at org.apache.tools.ant.Main.runBuild(Main.java:454)
> at org.apache.tools.ant.Main.start(Main.java:153)
> at org.apache.tools.ant.Main.main(Main.java:176)
>
> Thanks in anticipation,
> Raj
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>