You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nathan Smith <na...@labpro2000.com> on 2002/09/19 02:39:57 UTC
Problems compiling jsp's using Jasper 2 in Tomcat 4.1.10
At the moment tomcat 4.1.10 is not compiling any .jsp files.
It is not including the \WEB-INF\classes\ directory and the directories beneath this path into the classpath.
Jasper seems to think that the path should start at C:\ when everything is installed on my D:\.
All the other necessary class files which are .jar files are included in the classpath. These come from the default directories
common\lib, server\lib, and shared\lib.
I have included some of the output when compilation of a jsp takes place. I increased the debug level for the JspServlet.
Generated servlet error:
Detected Java version: 1.3 in: D:\jdk1.3.1_03\jre
Detected OS: Windows 2000
[javac] main_jsp.java added as D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.class doesn't exist.
[javac] Compiling 1 source file
[javac] Using modern compiler
dropping C:\D from path as it doesn't exist
dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\classes from path as it doesn't exist
dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\lib\activation.jar from path as it doesn't exist
[javac] Compilation arguments:
[javac] '-classpath'
[javac] 'D:\tomcat-4.1.10\bin\bootstrap.jar;D:\tomcat-4.1.10\shared\classes;D:\tomcat-4.1.10\shared\lib\jcommon-0.6.0.jar;D:\tomcat-4.1.10\shared\lib\jdbc.jar;D:\tomcat-4.1.10\shared\lib\jfreechart-0.8.0.jar;D:\tomcat-4.1.10\shared\lib\mail.jar;D:\tomcat-4.1.10\shared\lib\struts.jar;D:\tomcat-4.1.10\common\classes;D:\tomcat-4.1.10\common\endorsed\xercesImpl.jar;D:\tomcat-4.1.10\common\endorsed\xmlParserAPIs.jar;D:\tomcat-4.1.10\common\lib\activation.jar;D:\tomcat-4.1.10\common\lib\ant.jar;D:\tomcat-4.1.10\common\lib\commons-collections.jar;D:\tomcat-4.1.10\common\lib\commons-dbcp.jar;D:\tomcat-4.1.10\common\lib\commons-logging-api.jar;D:\tomcat-4.1.10\common\lib\commons-pool.jar;D:\tomcat-4.1.10\common\lib\jasper-compiler.jar;D:\tomcat-4.1.10\common\lib\jasper-runtime.jar;D:\tomcat-4.1.10\common\lib\jdbc2_0-stdext.jar;D:\tomcat-4.1.10\common\lib\jndi.jar;D:\tomcat-4.1.10\common\lib\jta.jar;D:\tomcat-4.1.10\common\lib\mail.jar;D:\tomcat-4.1.10\common\lib\naming-common.jar;D:\tomcat-4.1.10\common\lib\naming-factory.jar;D:\tomcat-4.1.10\common\lib\naming-resources.jar;D:\tomcat-4.1.10\common\lib\servlet.jar;D:\tomcat-4.1.10\common\lib\tools.jar'
[javac] '-sourcepath'
[javac] 'D:\tomcat-4.1.10\work\Standalone\localhost\equal'
[javac] '-encoding'
[javac] 'UTF8'
[javac] '-g'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] File to be compiled:
[javac] D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.java
As can be seen above the classpath is created using the directories starting at D:\ but when trying to include the classes for our web application Jasper is using C:\.
What the HELL is going on. Does anybody have any insight as to how I might solve this. Is there some parameter that I have not set for the Jasper compiler or for Tomcat 4.1.10 itself.
Any help will be greatly appreciated.
Nathan.
Re: Problems compiling jsp's using Jasper 2 in Tomcat 4.1.10
Posted by Jacob Kjome <ho...@visi.com>.
This has been discussed at length over the last 2 weeks or so. Please
check the archives before posting a question like this.
There is an issue with Tomcat-4.1.10 where it uses Ant to do the
compilation and for some reason, the way things are set up it only compiles
JSP's on the C: drive. Try a nightly or wait for Tomcat-4.1.11 if you want
it to work for alternate drives.
Jake
At 12:39 PM 9/19/2002 +1200, you wrote:
> At the moment tomcat 4.1.10 is not compiling any .jsp files.
>
>It is not including the \WEB-INF\classes\ directory and the directories
>beneath this path into the classpath.
>Jasper seems to think that the path should start at C:\ when everything is
>installed on my D:\.
>All the other necessary class files which are .jar files are included in
>the classpath. These come from the default directories
>common\lib, server\lib, and shared\lib.
>
>I have included some of the output when compilation of a jsp takes place.
>I increased the debug level for the JspServlet.
>
>Generated servlet error:
>Detected Java version: 1.3 in: D:\jdk1.3.1_03\jre
>Detected OS: Windows 2000
> [javac] main_jsp.java added as
> D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.class doesn't exist.
> [javac] Compiling 1 source file
> [javac] Using modern compiler
>dropping C:\D from path as it doesn't exist
>dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\classes from path as it
>doesn't exist
>dropping C:\tomcat-4.1.10\webapps\equal\WEB-INF\lib\activation.jar from
>path as it doesn't exist
> [javac] Compilation arguments:
> [javac] '-classpath'
> [javac]
> 'D:\tomcat-4.1.10\bin\bootstrap.jar;D:\tomcat-4.1.10\shared\classes;D:\tomcat-4.1.10\shared\lib\jcommon-0.6.0.jar;D:\tomcat-4.1.10\shared\lib\jdbc.jar;D:\tomcat-4.1.10\shared\lib\jfreechart-0.8.0.jar;D:\tomcat-4.1.10\shared\lib\mail.jar;D:\tomcat-4.1.10\shared\lib\struts.jar;D:\tomcat-4.1.10\common\classes;D:\tomcat-4.1.10\common\endorsed\xercesImpl.jar;D:\tomcat-4.1.10\common\endorsed\xmlParserAPIs.jar;D:\tomcat-4.1.10\common\lib\activation.jar;D:\tomcat-4.1.10\common\lib\ant.jar;D:\tomcat-4.1.10\common\lib\commons-collections.jar;D:\tomcat-4.1.10\common\lib\commons-dbcp.jar;D:\tomcat-4.1.10\common\lib\commons-logging-api.jar;D:\tomcat-4.1.10\common\lib\commons-pool.jar;D:\tomcat-4.1.10\common\lib\jasper-compiler.jar;D:\tomcat-4.1.10\common\lib\jasper-runtime.jar;D:\tomcat-4.1.10\common\lib\jdbc2_0-stdext.jar;D:\tomcat-4.1.10\common\lib\jndi.jar;D:\tomcat-4.1.10\common\lib\jta.jar;D:\tomcat-4.1.10\common\lib\mail.jar;D:\tomcat-4.1.10\common\lib\naming-common.jar;D:\tomcat-4.1.1
0\c
> ommon\lib\naming-factory.jar;D:\tomcat-4.1.10\common\lib\naming-resources.jar;D:\tomcat-4.1.10\common\lib\servlet.jar;D:\tomcat-4.1.10\common\lib\tools.jar'
> [javac] '-sourcepath'
> [javac] 'D:\tomcat-4.1.10\work\Standalone\localhost\equal'
> [javac] '-encoding'
> [javac] 'UTF8'
> [javac] '-g'
> [javac]
> [javac] The ' characters around the executable and arguments are
> [javac] not part of the command.
> [javac] File to be compiled:
> [javac]
> D:\tomcat-4.1.10\work\Standalone\localhost\equal\main_jsp.java
>
>As can be seen above the classpath is created using the directories
>starting at D:\ but when trying to include the classes for our web
>application Jasper is using C:\.
>
>What the HELL is going on. Does anybody have any insight as to how I might
>solve this. Is there some parameter that I have not set for the Jasper
>compiler or for Tomcat 4.1.10 itself.
>
>Any help will be greatly appreciated.
>
>
>Nathan.
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>