caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool" />
随笔 - 303  文章 - 883  trackbacks - 0
2015年11月
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

欢迎光临! 
闲聊 qq:1074961813

caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool -凯发k8网页登录

  • struts hibernate spring等学习 基础不扎实 可以跳到j2se学习群 37486623 请先退出该群
  • j2se学习 若人满请加到12999758 学完的可以跳到j2ee学习群 37486483 请先退出该群
  • java & .net都是热门的web技术 当然可以一起学啦 欢迎前来探讨技术 解决问题
  • 该群在发展中,踢人是经常的事情
  • 学完的可以跳到j2ee学习群 37486483 请先退出该群
  • 学无止境 好好努力! 讨论 web 技术 、 java (j2se j2ee) 、c/s编程 、 数据库 。。。。
  • 将 linux 和 c、c 编程进行到底!
  • 《think in java》 我们的最爱
  • 历史、宗教、哲学、气功、传统技艺,欢迎加入,知无不言,言无不尽!
  • 07年文祠实习群
  • arm || intel ...platform windows || linux device driver development 有一定基础方可加入
  • n维空间
  • email : java3d@126.com 群 : 12999758
  • java、vc和嵌入开发
  • c/c /windows/mfc
  • 三驾马车
  • 仙人指路
  • 弄vc和汇编的家伙
  • 同学的blog
  • 北京的朋友,和我一起创建了不少群 呵呵!
  • vc
  • 一个和我差不多大的北京女孩
  • 累了的时候啦 可以寻下开心

搜索

  •  

最新评论

exception in thread "main" org.springframework.beans.factory.beancreationexception: error creating bean with name 'datasource' defined in file [d:\hs_test\webroot\web-inf\applicationcontext.xml]: instantiation of bean failed; nested exception is java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool
caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool

    at java.lang.class.getdeclaredconstructors0(native method)
    at java.lang.class.privategetdeclaredconstructors(unknown source)
    at java.lang.class.getconstructor0(unknown source)
    at java.lang.class.getdeclaredconstructor(unknown source)
    at org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:
54)
    at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiatebean(abstractautowirecapablebeanfactory.java:
759)
    at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:
724)
    at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:
387)
    at org.springframework.beans.factory.support.abstractbeanfactory$
1.getobject(abstractbeanfactory.java:251)
    at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:
156)
    at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:
248)
    at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:
160)
    at org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:
287)
    at org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:
352)
    at org.springframework.context.support.filesystemxmlapplicationcontext.
<init>(filesystemxmlapplicationcontext.java:93)
    at org.springframework.context.support.filesystemxmlapplicationcontext.
<init>(filesystemxmlapplicationcontext.java:77)
    at org.springframework.context.support.filesystemxmlapplicationcontext.
<init>(filesystemxmlapplicationcontext.java:67)


原因是工具myeclipse在建立sessionfactory的时候,少加一个包 commons-pool-1.3.jar 补上去问题解决。



 



地震让大伙知道:居安思危,才是生存之道。
posted on 2007-09-28 21:59 小寻 阅读(66051) 评论(23)     所属分类: 编程问题

feedback:
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool[未登录] 2007-10-21 11:42 
怎么补上去  回复  
  
 re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-09 11:14 幻想~@@~
该包下载地址

加到classpath里 或者 加到工程
  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-19 20:07 
谢谢了  回复  
  
# 这是什么错误? 2007-11-21 11:19 
exception in thread "main" java.lang.noclassdeffounderror: org/apache/commons/logging/logfactory
at org.springframework.util.classutils.(classutils.java:59)
at org.springframework.core.io.defaultresourceloader.(defaultresourceloader.java:53)
at org.springframework.context.support.abstractapplicationcontext.(abstractapplicationcontext.java:170)
at org.springframework.context.support.abstractapplicationcontext.(abstractapplicationcontext.java:163)
at org.springframework.context.support.abstractrefreshableapplicationcontext.(abstractrefreshableapplicationcontext.java:67)
at org.springframework.context.support.abstractxmlapplicationcontext.(abstractxmlapplicationcontext.java:49)
at org.springframework.context.support.filesystemxmlapplicationcontext.(filesystemxmlapplicationcontext.java:86)
at org.springframework.context.support.filesystemxmlapplicationcontext.(filesystemxmlapplicationcontext.java:74)
at org.springframework.context.support.filesystemxmlapplicationcontext.(filesystemxmlapplicationcontext.java:65)
at com.elite.jdbctemplate.testqueryforlist.main(testqueryforlist.java:12)
  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-21 15:07 
