JSP 게시판 파일 업로드 관련해서 하고 있는데
이 에러가 나는데 무슨 이유인지좀 가르쳐 주세요
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: Exception in JSP: /write_input.jsp:16
13:
14:
15: MultipartRequest multi = null;
16: multi = new MultipartRequest( request,realFolder,sizeLimit,encType,new DefaultFileRenamePolicy());
17:
18: String userName = multi.getParameter("userName");
19: String fileName = multi.getFilesystemName("userFile");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: Unresolved compilation problems:
Enumeration cannot be resolved
Syntax error on token "enum", delete this token
Syntax error on token "enum", invalid Expression
Syntax error on token "enum", delete this token
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.write_005finput_jsp._jspService(write_005finput_jsp.java:120)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.Error: Unresolved compilation problems:
Enumeration cannot be resolved
Syntax error on token "enum", delete this token
Syntax error on token "enum", invalid Expression
Syntax error on token "enum", delete this token
com.oreilly.servlet.multipart.MultipartParser.readNextPart(MultipartParser.java:295)
com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:246)
org.apache.jsp.write_005finput_jsp._jspService(write_005finput_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
첫댓글 아마도 던지는 폼에서 enctype="multipart/form-data" 이걸 빼먹으신건 아니신지요?