We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,188 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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
2
Contributors
3
Replies
13 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

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

but now now see javax.servlet :(

Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

Erdem.
Newbie Poster
4 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0636 seconds using 2.7MB