I have a simple Jsp page and Iam using sunone server . after I deploy my dynamic web application in sun one and try to access that simple jsp i am getting the
following Error. My jsp has just body sayiing this is my first Jsp...
org.apache.jasper.JasperException: Unable to compile class for JSP
Do I need to set any path for this??? And the Server is not in my local machine.
Any one please help me to solve this.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35242
7
posted
0
My guess would be that either not all required jar files are in the WEB-INF/lib directory, or that the JSP is missing an import statement. The complete error message (and stack trace) should mention what's going wrong.
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35242
7
posted
0
Do other JSP pages work?
hari vemulapalli
Greenhorn
Joined: Mar 17, 2008
Posts: 18
posted
0
None of the jsps are working. But if I change the file extention from jsp to html and deploy that it s working fine. None of the jsps in my web application are working. i am using Eclipse editor. This is because of missing jar files I suppose as I am trying to access simple jsp that has <html> and <body> tags. previously it was working . suddenly it started giving this error.all the jar files are under project/Buildpath /configure buildpath/Libraries in Eclipse. should we have any jars under web-inf/lib directory.... without having the jars under lib i could access my application previously. please suggest me
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35242
7
posted
0
If no JSPs work then it's unlikely to be a matter of missing classes or jar files. The message sounds as if the servlet container is not set up correctly with a compiler (which it needs for running JSPs).
Is this a standalone Tomcat, or is it somehow integrated with Eclipse?
hari vemulapalli
Greenhorn
Joined: Mar 17, 2008
Posts: 18
posted
0
I am using Sun One Server and thats not running on my local machine.
Amol Nayak
Ranch Hand
Joined: Oct 26, 2006
Posts: 218
posted
0
Can it be an OS permissions issue as it is not able to invoke javac?