문제점해결

org/apache/commons/dbcp/BasicDataSource

예쁜꽃이피었으면 2014. 12. 19. 10:35

HTTP Status 500 - java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource


type Exception report

message java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource
	plantid.common.controller.ControllerAction.requestPro(ControllerAction.java:105)
	plantid.common.controller.ControllerAction.doGet(ControllerAction.java:65)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

root cause

java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource
	com.ibatis.common.jdbc.DbcpConfiguration.legacyDbcpConfiguration(DbcpConfiguration.java:97)
	com.ibatis.common.jdbc.DbcpConfiguration.<init>(DbcpConfiguration.java:45)
	com.ibatis.sqlmap.engine.datasource.DbcpDataSourceFactory.initialize(DbcpDataSourceFactory.java:32)
	com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:220)
	com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
	com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
	com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:46)
	com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
	plantid.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:19)
	plantid.common.dao.CommonDao.SetDB(CommonDao.java:8)
	plantid.plant.dao.plantDao.getInstance(plantDao.java:22)
	plantid.plant.action.ListAction.requestPro(ListAction.java:43)
	plantid.common.controller.ControllerAction.requestPro(ControllerAction.java:100)
	plantid.common.controller.ControllerAction.doGet(ControllerAction.java:65)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

root cause

java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
	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.jdbc.DbcpConfiguration.legacyDbcpConfiguration(DbcpConfiguration.java:97)
	com.ibatis.common.jdbc.DbcpConfiguration.<init>(DbcpConfiguration.java:45)
	com.ibatis.sqlmap.engine.datasource.DbcpDataSourceFactory.initialize(DbcpDataSourceFactory.java:32)
	com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:220)
	com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
	com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
	com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
	com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:46)
	com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
	plantid.common.db.sqlconfig.IBatisDBConnector.<clinit>(IBatisDBConnector.java:19)
	plantid.common.dao.CommonDao.SetDB(CommonDao.java:8)
	plantid.plant.dao.plantDao.getInstance(plantDao.java:22)
	plantid.plant.action.ListAction.requestPro(ListAction.java:43)
	plantid.common.controller.ControllerAction.requestPro(ControllerAction.java:100)
	plantid.common.controller.ControllerAction.doGet(ControllerAction.java:65)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
	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.


Apache Tomcat/7.0.57

반응형