Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems running JSP examples on new Tomcat installation

3 views
Skip to first unread message

Lisa Gerlich

unread,
Feb 19, 2003, 7:02:06 PM2/19/03
to
I am very new to Tomcat and Java.

I have just installed Tomcat 3.1.1a on a RedHat linux 7.3 intel box.
I downloaded jre1.3.1_07 from SUN and placed it in /usr/local/java. I
set JAVA_HOME=/usr/local/java/jre1.2.2 and modified the PATH so that
JAVA_HOME/bin is the first directory search.

I used bin/startup.sh to start the Tomcat server and it started with
no complaints as far as I could tell.

I can connect to port 8080 and run the Servlet examples just fine.
But, when I try any of the JSP examples, I get the following output in
the browser window: (The output is the same for any of the examples).

---begin browser window output--------
Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:479)
-----End browser window output-----

The following output is from the console:
java.lang.ClassNotFoundException: sun.tools.javac.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:555)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:146)
at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:889)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:479)
----End console output--------

It just seems like the problem must be some simple configuration that
I overlooked. The installation of Tomcat was simple but a little bit
confusing to get all the bits together.

Thank you,
---Lisa&
Lisa Gerlich
Senior Network/Systems Administrator
Northside Independent School District
Technology Support
San Antonio, TX
PH: 210-706-8577
FX: 210-706-8877
EM: lisag...@nisd.net

dynoweb

unread,
Feb 20, 2003, 1:15:48 PM2/20/03
to
You installed Java's JRE (Runtime Environment). You needed to install
the SDK (Development Kit). This is because *.jsp's have to be compiled
before they can be run. Tomcat will use javac to complile these files
and javac is not available with JRE.


li...@nisd.net (Lisa Gerlich) wrote in
news:69d42210.03021...@posting.google.com:

> ) at java.lang.ClassLoader.loadClass(ClassLoader.java:250)

0 new messages