严重: action: null
org.springframework.beans.factory.beancreationexception: error creating bean with name 'datasource' defined in servletcontext resource [/web-inf/applicationcontext.xml]: instantiation of bean failed; nested exception is java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool
caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool
at java.lang.class.getdeclaredconstructors0(native method)
at java.lang.class.privategetdeclaredconstructors(unknown source)
at java.lang.class.getconstructor0(unknown source)  回复  
  
 re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-23 10:34 幻想~@@~
@

你的问题是spring没找到org/apache/commons/logging/logfactory类 所在的jar包

这个类在一个叫 commons-logging-1.**.jar的包中(该包在你布置hibernate时,工具会自动帮
你加入),如果没找到这个包,请到apache.org下载,再加到工程中。

如果你的工程中已经有了这个包,请检查你的tomcat和jre中是否有这个包,

有的话删除掉,以免因为重复而出现错误。
  回复  
  
 re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-23 10:52 幻想~@@~

@

 <bean id="datasource" class="org.apache.commons.dbcp.basicdatasource">
  
<property name="driverclassname" value="oracle.jdbc.driver.oracledriver">
  
property>
  
<property name="url" value="jdbc:oracle:thin:@localhost:1521:oracle">
  
property>
  
<property name="username" value="user">property>
  
<property name="password"value="password">property>
 
bean>

请看,上面是一个普通的spring配置文件中datasource bean的jdbc配置部分运行时的报错和你说在初始化这个bean的时候出现问题了。对照一下上面的配置,如果你的配置文件没写错的话,那就是在一下几个地方出了问题:
第一、工程中少了org/apache/commons/pool/impl/genericobjectpool 所在的包: 这个 类在commons-pool-1.x.jar包中 请去apache官方下载一个,放到工程中。
第二、如果加入之后还出现问题,请检查你的数据库驱动包是否配置正确

  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-23 12:53 
javax.servlet.servletexception: java.lang.noclassdeffounderror: org/bouncycastle/crypto/cipherparameters
caused by: java.lang.noclassdeffounderror: org/bouncycastle/crypto/cipherparameters

是什么原因啊?
谢谢

  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-11-24 10:31 幻想~@@~
@no.one

你出错的原因是,工程中缺少org.bouncycastle.crypto.cipherparameters类所在的jar包

我查了下 该包可以在这里下载到


请根据你jdk的版本下载相应的包
比如你的jdk是1.6 你可以下载
  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2007-12-06 18:09 
