aspose file tools*
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark ""No Java compiler" error after server been up for a while" Watch ""No Java compiler" error after server been up for a while" New topic
Author

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

Fedor Smirnoff
Ranch Hand

Joined: Apr 21, 2003
Posts: 45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "No Java compiler" error after server been up for a while