ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parimala" <parim...@medicomsoft.com>
Subject Precompiling JSP TagLib with ANT
Date Thu, 29 Apr 2004 05:15:42 GMT

Hi..

I'm trying to precompile a JSP with TagLibs for Tomcat5.0.
I am using Ant version 1.6.1.

The TagLib classes are not in .JAR or .ZIP format. They exist in the classes
folders in .class form.

The JSP pages with TAgLibs are giving me this error:

[jasper2] [ERROR] JspC - -ERROR-the file '\historydateheader.jsp' generated
the following general exception: <org.apache.jasper.JasperException: Unable
to initialize TldLocationsCache: zip file
closed>org.apache.jasper.JasperException: Unable to initialize
TldLocationsCache: zip file closed

the complete trace is as given below.
What could be the possible problem?
Please let me know if there is any solution.

Thank you...


jspc:
     [jasper2] [ERROR] JspC - -ERROR-the file '\historydateheader.jsp'
generated the following general exception:
<org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
zip file closed>org.apache.jasper.JasperException: Unable to initialize
TldLocationsCache: zip file closed
     [jasper2] 	at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:286
)
     [jasper2] 	at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:257)
     [jasper2] 	at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
java:517)
     [jasper2] 	at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:457)
     [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:25
8)
     [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 java.lang.reflect.Method.invoke(Native Method)
     [jasper2] 	at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
     [jasper2] 	at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
     [jasper2] 	at org.apache.tools.ant.Task.perform(Task.java:341)
     [jasper2] 	at org.apache.tools.ant.Target.execute(Target.java:309)
     [jasper2] 	at org.apache.tools.ant.Target.performTasks(Target.java:336)
     [jasper2] 	at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
     [jasper2] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:580)
     [jasper2] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:376)
     [jasper2] 	at java.lang.reflect.Method.invoke(Native Method)
     [jasper2] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:341)
     [jasper2] 	at
org.eclipse.ant.ui.internal.launchConfigurations.AntLaunchDelegate$1.run(Ant
LaunchDelegate.java:203)
     [jasper2] 	at java.lang.Thread.run(Thread.java:484)
     [jasper2] null
     [jasper2] org.apache.jasper.JasperException: Unable to initialize
TldLocationsCache: zip file closed
     [jasper2] 	at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:286
)
     [jasper2] 	at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j
ava:257)
     [jasper2] 	at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext
java:517)
     [jasper2] 	at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:457)
     [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:25
8)
     [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 java.lang.reflect.Method.invoke(Native Method)
     [jasper2] 	at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
     [jasper2] 	at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
     [jasper2] 	at org.apache.tools.ant.Task.perform(Task.java:341)
     [jasper2] 	at org.apache.tools.ant.Target.execute(Target.java:309)
     [jasper2] 	at org.apache.tools.ant.Target.performTasks(Target.java:336)
     [jasper2] 	at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
     [jasper2] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:580)
     [jasper2] 	at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:376)
     [jasper2] 	at java.lang.reflect.Method.invoke(Native Method)
     [jasper2] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:341)
     [jasper2] 	at
org.eclipse.ant.ui.internal.launchConfigurations.AntLaunchDelegate$1.run(Ant
LaunchDelegate.java:203)
     [jasper2] 	at java.lang.Thread.run(Thread.java:484)
     [jasper2] Error in class org.apache.jasper.JspC

Total time: 6 seconds


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


Mime
View raw message