안녕하세요
회원 가입 페이지에서 "가입" 버튼을 누르면 밑과 같은 에러가 납니다
왜 이런 에러가 나는지 모르겠군요 ㅠ.ㅠ
어떻게 고치는지도...
개인 컴퓨터에서는 가입이 잘 되는데, 웹 호스팅쪽에 업로딩을 한 다음 실행을 하니 안 되네요
혹시 똑같은 문제를 겪는 분이 계신지요?
============================================================================
Error: 500
Location: /jsp/member/register.jsp
Internal Servlet Error:
javax.servlet.ServletException: access denied (java.io.FilePermission /home/.sites/33/site5/web/WEB-INF/classes read)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at jsp.member._0002fjsp_0002fmember_0002fregister_0002ejspregister_jsp_2._jspService(_0002fjsp_0002fmember_0002fregister_0002ejspregister_jsp_2.java:201)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause: java.security.AccessControlException: access denied (java.io.FilePermission /home/.sites/33/site5/web/WEB-INF/classes read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:564)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:481)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:136)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at jsp.member._0002fjsp_0002fmember_0002fregister_0002ejspregister_jsp_2._jspService(_0002fjsp_0002fmember_0002fregister_0002ejspregister_jsp_2.java:173)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
첫댓글 로직에러라기 보다는 OS권한 설정이 잘못되었나본데요. 에러메세지 맨위에 보면 classes 디렉토리에 read권한이 없다는것 같습니다. jsp에서 쓰이는 로직에서 자바class를 이용하는 것 같은데 디렉토리에 권한이 없어서 class파일을 읽지못하나봅니다. 호스팅업체에 문의해보세요.
지금 문득 들은 생각인데... OS계정중에서 classes 디렉토리의 권한과 웹서버를 start시킨 권한이 일치하지 않는가 봅니다. 해결은 역시 호스팅업체에 문의하시는 것이 좋겠군요.
감사합니다 문의 해 볼께요 ^^