This content has been marked as final. Show 6 replies
> These examples will only work when these pages are
being served by the ServletRunner. They will not workNormally JSP pages will be executed at server side before serving
if you are viewing these pages via a "file://..." URL.
But I don't know what does that mean. What should I
do? How can I view these examples?
the output to client. But you can see the same file using any editor
or using windows explorer.i.e you are directly viewing the jsp page.
here you are using file protocol. But when you access the same page
using any browser by specifying it's URL for ex: http://localhost:8080/myjsp.jsp
you are using http as protocol to get the required page/file.
For more information on how to install and run Tomcat 4, please go
through the running.txt file which is there under tomcat-docs folder
of your tomcat installation\webapps.
Hope this helps.
Developer Technical Support
Sun Micro Sysytems
Normally JSP pages will be executed at server sideHello ,
e before serving
the output to client. But you can see the same file
using any editor
or using windows explorer.i.e you are directly viewing
the jsp page.
here you are using file protocol. But when you access
the same page
using any browser by specifying it's URL for ex:
you are using http as protocol to get the required
My problem is that when I start Tomcat and type in my browser:
I see the JSP examples. But when I try to click on one of them,
I get an error like this:
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
....and so on...........
....................and so on
Please give me a hint of how to fix this problem.
Thank you very much for your time and advise!
I also have the same problem, have you had any luck fixing it?
I am running WinXP Pro
J2SE 1.4 Win32
Tomcat 4.0.3 Win32
I can run the Servlet Examples without any problems but I cannot run the JSP examples or any other JSP code as far as I can tell as I get a HTTP 500 Internal Server Error.
I have had many similar problems when trying to run anything on XP professional. This includes the problem you are having, and many other tomcat related problems. I test on win98, win2000 and sadly I have xp pro upgraded from xp home on this machine, and its absulutely rubbish.
My most recent problem was getting tomcat and IIS to run together, and this was fine with 2000, but not on XP. Maybe microsoft will bring out patches to patch their patches on this stable software?
Im not actually trying to run Tomcat with IIS.
I also had exactly the same problems I am experiencing now with Window2000 as well so I am guessing that its not XP that is at fault?
This is in response to the problem...
I had the same problem. I had tomcat 4.0.4-b3 working with IIS 5.0. I then was trying to install Struts and get an application working and suddenly I started getting that error. The reason why was because I moved the jar servlet.jar into the class path on my machine. This created a conflict for tomcat. I'm not positive the exact reasons but I'm guessing it's because tomcat was expecting different servlet source code other than the servlet.jar that I stuck in the path. After I removed it from the path and restarted tomcat everything worked again.