tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29581] New: - java.lang.ExceptionInInitializerError when running Jasper twice
Date Tue, 15 Jun 2004 17:56:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29581>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29581

java.lang.ExceptionInInitializerError when running Jasper twice

           Summary: java.lang.ExceptionInInitializerError when running
                    Jasper twice
           Product: Tomcat 5
           Version: 5.0.25
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: julien@julien-dubois.com


Hi,

I'm using the new <import/> task of Ant 1.6.1 to reuse my "jspc" task on all my
applications.

But I cannot use JspC more than once (it used to work with Tomcat 4).

Here is the exception I get:
java.lang.ExceptionInInitializerError
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:537)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

Here is my "common" build.xml:

<target name="jspc">
(...)
        <taskdef classname="org.apache.jasper.JspC" name="jasper2"
classpathref="jasper.classpath"/>
        <jasper2 
             validateXml="false"
             webXmlFragment="${basedir}/target/jspc/webinc.xml" 
             package="${jspc.package}"
             uriroot="${basedir}/target/jspc/war"
             outputDir="${basedir}/target/jspc/java" />
(...)
</target>

It will fail if I call this task twice. For example :
<antcall target="jspc"/>
<antcall target="jspc"/>

BTW, I use Java 1.4.2_03-b02 and Ant 1.6.1.

Thanks in advance for the help,

Julien Dubois.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message