Howdy, I'm trying to compile the struts build from CVS, and am
having major xml parser headaches. My base system is:
Win2000 SP2
Sun JDK 1.3.0-C
Ant 1.3.0 (bin)
For XML parser libraries I've tried JAXP 1.1 and Xerces 1.4.0, but I
can't seem to get Struts to compile with either one. In either case
it fails in line 186 of build.xml, which is the style task.
With Xerces I get a NoClassDefFoundError: javax/xml/transform/Source,
which is logical since xerces.jar doesn't contain this class. I gather Ant's
<style> task doesn't work with xerces.
Fine, so I tried it with JAXP, but I get sealing violations. I tried different
combinations of crimson.jar, jaxp.jar, and xalan.jar in my classpath; I put
all 3 in, as instructed by JAXP's install.html, and then tried each by itself
to see what happens.
Anything that didn't include xalan.jar failed due to lack of the
org.apache.xalan.processor.TransformerFactoryImpl class. Anything that
did include xalan.jar failed with a sealing violation.
WITHOUT XALAN.JAR (partial):
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.<init>(TraXLiaison.java:87)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:231)
WITH XALAN.JAR:
compile.library:
[javac] Compiling 132 source files to C:\src\oss\struts\target\library\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[copy] Copying 7 files to C:\src\oss\struts\target\library\classes
[copy] Copying 3 files to C:\src\oss\struts\target\library
[style] Transforming into C:\src\oss\struts\target\library
BUILD FAILED
C:\src\oss\STRUTS\build.xml:186: java.lang.SecurityException: sealing violation
--- Nested Exception ---
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.transform.TransformerFactory.newInstance(TransformerFactory.java:117)
at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.<init>(TraXLiaison.java:87)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:231)
at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:137)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
Does anybody have a spare clue?
Thanks,
Kief