• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Internal Servlet Error with JSP + Tomcat 3.2.3

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have been doing some work with Servlets, and so far everything has been going ok. I have the Tomcat 3.2.3 servlet container installed on my Windows 2000 machine.
My problem is when I try and use JSP. Whenever I try and load my JSP into the browser I get the following error message:
Error: 500
Location: /examples/Expressions.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:59: Class Java.util.Date not found.
out.print( new Java.util.Date() );
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:65: Invalid type expression.
request.getRemoteHost()
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:68: Invalid declaration.
out.write("\r\n\tYour session ID: ");
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:71: Invalid type expression.
session.getID()
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:74: Invalid declaration.
out.write("\r\n\tThe testParam form parameter: ");
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:77: Invalid type expression.
request.getParameter("testParam")
^
C:\java\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fExpressions_0002ejspExpressions_jsp_0.java:80: Invalid declaration.
out.write("\r\n\r\n\r\n\r\n");
^
7 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
These are my CLASSPATH settings:
CLASSPATH=.;c:\java\jdk1.3.1\lib\tools.jar;c:\java\jakarta-tomcat-3.2.3\lib\jasper.jar;c:\java\jakarta-tomcat-3.2.3\lib\servlet.jar;c:\java\jakarta-tomcat-3.2.3\webapps\ROOT\WEB-IN F\classes;
I'm pretty sure these are OK, which would make Tomcat the prime suspect, but I don't know what.
Richard
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error message states:

Class Java.util.Date not found.
out.print( new Java.util.Date() );

"Java" should be lowercase.
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic