my dog learned polymorphism*
The moose likes Tomcat and the fly likes Precompilation of jsps using jspc command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic

Precompilation of jsps using jspc command

Monish Das

Joined: Sep 28, 2006
Posts: 4
I am currently facing some problem regarding precompilation of jsps using jspc command on command prompt (not with ant jspc option).
The problem is that i am able to compile with the following command

jasper.bat jspc -webapp "C:\Program
Files\Apache Group\Tomcat 4.1\webapps\newtask" -d "D:\JSPCompiled"

But here in this folder "newtask" i have many jsps in which .tld and .inc files are included. So when the jspc compiler faces these includes it fails with following error.

2006-09-28 12:44:58 - ERROR-the file '\emxLoginDisplay.jsp' generated the follow
ing general exception: org.apache.jasper.JasperException: /emxLoginDisplay.jsp(1
0,0) File "common/" not found
errorrg.apache.jasper.JasperException: Error compiling \emxLoginDisplay.jsp
at org.apache.jasper.JspC.processFile(
at org.apache.jasper.JspC.execute(
at org.apache.jasper.JspC.main(

I feel that it is because the jspc compiler doesnt compile the jsps included files.
Its very urgent. Please help me out in this matter
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Please don't post the same question in more than one forum.
This is called cross-posting and is considered to be extremely rude.
It wastes the time of the people who are trying help you.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Precompilation of jsps using jspc command
Similar Threads
weblogic.jspc thru command line(not thru ANT)
precompilation of jsps using jspc
Problems making a jspc task work correclty with 1.5.4
outofmemory error while compiling jsps using weblogic.jspc
Jsp precompile with Ant and NullPointerException