Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ant build error with WebLogic 10.3

JeanParisJul 21 2011 — edited Jul 21 2011
Hi,

I am trying to compile the web service example found in the tutorial

http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/use_cases.html#wp228687

Use cases nr 1

And I get this error when trying the command ">ant build-service":
>
D:\myExamples\hello_world\src>ant build_service
Buildfile: D:\myExamples\hello_world\src\build.xml

BUILD FAILED
D:\myExamples\hello_world\src\build.xml:4: taskdef class weblogic.wsee.tools.anttasks.JwscTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds


At this point in the tutorial, the build.xml file contains:
>
<project name="webservices-hello_world" default="all">

<taskdef name="jwsc"
classname="weblogic.wsee.tools.anttasks.JwscTask" />

<target name="build-service">

<jwsc
srcdir="src"
destdir="output/helloWorldEar">

<jws file="examples/webservices/hello_world/HelloWorldImpK.java"
type="JAXWS"/>

</jwsc>

</target>
</project>


I wonder if I should set a variable in the environment?

I know that my ant installation is good since I managed to compile and run a java program with a manifest in the jar.

Many thanks for your help.
This post has been answered by vinod_t_krishnan on Jul 21 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2011
Added on Jul 21 2011
3 comments
16,953 views