A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Error when accessing JSP pages
Manoj Zachariah
Ranch Hand
Joined: Dec 08, 2003
Posts: 65
posted
Dec 28, 2005 00:54:00
0
im using Sun Application-Server-PE-8.0 to deploy some
JSP
pages. when accessing the JSP page i get this error from the server.
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 No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:87) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:311) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:421) org.apache.jasper.compiler.Compiler.compile(Compiler.java:402) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210) javax.servlet.http.HttpServlet.service(HttpServlet.java:861) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs. -------------------------------------------------------------------------------- Sun-Java-System/Application-Server-PE-8.0
i tried copying the tools.jar to the lib of the server directory and restarted the server. still i get the same error. please help.
thanks
Shrinivas Mujumdar
Ranch Hand
Joined: Aug 27, 2004
Posts: 328
posted
Dec 28, 2005 23:53:00
0
Hello Manoj,
Check your PATH & CLASSPATH Settings, see by chance Oracle JRE may be in path/classpath....check in Control Panel of your System
Shrinivas
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56543
14
I like...
posted
Dec 29, 2005 00:43:00
0
Please do not ask the same question in more than one forum.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Error when accessing JSP pages
Similar Threads
error in jsp pages
Help me please, this is for my graduation.
Please help me this is for my graduation.
Setting text box value using string variable in jsp
Unable to compile class for JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter