문제점해결

HTTP Status 500 - java.lang.NoClassDefFoundError: com/ibatis/common/resources/Resource

예쁜꽃이피었으면 2014. 12. 30. 11:11




심각: Servlet.service() for servlet [ControllerAction] in context with path [/plantid] threw exception [java.lang.NoClassDefFoundError: com/ibatis/common/resources/Resources] with root cause

java.lang.ClassNotFoundException: com.ibatis.common.resources.Resources

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)

at plantid.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:15)

at plantid.common.dao.CommonDao.SetDB(CommonDao.java:8)

at plantid.plant.dao.plantDao.getInstance(plantDao.java:22)

at plantid.plant.action.ListAction.requestPro(ListAction.java:43)

at plantid.common.controller.ControllerAction.requestPro(ControllerAction.java:100)

at plantid.common.controller.ControllerAction.doGet(ControllerAction.java:65)

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:314)

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://www.okjsp.net/seq/124998#1419898941435


String resource = "conf/sqlMapConfig.xml" 

-> sqlMapConfig.xml의 자세한 경로를 써주고 , 파일형식까지 써줘라



-> 이미 잘 되어 있음. 안 됨.



ibatis-common-2.jar

이 jar파일을 추가해라 . 

-> 이미 했음 안됨.




됐음 . 어떻게 해결했는지는 모르겠음


< 프로젝트에 사용자추가 jar 목록 >

ibatis-2.3.4.726

java-mail-1.4.4

jstl-1.2

tools



< 톰캣 lib에 추가한 jar 목록 >

commons-codec-1.8

commons-dbcp-1.2.2

commons-httpclient-3.1

commons-pool-1.3

cos

ezmorph-1.0.6

ibatis-2.3.4.726

ibatis-common-2

ibatis-dao-2

ibatis-sqlmap-2

javax.xml.parsers-1_1

json_simple-1.1

json-lib-2.4-jdk15

jstl

log4sql

metadata-extractor-2.3.1

mysql-connector-java-5.1.26-bin

ojdbc6

standard

 


반응형