Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"No Java compiler" error after server been up for a while

 
Fedor Smirnoff
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, this is weird, I have about 50 identical applications running on Tomcat5 under different application names. Everything works fine for about 6 hours, than all of a sudden I start getting
---------------------------------------------------
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
---------------------------------------------------
It would be easy to track if it was happenning all the time, however even just restarting Tomcat takes care of the problem. I do have JAVA_HOME and CATALINA_HOME defined and again, same application will run just fine for a while until giving this error, whch is fixed by restarting Tomcat. Any ideas? Maybe it has something to do with me moving everything out of "WEB-INF/lib" from each individual application to "Tomcat5\common\lib", all the applications are identical though and use same .jar files. But if that would be the problem why it doesnt error all the time? Really need your help on this one, thanks.
Fedor
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic