> Maybe these versions don't play well?

It is possible that the jar files that come from Tomcat might not be
compatible.  You still need to get JAXP 1.1 from the Sun Web site at:
http://java.sun.com/xml/download.html (I did not have any trouble).   Also,
it is not necessary to place the XML parser files in your classpath,
instead place crimson.jar, jaxp.jar, and xalan.jar from JAXP 1.1 in the lib
directory of ANT.

Brian




                                                                                       
                            
                    "Will Jaynes"                                                      
                            
                    <wjaynes@medi        To:     <[EMAIL PROTECTED]>      
                            
                    aone.net>            cc:                                           
                            
                                         Subject:     Re: building struts              
                            
                    08/27/2001                                                         
                            
                    01:42 PM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    struts-user                                                        
                            
                                                                                       
                            
                                                                                       
                            




Brian,

Well.... I've got the jakarta-ant-1.3-optional.jar in the ANT/lib
directory.
I've got jaxp.jar, crimson.jar, and xalan.jar on my classpath, and they are
the
only thing on my classpath.

Perhaps I have some version problem? I couldn't use the jaxp, crimson, and
xalan
from the Sun Jaxp site ( some kind of packaging problem) so I took jaxp and
crimson from tomcat and xalan from the xml.apache.org site. Maybe these
versions
don't play well?

Where did you get each of your versions of jaxp, crimson, and xalan?

Sorry for the extented trouble. Regards, Will

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 2:26 PM
Subject: Re: building struts



Will,

If the [style] tag is still failing, you probably still need
jakarta-ant-1.3-optional.jar in the lib directory of ANT.

Brian





                    "Will Jaynes"
                    <wjaynes@medi        To:
<[EMAIL PROTECTED]>
                    aone.net>            cc:
                                         Subject:     Re: building struts
                    08/27/2001
                    12:32 PM
                    Please
                    respond to
                    struts-user







Thanks, Brian. I do have jaxp, crimson, and xalan on my classpath.
Unfortunately, I still get the following  error message.  Still not sure
what I
need.

---------
    [style] Failed to read stylesheet stylesheets\tld.xsl

BUILD FAILED

c:\jakarta\jakarta-struts\build.xml:215:
javax.xml.transform.TransformerConfigur
ationException: javax.xml.transform.TransformerException:
org.xml.sax.SAXExcepti
on: Namespace not supported by SAXParser
--- Nested Exception ---


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 10:47 AM
Subject: Re: building struts



Will,

Here's Craig McClanahan's message from a while back which I think addresses
your problem:

I build Struts on both Linux and Windows.  Here is what I did:

* Download and install Ant 1.3 as an application (i.e. put
  $ANT_HOME/bin on your PATH variable so you can say "ant dist"
  and things like that)

* Copy the "optional.jar" file from the same place you downloaded
  Ant, and place it in $ANT_HOME/lib.  This code has the <style>
  tag in it.

* Download and install JAXP 1.1's three jar files, and add them to
  the CLASSPATH environment variable used when you execute Ant.

* Make sure there are no other XML parsers on your CLASSPATH, or in
  your $JAVA_HOME/jre/lib/ext directory

I've never tried Ant's <style> task with Xerces, but would not be
surprised by problems.  You might try it with the Apache version of Xalan
(rather than the one that comes with JAXP).




                    "Will Jaynes"
                    <wjaynes@medi        To:     "struts user"
<[EMAIL PROTECTED]>
                    aone.net>            cc:
                                         Subject:     building struts
                    08/27/2001
                    08:55 AM
                    Please
                    respond to
                    struts-user






I have used anonymous CVS to bring down the struts working code, and am
trying
to build it. Can someone tell me what I need on my classpath in order to do
a
successful build?

I've set up a build.properties as per the example. But I also needed to add
jaxp.jar and crimson.jar to my classpath. Now I'm failing on the "style"
tasks,
which build the documentation. I thought that adding xalan.jar (version
2.2.D9)
to my classpath would solve this but it does not.

Regards, Will
--
William Jaynes | University of Michigan Medical School
[EMAIL PROTECTED] | 734-763-6751
















Reply via email to