struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Leland <Rob...@freetocreate.org>
Subject Ted Husted: An entry for the FAQ(Re: building struts)
Date Fri, 23 Feb 2001 18:20:46 GMT
This should go in the FAQ:

Question:
I cannot building struts, I keep getting either a 
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison
or a 
java.lang.SecurityException: sealing violation
I played with my adjusted my class paths for 5 hours,
Help ... what can I do ?

Answer:
I would recommend ALWAYS building 'ant' before 
trying to build 'struts' for the first time.
Why? It seems that ant customizes itself for 
each environment, and determines which XML parser
you are using.
Once I did that struts builds without a hitch.

1) Read the Build instructions for ANT,
   creating the ANT_HOME, and other needed
   enviromental variables.
2) run the bootstrap.bat          to build a first version of ant.
3) Then run  build.bat  -         to build the final version of Ant.

4) Make sure you have read the 'struts' build guide, 
   and have installed all required packages.
5) Change to the struts directory.
5) Then type 'build'

If this doesn't work then make sure that your
CLASSPATH references only one jaxp.jar and that
parser.jar isn't in your CLASSPATH


"Craig R. McClanahan" wrote:
> 
> Rob Leland wrote:
> 
> > Ok:
> >
> > I am trying to build struts Feb 22 using:
> >
> > ant 1.3-b3, options.jar (1.3 b3); jaxp 1.1
> >
> > I haven't been sucessfull yet.
> >
> 
> For day-to-day development I use current CVS code for Ant, with the JAXP
> 1.1
> JAR files plus the Xerces 1.2.0 JAR file on my classpath (in that
> order).
> 
> Sealing violations happen because the JAXP jar files are sealed, and
> Xerces is
> found ahead of JAXP.
> 
> >
> > Which version of ant are you using to build struts.
> > Have you tried gump ?
> 
> I watch the output but haven't played with it directly.  Once I have
> time, I'll
> probably migrate to using GUMP-based output to create the nightly builds
> of
> Struts -- but I want to think about that a little more first.
> 
> Craig
> 
> >
> > BUILD FAILED
> >
> > java.lang.SecurityException: sealing violation
> >         at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
> >         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:120)
> >         at
> > javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:117)
> >         at
> > org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.java:706)
> >         at
> > org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
> >         at
> > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:403)
> >         at org.apache.tools.ant.Main.main(Main.java:149)

Mime
View raw message