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

tomcat jsp examples

1 view
Skip to first unread message

Gary Baker

unread,
Jun 13, 2001, 11:46:46 AM6/13/01
to
Hi,

I've just installed the tomcat binaries on solaris and the servlet
examples work but the jsp examples don't. I've seen many questions
about this but no answers.

Thanks, Gary


ERROR IN BROWSER IS :

Error: 500

Location: /examples/jsp/num/numguess.jsp

Internal Servlet Error:

java.lang.NoSuchMethodError
at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289)
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.handleError(ContextManager.java:1160)
at org.apache.tomcat.core.Handler.service(Handler.java:312)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
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)

TERMINAL WINDOW OUTPUT ON TOMCAT STARTUP :

[/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % ./bin/startup.sh
Using classpath: /export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/ant.jar:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/jasper.jar:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/jaxp.jar:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/parser.jar:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/servlet.jar:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/test:/export/home/gmb/tomcat/jakarta-tomcat-3.2.2/lib/webserver.jar:/usr/j2se/lib/tools.jar
[/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-13 11:48:31 -
ContextManager: Adding context Ctx( /examples )
2001-06-13 11:48:31 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-06-13 11:48:31 - ContextManager: Adding context Ctx( )
2001-06-13 11:48:31 - ContextManager: Adding context Ctx( /test )
2001-06-13 11:48:32 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-06-13 11:48:32 - PoolTcpConnector: Starting
Ajp12ConnectionHandler on 8007


TERMINAL WINDOW OUTPUT WHEN JSP PAGE IS ACCESSED :

[/export/home/gmb/tomcat/jakarta-tomcat-3.2.2] % 2001-06-13 11:49:36 -
Ctx( /examples ): JasperException: R( /examples +
/jsp/num/numguess.jsp + null) Cannot read file: /jsp/num/numguess.jsp
2001-06-13 11:49:36 - Ctx( /examples ): Exception in: R( /examples +
/jsp/num/numguess.jsp + null) - java.lang.NoSuchMethodError
at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289)
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.handleError(ContextManager.java:1160)
at org.apache.tomcat.core.Handler.service(Handler.java:312)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
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)

Nils O. Selåsdal

unread,
Jun 14, 2001, 3:11:36 AM6/14/01
to

"Gary Baker" <bak...@volpe.dot.gov> wrote in message
news:3580d191.01061...@posting.google.com...

> Hi,
>
> I've just installed the tomcat binaries on solaris and the servlet
> examples work but the jsp examples don't. I've seen many questions
> about this but no answers.
>
> Thanks, Gary
>
>
> ERROR IN BROWSER IS :
>
> Error: 500
>
> Location: /examples/jsp/num/numguess.jsp
Have you checked if the file actually exist? also see if the user you
run tomcat under have permission to
read it. And check that there are no funny TOMCAT_HOME , JAVA_HOME
enviroment variables set.

Gary Baker

unread,
Jun 14, 2001, 9:24:35 AM6/14/01
to
"Nils O. Sel?dal" <nose...@frisurf.no> wrote in message news:<9sZV6.738$_96.4...@news3.oke.nextra.no>...

> > Location: /examples/jsp/num/numguess.jsp
> Have you checked if the file actually exist? also see if the user you
> run tomcat under have permission to
> read it. And check that there are no funny TOMCAT_HOME , JAVA_HOME
> enviroment variables set.

All of that is ok, and the servlets work so something must be correct.
I have seen numerous posts about this, but no solutions, I did not
have this problem on my linux machine at home, but what I really need
is to get it working on my Sun box at work. Any suggestions much
appreciated.

-Gary

Frank Whitlock

unread,
Jun 14, 2001, 5:10:29 PM6/14/01
to
bak...@volpe.dot.gov (Gary Baker) wrote in message news:<3580d191.0106...@posting.google.com>...

I am having a similar problem on NT 4.0. Because the url for this
example is http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp
I am thinking there might be a need to set up a /jsp virtual directory
in server.xml. I am new to tomcat so I am not sure. My attempts at
setting up the /jsp directory have not helped. Also I checked all the
enviornment variables as others have suggested. Let me know if you
figure this out.

Moin Anjum H

unread,
Jul 4, 2001, 5:19:13 AM7/4/01
to
Hi,

To work with JSP you need set the Environment variable
JAVA_HOME=\usr\local\jdk the Correct path of JDK installed.

HTH
Best Regards
Moin.

bak...@volpe.dot.gov (Gary Baker) wrote in message news:<3580d191.01061...@posting.google.com>...

0 new messages