• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat won't always compile JSP Files

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
-Djava.endorsed.dirs="%CATALINA_HOME%\bin;%CATALINA_HOM%\common\lib"
-classpath "%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar"
-Dcatalina.base="%CATALINA_HOME%"
-Dcatalina.home="%CATALINA_HOME%"
-Djava.io.tmpdir="%CATALINA_HOME%\temp"
org.apache.catalina.startup.Bootstrap start

Installing the service is :
"%CATALINA_HOME%\bin\tomcat.exe"
-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%"
-Dcatalina.base="%CATALINA_HOME%"
-Djava.endorsed.dirs="%CATALINA_HOME%\bin;%CATALINA_HOME%\common\lib"
-Djava.io.tmpdir="%CATALINA_HOME%\temp"
-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$jsp.java 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$jsp.java 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 ?
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic