더보기 접기
HTTP Status 500 - java.lang.ExceptionInInitializerError
type Exception report
message java.lang.ExceptionInInitializerError
description The server encountered an internal error that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.ExceptionInInitializerError
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:102)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.ExceptionInInitializerError
com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.RuntimeException: Error creating logger for class class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. Cause: java.lang.reflect.InvocationTargetException
com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:33)
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:39)
com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:39)
com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
com.ibatis.common.logging.log4j.Log4jImpl.<init>(Log4jImpl.java:10)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:39)
com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause
java.lang.ClassNotFoundException: org.apache.log4j.Logger
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
com.ibatis.common.logging.log4j.Log4jImpl.<init>(Log4jImpl.java:10)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:39)
com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
note The full stack trace of the root cause is available in the
Apache Tomcat/7.0.57 logs.
접기
심각: Servlet.service() for servlet [ControllerAction] in context with path [/sbadmin] threw exception [java.lang.ExceptionInInitializerError] with root cause
java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.ibatis.common.logging.log4j.Log4jImpl.<init>(Log4jImpl.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:39)
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.<init>(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.<init>(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:18)
at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
at sbadmin.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:17)
at sbadmin.common.dao.CommonDao.SetDB(CommonDao.java:10)
at sbadmin.login.dao.LoginDao.getInstance(LoginDao.java:13)
at sbadmin.login.action.LoginAction.requestPro(LoginAction.java:36)
at sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
at sbadmin.common.controller.ControllerAction.doPost(ControllerAction.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
http://pantarei.tistory.com/530 이곳을 보고 버전의 문제인가 싶어서
log4j-1.2.13.jar download했는데 안된다.
log4j-1.2.13.jar
apache-logging-log4j.jar를 톰캣 lib에 넣고 빌드패스 잡아줬더니 새로운 에러가 떴다.
apache-logging-log4j.jar
더보기 접기
HTTP Status 500 - java.lang.NoClassDefFoundError:
javax/mail/Authenticator
type Exception report
message java.lang.NoClassDefFoundError:
javax/mail/Authenticator
description The server encountered an internal error that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/mail/Authenticator
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:102)
sbadmin.common.controller.ControllerAction.doGet(ControllerAction.java:62)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.NoClassDefFoundError: javax/mail/Authenticator
sbadmin.member.action.MemberListAction.requestPro(MemberListAction.java:28)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doGet(ControllerAction.java:62)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.ClassNotFoundException: javax.mail.Authenticator
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
sbadmin.member.action.MemberListAction.requestPro(MemberListAction.java:28)
sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
sbadmin.common.controller.ControllerAction.doGet(ControllerAction.java:62)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the
Apache Tomcat/7.0.57 logs.
접기 java.lang.ClassNotFoundException: javax.mail.Authenticator
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at sbadmin.member.action.MemberListAction.requestPro(MemberListAction.java:28)
at sbadmin.common.controller.ControllerAction.requestPro(ControllerAction.java:97)
at sbadmin.common.controller.ControllerAction.doGet(ControllerAction.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
activation.jar
mail.jar
이 두 파일을 톰캣 lib에 넣은 후 빌드패스를 잡아줬더니 제대로 실행된다.