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

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.

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

but now now see javax.servlet :(

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.