|
 |
pro_jsp thread: can't hello world !
Message #1 by "Probroy" <probroy1@h...> on Sat, 27 Jan 2001 08:55:45 +0530
|
|
Did you start apache server, and run startup, before executing "Hello
World"?
Are all of your files in the correct directory as the appendix shows? It
appears that some file is not being found.
-----Original Message-----
From: Probroy [mailto:probroy1@h...]
Sent: Friday, January 26, 2001 10:26 PM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] can't hello world !
hello friends,
I'm new in JSP &recently bought the book 'Professinal JSP'.
I have also managed to download & install Apache server,Jserv
etc &also 'Tomcat' from Jakarta. My problem starts here.
When I am trying to run the first program from the book (i.e.
hello world ) the JSP page giving an error message as follows:-
"ERROR : 500"etc...
after printing "Hello World" for expected number of times !
That is, the program is running ok but some error occurs
somewhere arround the last step!
If any one can help I would be grateful.
I'm copying the actual error page here.
Rgards.
Probal.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------
Hello, world!
Hello, world!
Hello, world!
Hello, world!
SimpleJSP example © 2000 Wrox Press Ltd.
Error: 500
Location: /projsp/ch01/SimpleJSP.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoSuchMethodError
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209)
at
ch_00030_00031._0002fch_00030_00031_0002fSimpleJSP_0002ejspSimpleJSP_jsp_0._
jspService(_0002fch_00030_00031_0002fSimpleJSP_0002ejspSimpleJSP_jsp_0.java:
87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
|
|
 |