jsp files not reflecting changes on tomcat

S

sqlboy2000

All,
I'm running Tomcat 5.0.18 on Win2k. My last experience w/ Tomcat was a
couple of releases ago and I'm not sure what is going on. I've
sucessfully installed the latest JDK and Tomcat itself and the .jsp
files render properly when I go to 127.0.0.1:8080. But when I change
any of the jsp files, be it in the root or examples (like simply
inserting the word Hello on a line) the change is not reflected. The
modified date on the file changes, however it's like Tomcat is still
using the old class file. Is there some simple config I'm missing
(everything is default install right now).
I don't recall having to do anything to get changes to show up in
Tomcat 3.
Any help is greatly appreciated.

Thanks.
 
B

Berlin Brown

sqlboy2000 said:
All,
I'm running Tomcat 5.0.18 on Win2k. My last experience w/ Tomcat was a
couple of releases ago and I'm not sure what is going on. I've
sucessfully installed the latest JDK and Tomcat itself and the .jsp
files render properly when I go to 127.0.0.1:8080. But when I change
any of the jsp files, be it in the root or examples (like simply
inserting the word Hello on a line) the change is not reflected. The
modified date on the file changes, however it's like Tomcat is still
using the old class file. Is there some simple config I'm missing
(everything is default install right now).
I don't recall having to do anything to get changes to show up in
Tomcat 3.
Any help is greatly appreciated.

Thanks.
You probably already tried this but are you starting, stopping tomcat
just in case. Also, trying putting no-cache meta tags at the top of
your code.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
K

kaeli

sqlboy2000 said:
All,
I'm running Tomcat 5.0.18 on Win2k. My last experience w/ Tomcat was a
couple of releases ago and I'm not sure what is going on. I've
sucessfully installed the latest JDK and Tomcat itself and the .jsp
files render properly when I go to 127.0.0.1:8080. But when I change
any of the jsp files, be it in the root or examples (like simply
inserting the word Hello on a line) the change is not reflected. The
modified date on the file changes, however it's like Tomcat is still
using the old class file. Is there some simple config I'm missing
(everything is default install right now).
I don't recall having to do anything to get changes to show up in
Tomcat 3.
Any help is greatly appreciated.

Thanks.

Tomcat 5 uses Jasper. That's new.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html

Look at checkInterval in the jasper file and look to make sure
reloadable is set to true in server.xml.

--
 
S

sqlboy2000

Yes, I've tried stopping and starting tomcat. I also just tried the
meta tag you suggested and no luck. The .class file for the page never
gets changed. I'm at a loss for what I'm missing. Thanks for the
suggestion.
 
S

sqlboy2000

You appear to be correct, it's definitely something to do with the
compiler. I now get the following error: (I've done what the error
suggests with copying the tools.jar file and restarted, but no
success. Any ideas?)


org.apache.jasper.JasperException: Unable to compile class for JSP

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.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat
logs.
 
S

sqlboy2000

It turns out that error message is false. It was actually a syntax
error in the jsp. But it throws that "can't find complier" error
instead. It's weird, it won't debug at all, anytime there is a syntax
error in the code, it throws the "can't find complier" page up. Lost
on this one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top