各位老大,为什么我加了commons-pool-1.3.jar 会出现这样的错误:
context initialization failed
org.springframework.beans.factory.beancreationexception: error creating bean with name 'sessionfactory' defined in servletcontext resource [/web-inf/classes/applicationcontext.xml]: invocation of init method failed; nested exception is java.lang.unsupportedclassversionerror: bad version number in .class file
caused by:
java.lang.unsupportedclassversionerror: bad version number in .class file
at java.lang.classloader.defineclass1(native method)
at java.lang.classloader.defineclass(unknown source)
at java.security.secureclassloader.defineclass(unknown source)  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool[未登录] 2007-12-07 16:03 
unsupportedclassversionerror
commons-pool-1.3.jar
版本和你的spring不兼容
去下个其他版本就解决了  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2008-03-20 20:55 
真的太感谢啦,呵呵,总算解决ssh的架构问题了,可以正常运行了。  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2008-07-17 17:06 
太感謝你了.......  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool[未登录] 2008-08-21 19:22 
严重: parse error at line 1 column 17: document is invalid: no grammar found.
org.xml.sax.saxparseexception: document is invalid: no grammar found.
at com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(errorhandlerwrapper.java:195)
at com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.error(errorhandlerwrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:384)
at com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.scanstartelement(xmlnsdocumentscannerimpl.java:250)
at com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl$nscontentdriver.scanrootelementhook(xmlnsdocumentscannerimpl.java:626)
at com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:3088)
at com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$prologdriver.next(xmldocumentscannerimpl.java:914)
at com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:647)
at com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(xmlnsdocumentscannerimpl.java:140)
at com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:107)
at com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:522)
at org.apache.commons.digester.digester.parse(digester.java:1591)
at org.apache.commons.validator.validatorresources.(validatorresources.java:159)
at org.apache.struts.validator.validatorplugin.initresources(validatorplugin.java:237)
at org.apache.struts.validator.validatorplugin.init(validatorplugin.java:162)
at org.apache.struts.action.actionservlet.initmoduleplugins(actionservlet.java:869)
at org.apache.struts.action.actionservlet.init(actionservlet.java:336)
at javax.servlet.genericservlet.init(genericservlet.java:212)
at org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1161)
at org.apache.catalina.core.standardwrapper.load(standardwrapper.java:981)
at org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:4058)
at org.apache.catalina.core.standardcontext.start(standardcontext.java:4364)
at org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:791)
at org.apache.catalina.core.containerbase.addchild(containerbase.java:771)
at org.apache.catalina.core.standardhost.addchild(standardhost.java:525)
at org.apache.catalina.startup.hostconfig.deploydirectory(hostconfig.java:924)
at org.apache.catalina.startup.hostconfig.deploydirectories(hostconfig.java:887)
at org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:492)
at org.apache.catalina.startup.hostconfig.start(hostconfig.java:1147)
at org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:311)
at org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:117)
at org.apache.catalina.core.containerbase.start(containerbase.java:1053)
at org.apache.catalina.core.standardhost.start(standardhost.java:719)
at org.apache.catalina.core.containerbase.start(containerbase.java:1045)
at org.apache.catalina.core.standardengine.start(standardengine.java:443)
at org.apache.catalina.core.standardservice.start(standardservice.java:516)
at org.apache.catalina.core.standardserver.start(standardserver.java:710)
at org.apache.catalina.startup.catalina.start(catalina.java:578)
at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)
at java.lang.reflect.method.invoke(method.java:597)
at org.apache.catalina.startup.bootstrap.start(bootstrap.java:288)
at org.apache.catalina.startup.bootstrap.main(bootstrap.java:413)  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool[未登录] 2008-08-28 15:49 
java.lang.noclassdeffounderror: org/bouncycastle/crypto/cipherparameters
我在j2me上运行模拟机wtk2.5 for cldc运行时出这样的错误,但我已经把这个包加进去了,在模拟器上运行就出现问题,如果在j2me上运行主不出现这样的报错
  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2008-09-16 16:31 
java.lang.noclassdeffounderror: org/archive/crawler/heritrix exception in thread "main"  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2009-10-08 01:42 
ёбнулись вы все иероглифами писать! пиздец!  回复  
  
