File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes jsp pages not executing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp pages not executing" Watch "jsp pages not executing" New topic
Author

jsp pages not executing

ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
hi when jsp pages of tomcat are tried to open following error is shown
so suggest what should be the corrective measure
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:536)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:362)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.IllegalStateException: No output folder
org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:678)
org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:197)
org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:514)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:445)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:392)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 787

Would you show your JSP code?


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
Jsp examples included in the tomcat 6.0.30 i am takling about .. Servelets examples are executing fine.......Whats the use of giving code......Tomcat jsp examples code are same everywhere.......These examples are shown when tomcat is started and browser pointed to http://localhost:8080/ and tomcat welcome page opens up
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
ankittt agarwala wrote:Jsp examples included in the tomcat 6.0.30 i am takling about .. Servelets examples are executing fine.......Whats the use of giving code......Tomcat jsp examples code are same everywhere.......


Look at Tell the details

The more information you provide, the easier it is for people to answer your questions. Consider these examples:

* [not helpful] My program throws an error.
* [better] My program throws a NullPointerException on line 13. Below is the code and the stack trace.


Do you want to tell that you are getting this error for any JSP page? It sound like you have the permission issue. For example, you have installed Tomcat as one user and running as another. Do you work on Windows or Linux?
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
i work on windows i m talkin about examples included in tomcat and there are no issues of users on my windows
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Have you changed any directory structure inside the Tomcat installation? (Though it should create the work dir etc.. even they are deleted)

[Edit: Removed the link as I couldn't validate the content]


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
Tomcat should be able to create the folders it uses for compiling JSP. My Tomcat 6 directory for those files goes:

(tomcat)-> work -> Catalina-> localhost -> _ -> org -> apache -> jsp (.class and .java files)

yes that is a directory named "_"

Also under the _ directory there are directories for examples, host manager, etc.

Does your tomcat have a "work" directory? Could there be some sort of security thing preventing the creation of these directories?

Bill
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
ya there was security problem in tomcat installed directory now i moved tomcat to another directory
thanks for your suggestions
 
Don't get me started about those stupid light bulbs.
 
subject: jsp pages not executing
 
Similar Threads
Unable to load tag handler class "com.opensymphony.webwork.views.jsp.PropertyTag
Cannot connect https using tomcat (keytool) gives an error 500
error compiling view with spring mvc project
Suddenly stopped working
Compile .java file on JSP