• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp pages not executing

 
ankittt agarwala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you show your JSP code?
 
ankittt agarwala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya there was security problem in tomcat installed directory now i moved tomcat to another directory
thanks for your suggestions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic