Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

ant axis-java2wsdl classpath setup/error

Thread view: 
chotchkie - 03 Oct 2005 17:19 GMT
Hi All, thanks in advance to anyone that replies.

I am having a bit of trouble setting up a build.xml file.  In this
build file, I am building a jar, then trying to build a WSDL using
axis-java2wsdl.  The problem is that the code that is being used to
generate the WSDL uses classes that are in another project (the jar
file previously mentioned), and when i run the build, i get a
NoClassDefFoundError on my custom class that is in the jar.  I am
assuming this is because I have not setup a classpath correctly within
the axis-java2wsdl task, but am unsure of how to do so.

here is the axis classpath setup:

<path id="axis.classpath">
<fileset dir="${axis.home}/lib">
<include name="**/*.jar" />
</fileset>
<pathelement location="../jars/ServiceMessages.jar"/>
</path>

and here is the task:

<axis-java2wsdl  classname="com.myclass"
output="../res/wsdl/tigris/mywsdl.wsdl"
location="http://localhost:9080/Tigris/services/myservice"
namespace="http://mynamespace.com">
<classpath>
<pathelement location="../jars/ServiceMessages.jar"/>
</classpath>
</axis-java2wsdl>

please respond if you have any ideas/suggestions, I have been stuck on
this for a few days now, and cant find much documentation on the
subject.

again, thanks!
Roedy Green - 04 Oct 2005 10:23 GMT
>I have not setup a classpath correctly within
>the axis-java2wsdl task, but am unsure of how to do so.

You can set classpath on the ant command line or in the SET
environment which would likely be known as well.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.