Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat won't always compile JSP Files  RSS feed

Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Apache and Tomcat together on a WinNT 4.0 but something is strange.
I start Apache as a service.
I can start Tomcat A. as a service or
B. with a batch file
The batch file is :
start "Tomcat" "%JAVA_HOME%\bin\java"
-classpath "%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar"
org.apache.catalina.startup.Bootstrap start

Installing the service is :
-install Tomcat
"%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%"
-start org.apache.catalina.startup.BootstrapService
-params start
-stop org.apache.catalina.startup.BootstrapService
-params stop
-out "%CATALINA_HOME%\logs\stdout.log"
-err "%CATALINA_HOME%\logs\stderr.log"
Starting Tomcat with the Batch, my JSP projects compile just fine
but starting Tomcat as a service the JSP projects will not compile !!!
For simple.jsp, a simple$ file is generated then it stops !!!
It doesn't go on to compile it and make the necessary simple$jsp.class file for
my simple.jsp page.
Using the batch method the simple$ file is
both generated *And* the simple$jsp.class file is created !!.
But that dos box hanging there is ugly.
With the class file generated by the batch I can look at the simple.jsp with
the Tomcat as a service or as a batch file.
Why is the service ready to write the java but not willing generate the class file?
Any ideas ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!