954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Jsp intro error

i use eclipse with tomcat 7 and compile servlet without problem...

but i try to blank jsp file its error what is the problem?

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>Test JSP</h3>
</body>
</html>


Error

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: java.lang.IllegalStateException: No output folder
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:528)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:354)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

java.lang.IllegalStateException: No output folder
	org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:683)
	org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:199)
	org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:516)
	org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:457)
	org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:405)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:587)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.2 logs.

Apache Tomcat/7.0.2
Erdem.
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

Looks like bad permissions. Arent JSP's compiled on-the-fly to class files? (Basically your JSP->servletish code which is whats actually run) - therefore ensure the server has right permissions on the folder these are supposed to be output to. Check the Tomcat log.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

thanx i chanced workspace with tomcat local its fixed...

but now now see javax.servlet :(

Erdem.
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

i add external jar and its fixed too but what is main problem i chanced only workspace area

Erdem.
Newbie Poster
3 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You