Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » xml.build question
xml.build question [message #159051] Sun, 05 February 2006 11:16
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I am trying to get the examples from Learning Java 3rd ed. running in
Eclipse. The book's web-site includes an examples archive especially
designed for Eclipse. The instructions for the archive work fine except
for the chapter that makes use of the Java Web Services Developer Pack.
The problem is that the build.xml file was written for jwsdp-1.5, but
the changes in the current jwsdp-2.0 yield a variety of compiler errors.
I think I have dealt with most of these, but there is one that I
cannot seem to fix: "com.sun.tools.xjc.XJCTask cannot be found" The
relevant section of the build.xml file is shown below:

****

<property name="jwsdphome" value="C:/Sun/jwsdp-2.0"/>

<property name="src-dir" value="." />
<property name="build-dir" value="." />
<property name="lib-dir" value="lib" />

<property name="jwsdpshared" value="${jwsdphome}/jwsdp-shared"/>
<property name="jaxbhome" value="${jwsdphome}/jaxb"/>
<property name="jaxphome" value="${jwsdphome}/jaxp"/>

<path id="lib-path">

<pathelement location="${jaxbhome}/lib/jaxb-api.jar"/>
<pathelement location="${jaxbhome}/lib/jaxb-impl.jar"/>
<pathelement location="${jaxbhome}/lib/jaxb1-impl.jar"/>
<pathelement location="${jaxbhome}/lib/jaxb-xjc.jar"/>

<pathelement location="${jaxphome}/lib/jaxp-api.jar"/>

<pathelement location="${jaxphome}/lib/endorsed/dom.jar"/>
<pathelement location="${jaxphome}/lib/endorsed/jaxp-api.jar"/>
<pathelement location="${jaxphome}/lib/endorsed/sax.jar"/>
<pathelement location="${jaxphome}/lib/endorsed/xalan.jar"/>
<pathelement location="${jaxphome}/lib/endorsed/xercesImpl.jar"/>

<pathelement location="${jwsdpshared}/lib/activation.jar"/>
<pathelement location="${jwsdpshared}/lib/jaas.jar"/>
<pathelement location="${jwsdpshared}/lib/jta_spec1_0_1.jar"/>
<pathelement location="${jwsdpshared}/lib/mail.jar"/>
<pathelement location="${jwsdpshared}/lib/PackageFormat.jar"/>
<pathelement location="${jwsdpshared}/lib/relaxngDatatype.jar"/>
<pathelement location="${jwsdpshared}/lib/resolver.jar"/>
<pathelement location="${jwsdpshared}/lib/xmlsec.jar"/>
<pathelement location="${jwsdpshared}/lib/xsdlib.jar"/>

<pathelement location="${lib-dir}/jdom.jar"/>

</path>

<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath>
<path refid="lib-path"/>
</classpath>
</taskdef>

******************

Interestingly, in the Eclipse editor the line that begins:

<taskdef name="xjc"...

is marked with an error that reads:

taskdef A class needed by class com.sun.tools.xjc.XJCTask cannot be found

So, I am not even clear if it is XJCTask that cannot be found or some
other class "needed by" XJCTask that cannot be found.

Can anyone tell me what I need to do to fix this build.xml?

Thanks,

JAS
Previous Topic:Need help!
Next Topic:Can't add Web App Libraries
Goto Forum:
  


Current Time: Sat Mar 15 21:12:22 EDT 2025

Powered by FUDForum. Page generated in 0.03263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top