# java.lang.noclassdeffounderror: org/apache/commons/io/ioutils[未登录] 2011-03-28 22:41 
java.lang.noclassdeffounderror: org/apache/commons/io/ioutils
at org.archive.crawler.settings.xmlsettingshandler.writesettingsobject(xmlsettingshandler.java:260)
at org.archive.crawler.settings.xmlsettingshandler.writesettingsobject(xmlsettingshandler.java:208)
at org.archive.crawler.settings.xmlsettingshandler.copysettings(xmlsettingshandler.java:360)
at org.archive.crawler.admin.crawljobhandler.createsettingshandler(crawljobhandler.java:889)
at org.archive.crawler.admin.crawljobhandler.createnewjob(crawljobhandler.java:781)
at org.archive.crawler.admin.crawljobhandler.newjob(crawljobhandler.java:730)
at org.apache.jsp.new_jsp._jspservice(new_jsp.java:185)
at org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:137)
at javax.servlet.http.httpservlet.service(httpservlet.java:853)
at org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:210)
at org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:295)
at org.apache.jasper.servlet.jspservlet.service(jspservlet.java:241)
at javax.servlet.http.httpservlet.service(httpservlet.java:853)
at org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:358)
at org.mortbay.jetty.servlet.webapplicationhandler$chain.dofilter(webapplicationhandler.java:342)
at org.archive.crawler.admin.ui.rootfilter.dofilter(rootfilter.java:67)
at org.mortbay.jetty.servlet.webapplicationhandler$chain.dofilter(webapplicationhandler.java:334)
at org.mortbay.jetty.servlet.webapplicationhandler.dispatch(webapplicationhandler.java:286)
at org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:567)
at org.mortbay.http.httpcontext.handle(httpcontext.java:1807)
at org.mortbay.jetty.servlet.webapplicationcontext.handle(webapplicationcontext.java:525)
at org.mortbay.http.httpcontext.handle(httpcontext.java:1757)
at org.mortbay.http.httpserver.service(httpserver.java:879)
at org.mortbay.http.httpconnection.service(httpconnection.java:789)
at org.mortbay.http.httpconnection.handlenext(httpconnection.java:960)
at org.mortbay.http.httpconnection.handle(httpconnection.java:806)
at org.mortbay.http.socketlistener.handleconnection(socketlistener.java:218)
at org.mortbay.util.threadedserver.handle(threadedserver.java:300)
at org.mortbay.util.threadpool$poolthread.run(threadpool.java:511)
caused by: java.lang.classnotfoundexception: org.apache.commons.io.ioutils
at java.net.urlclassloader$1.run(urlclassloader.java:200)
at java.security.accesscontroller.doprivileged(native method)
at java.net.urlclassloader.findclass(urlclassloader.java:188)
at java.lang.classloader.loadclass(classloader.java:307)
at sun.misc.launcher$appclassloader.loadclass(launcher.java:301)
at java.lang.classloader.loadclass(classloader.java:252)
at java.lang.classloader.loadclassinternal(classloader.java:320)
... 29 more  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool[未登录] 2011-03-29 19:35 
上面的错误请高人指点下吧,已经折磨我好久了。  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2012-10-24 16:29 
非常感谢,解决了  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2013-11-05 11:25 
你的问题是spring没找到org/apache/commons/logging/logfactory类 所在的jar包

这个类在一个叫 commons-logging-1.**.jar的包中(该包在你布置hibernate时,工具会自动帮
你加入),如果没找到这个包,请到apache.org下载,再加到工程中。

如果你的工程中已经有了这个包,请检查你的tomcat和jre中是否有这个包,

有的话删除掉,以免因为重复而出现错误。
  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2013-11-05 11:25 
上面的错误请高人指点下吧,已经折磨我好久了。  回复  
  
# re: caused by: java.lang.noclassdeffounderror: org/apache/commons/pool/impl/genericobjectpool 2015-11-16 14:46 
microsoft windows [版本 6.1.7601]
凯发k8网页登录的版权所有 (c) 2009 microsoft corporation。保留所有权利。

c:\users\lenovo>c:\apache-jmeter-2.13\bin\jmeter
java.lang.noclassdeffounderror: org/apache/avalon/framework/configuration/config
urationexception
at org.apache.jmeter.jmeter.(jmeter.java:102)
at sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)

at sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source)

at sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown sou
rce)
at java.lang.reflect.constructor.newinstance(unknown source)
at java.lang.class.newinstance(unknown source)
at org.apache.jmeter.newdriver.main(newdriver.java:262)
caused by: java.lang.classnotfoundexception: org.apache.avalon.framework.configu
ration.configurationexception
at java.net.urlclassloader.findclass(unknown source)
at java.lang.classloader.loadclass(unknown source)
at java.lang.classloader.loadclass(unknown source)
... 7 more
jmeter home directory was detected as: c:\apache-jmeter-2.13
c:\users\lenovo>  回复  
  

只有注册用户后才能发表评论。


网站导航:
              
相关文章:
 
网站地图