ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton_Gr...@mn.man.de
Subject please help: problem using <sytle>-task
Date Wed, 23 Jan 2002 14:14:01 GMT

Using the <style>-task with the binary distribution of ant-1.3
I get the an Error with the following

     <style
          basedir="${global.was.vhost.dir}/${ant.project.name}/"
          destdir="${global.was.vhost.dir}/${ant.project.name}/"
          style="${ant.build.templates}/xsl/web.xsl"
          in="${web.dir}/${web-inf.dir}/web.base.xml"
          out="${web.dir}/${web-inf.dir}/web.xml"
     />

#############

BUILD FAILED

/tmp/projects/OKBVWebApp/build.webapp.server.xml:363:
java.lang.NoClassDefFoundError: javax/xml/transform/Source
--- Nested Exception ---
java.lang.NoClassDefFoundError: javax/xml/transform/Source
        at java.lang.Class.forName1(Native Method)
        at java.lang.Class.forName(Class.java:134)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:229)
        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)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second
wasdply@mmicl999:/tmp/projects/OKBVWebApp >

##############


After reading the installation/building documentation I tried to build
ant with the JAXP-API 1.1 (jaxp.jar, crimson.jar, xalan.jar).
I removed parser.jar, jaxp.jar from lib directory and coppied the mentioned
jaxp-1.1 files.

Using the distribution with the style-task the result was the following
"sealing exception"

/tmp/projects/OKBVWebApp/build.webapp.server.xml:363:
java.lang.SecurityException: sealing violation
--- Nested Exception ---
java.lang.SecurityException: sealing violation
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at java.lang.RuntimeException.<init>(RuntimeException.java:49)
        at java.lang.SecurityException.<init>(SecurityException.java:41)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:229)
        at java.net.URLClassLoader.access$2(URLClassLoader.java:209)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:531)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:195)
        at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at java.lang.Class.forName1(Native Method)
        at java.lang.Class.forName(Class.java:134)
        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(Compiled Code))
        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)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second
wasdply@mmicl999:/tmp/projects/OKBVWebApp >

Can anybody please help me with this.

thanks a lot

Toni Grimm

****************************************************
MAN Nutzfahrzeuge AG
Anton Grimm
Abt. IDP (SoftwareProduktionsumgebungen)
Dachauerstr.667
80995 M√ľnchen

Tel.:      089/1580-1054
Fax:      089/1580-911054
E-Mail: Anton_Grimm@mn.man.de
****************************************************


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message