ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasad Iyer <Prasad.I...@lntinfotech.com>
Subject error with jasper2 task
Date Mon, 11 Jul 2005 12:14:40 GMT
I am trying to use precompiled jsp's in my application. I get weird error. 
I am using tomcat version 5. I have defined struts.jar in "lib.path" Can 
anyone help me out
Following is the ant task
        <target name="depends" depends="init">
                <jspc destdir="src" srcdir="WEB-INF/pages" 
                                compiler="jasper41" 
                                webinc="WEB-INF/tmp.xml">
                        <classpath refid="lib.path" />
                        <include name="**/*.jsp" />
                </jspc>
        </target>
        <target name="default" depends="depends">
        </target>
 
        <target name="precompile" depends="init">
                <taskdef classname="org.apache.jasper.JspC" name="jasper2" 
> 
                        <classpath refid="lib.path"/>
            </taskdef> 
                <jasper2 validateXml="false" uriroot="." webXmlFragment=
"WEB-INF/generated_web.xml" 
                             outputDir="src" classpath="WEB-INF/lib/*.jar"
> 
                        </jasper2>
 
 
 
        </target>
and following is the stack trace I get at the end

 [jasper2] Jul 11, 2005 5:36:00 PM org.apache.jasper.JspC processFile
  [jasper2] SEVERE: ERROR-the file 
'\WEB-INF\pages\wu\priceCalcCharges.jsp' generated the following general 
exception:
  [jasper2] java.lang.ClassNotFoundException: 
org.apache.struts.taglib.html.MessagesTei
  [jasper2] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
  [jasper2] at java.security.AccessController.doPrivileged(Native Method)
  [jasper2] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  [jasper2] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  [jasper2] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:453)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:205)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
  [jasper2] at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
  [jasper2] at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
  [jasper2] at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:747)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:882)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [jasper2] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jasper2] at java.lang.reflect.Method.invoke(Method.java:324)
  [jasper2] at 
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:124)
  [jasper2] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at org.apache.tools.ant.Target.execute(Target.java:301)
  [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:328)
  [jasper2] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
  [jasper2] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
  [jasper2] java.lang.ClassNotFoundException: 
org.apache.struts.taglib.html.MessagesTei
  [jasper2] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
  [jasper2] at java.security.AccessController.doPrivileged(Native Method)
  [jasper2] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  [jasper2] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  [jasper2] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:453)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
  [jasper2] at 
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:205)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
  [jasper2] at 
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
  [jasper2] at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
  [jasper2] at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
  [jasper2] at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:747)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:882)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [jasper2] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jasper2] at java.lang.reflect.Method.invoke(Method.java:324)
  [jasper2] at 
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:124)
  [jasper2] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at org.apache.tools.ant.Target.execute(Target.java:301)
  [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:328)
  [jasper2] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
  [jasper2] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
BUILD FAILED: D:\project\EurogiroELS\PDLC\Coding\ELS_SRC\web\build.xml:35: 
org.apache.jasper.JasperException: Failed to load or instantiate 
TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei



______________________________________________________________________
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message