1,105,644 Community Members

Jsp intro error

Member Avatar
Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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
Member Avatar
jbennet
Moderator
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague
Featured
 
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.

Member Avatar
Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

but now now see javax.servlet :(

Member Avatar
Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article