Re: Fresh install of Tomcat - getting frustrated with the JSP no working

2007-10-03 Thread niblz

Here is the JSP - just a very simple one 
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN 
!-- 
Simple JSP file to test server setup and configuration. 

Taken from Core Servlets and JavaServer Pages 2nd Edition 
from Prentice Hall and Sun Microsystems Press, 
http://www.coreservlets.com/. 
(C) 2003 Marty Hall; may be freely used or adapted. 
-- 
HTML 
HEADTITLEJSP Test/TITLE/HEAD 
BODY BGCOLOR=#FDF5E6 
H1JSP Test/H1 
Time: %= new java.util.Date() % 
/BODY/HTML 

and this is the log file: 
03/10/2007 12:24:47 org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet jsp threw exception 
org.apache.jasper.JasperException: Unable to compile class for JSP: 



Stacktrace: 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
 
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) 
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415) 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) 
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) 
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) 
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
 
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) 
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) 
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
 
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
at java.lang.Thread.run(Thread.java:619) 


What can I do please ?

-- 
View this message in context: 
http://www.nabble.com/Fresh-install-of-Tomcat---getting-frustrated-with-the-JSP-no-working-tf4560454.html#a13016034
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Fresh install of Tomcat - getting frustrated with the JSP no working

2007-10-03 Thread Larry Isaacs
If I recall correctly, in JSP spec 1.1, the argument for
handlePageException() was Exception.  In JSP spec 1.2 and later, the
argument is Throwable.  It would appear you have a servlet.jar from
Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running
against, causing the method signature mismatch.  Make sure you don't
have a copy of servlet.jar in the WEB-INF/lib of your webapp or
somewhere else involved with the running server, such as in the
lib/ext directory of your JDK or JRE.

In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet
API classes are found in servlet-api.jar, with both located in the lib
directory of the Tomcat 6 installation.  Any servlet.jar you find
involved with this server would contain out of date classes for this
server.

Cheers,
Larry

 -Original Message-
 From: niblz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 03, 2007 4:29 AM
 To: users@tomcat.apache.org
 Subject: Fresh install of Tomcat - getting frustrated with the JSP no
 working
 
 
 Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the
 newest
 versions from their sites)
 I have tried many things, but still while html and servlet work, JSP
 just
 won't work!
 I even tried using this Tomcat version and help -
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 But still nothing
 This are the errors I get
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
An
 error occurred at line: 22 in the generated java fileThe method
 getJspApplicationContext(ServletContext) is undefined for the type
 JspFactory An error occurred at line: 82 in the generated java fileThe
 method handlePageException(Exception) in the type PageContext is not
 applicable for the arguments (Throwable) Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:92)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 23)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:317)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.14
 logs
 
 and this one
 HTTP Status 500 -

---
 -
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
 Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:85)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 15)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:308)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.10
 logs.
 
 
 What can I do please?
 
 Thank you!
 
 --
 View this message in context: http://www.nabble.com/Fresh-install-of-
 Tomcat---getting-frustrated-with-the-JSP-no-working-
 tf4560454.html#a13014781
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Fresh install of Tomcat - getting frustrated with the JSP no working

2007-10-03 Thread niblz

Man you are a genius!!!
Problem solved!
It seem I had a thing in my path, where an older version of some api's like
Servlet.api was casuing some mismatch!
Now Every thing work very nice!
Thank you guys :)


Larry Isaacs wrote:
 
 If I recall correctly, in JSP spec 1.1, the argument for
 handlePageException() was Exception.  In JSP spec 1.2 and later, the
 argument is Throwable.  It would appear you have a servlet.jar from
 Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running
 against, causing the method signature mismatch.  Make sure you don't
 have a copy of servlet.jar in the WEB-INF/lib of your webapp or
 somewhere else involved with the running server, such as in the
 lib/ext directory of your JDK or JRE.
 
 In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet
 API classes are found in servlet-api.jar, with both located in the lib
 directory of the Tomcat 6 installation.  Any servlet.jar you find
 involved with this server would contain out of date classes for this
 server.
 
 Cheers,
 Larry
 
 -Original Message-
 From: niblz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 03, 2007 4:29 AM
 To: users@tomcat.apache.org
 Subject: Fresh install of Tomcat - getting frustrated with the JSP no
 working
 
 
 Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the
 newest
 versions from their sites)
 I have tried many things, but still while html and servlet work, JSP
 just
 won't work!
 I even tried using this Tomcat version and help -
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 But still nothing
 This are the errors I get
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
 An
 error occurred at line: 22 in the generated java fileThe method
 getJspApplicationContext(ServletContext) is undefined for the type
 JspFactory An error occurred at line: 82 in the generated java fileThe
 method handlePageException(Exception) in the type PageContext is not
 applicable for the arguments (Throwable) Stacktrace:

 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:92)

 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 23)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:317)

 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.14
 logs
 
 and this one
 HTTP Status 500 -

 ---
 -
 type Exception report message  description The server encountered an
 internal error () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP:
 Stacktrace:

 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
 andler.java:85)

 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
 ava:330)

 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4
 15)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
 ava:566)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:308)

 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320
 )
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The
 full
 stack trace of the root cause is available in the Apache Tomcat/6.0.10
 logs.
 
 
 What can I do please?
 
 Thank you!
 
 --
 View this message in context: http://www.nabble.com/Fresh-install-of-
 Tomcat---getting-frustrated-with-the-JSP-no-working-
 tf4560454.html#a13014781
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: 

Re: Fresh install of Tomcat - getting frustrated with the JSP no working

2007-10-03 Thread niblz

O I have got mine from the offical Tomcat site, and other version from here
http://www.coreservlets.com/Apache-Tomcat-Tutorial/
Aa for copying things to my web-inf, well no
The only thing I have done is putting the JSP in the ROOT dir in the web-app
and trying to get into it
Also
I have download this OFFICIAL example
http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/
And nothing (and I am sure this VERY simple example should work with out any
problems)
What shell I do now please?



Pid-2 wrote:
 
 Right.
 
 Where did you get Tomcat 6 from, and what OS are you running?
 
 Have you moved or copied any of the libraries from Tomcat/lib to your
 WEB-INF/lib?
 
 p
 
 
 niblz wrote:
 Here is the JSP - just a very simple one
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 !-- 
 Simple JSP file to test server setup and configuration. 

 Taken from Core Servlets and JavaServer Pages 2nd Edition
 from Prentice Hall and Sun Microsystems Press,
 http://www.coreservlets.com/.
 (C) 2003 Marty Hall; may be freely used or adapted.
 --
 HTML
 HEADTITLEJSP Test/TITLE/HEAD
 BODY BGCOLOR=#FDF5E6
 H1JSP Test/H1
 Time: %= new java.util.Date() %
 /BODY/HTML
 
 and this is the log file:
 03/10/2007 12:24:47 org.apache.catalina.core.StandardWrapperValve invoke
 SEVERE: Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException: Unable to compile class for JSP: 
 
 
 
 Stacktrace:
  at
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
  at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
  at
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
  at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
  at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
  at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
  at java.lang.Thread.run(Thread.java:619)
 
 
 What can I do please ?
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Fresh-install-of-Tomcat---getting-frustrated-with-the-JSP-no-working-tf4560454.html#a13019654
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]