java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: met [问题点数:100分,结帖人longren629]

Bbs1
本版专家分:0
结帖率 94.44%
Bbs1
本版专家分:0
Bbs2
本版专家分:357
Bbs4
本版专家分:1619
Bbs2
本版专家分:357
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:1
Bbs1
本版专家分:12
Bbs2
本版专家分:255
Bbs7
本版专家分:13343
Bbs1
本版专家分:2
Bbs1
本版专家分:1
Bbs1
本版专家分:5
Bbs1
本版专家分:1
java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool.setMinIdle(I)V
把commons-pool.jar换成commons-pool-1.2.jar    就好了。 Java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool.setMinIdle(I)V  at org.apache.commons.dbcp.BasicDataSource.createConnect
java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method ()V not fo
java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: <em>met</em>hod ()V not found at.... 在学习spring 的声明式事务管理时遇到这个问题: 已经导入了commons-pool.jar包,但是出现 java.lang.NoSuchMethodError: org.ap
redis从2.1升级到2.5.1报错:java.lang.NoSuchMethodError
项目中使用了jedis-2.1.0.jar,现在升级为jedis-2.5.1,在初始化资源池时,总是报如下错误。 private JedisPool pool = new JedisPool(conf
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool异常的解决办法
spring+hibernate框架的集成, 一启动Tomcat服务器就出了一大堆异常 报的错误是java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool 在网上查找错误的原因,说是缺少了一个commons-pool.jar文件 在myeclipse的安装目录下搜索,得到这个文件.放进lib
springboot lettuce 超时
-
spring4集成redis报错java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool$Con
多引用几个JAR包 jedis-2.1.0.jar spring-data-redis-1.0.2.RELEASE.jar 只引入这两个的话,估计也会报上面的那个错,所以下面的两个也要引入 commons-pool-1.5.5.jar commons-pool2-2.2.jar 点击打开链接
org.apache.commons.pool.impl.GenericObjectPool
这是关于java中连接池必备的包。。希望对你有所帮助。
java.lang.NoSuchMethodError!!!
我写了一个javabean,用JSP调用,但老出java.lang.NoSuchMethodErrorrn错误,我检查了调用时的方法名是一致地。CLASS也更新了。rnrnrnrnrnrnrnrnrnrnrnpublic class Employeernpublic void Query() rn rn tryrn DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn Connection conn =rn DriverManager.getConnection ("jdbc:oracle:thin:@192.16.0.115:1521:fu",rn "code", "coding");rn Statement stmt = conn.createStatement ();rn ResultSet rset = stmt.executeQuery ("select * from address");rn while (rset.next())rn System.out.println("address is " + rset.getInt(1));rn rn catch(SQLException ex)rn rn System.err.println("Employee.executeQuery:"+ex.getMessage());rn rn rnrnrn
java.lang.NoSuchMethodError:
[code=Java]件号id:nullrn判断是否给予外键件号:com.whhd.entity.ArticleId@5e9a94rnHibernate: insert into hdData.dbo.articleId (articleId_Name, articleId_ATA) values (?, ?)rn==========-==========rn2009-8-13 11:35:41 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet action threw exceptionrnjava.lang.NoSuchMethodError: com.whhd.biz.ArticleIdBiz.findbyintName(Ljava/lang/String;)Ljava/lang/Integer;rn at com.whhd.struts.action.MainAction.main_doAdd(MainAction.java:140)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn[/code]rnactionrn[code=XML]public ActionForward main_doAdd(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response) rn System.out.println("+++++++++++++++++++我进了doAdd了");rn // TODO Auto-generated <em>met</em>hod stub rn HdmainForm hdmainForm = (HdmainForm)form;rn Hdmain hd = new Hdmain();rn ArticleId aid = new ArticleId();rn Corporation cor = new Corporation();rn Hddate hdd = new Hddate();rn rn List list = hdmainBiz.findAll();rnrn rn System.out.println("====================");rn hd.setMainCycle(request.getPara<em>met</em>er("hdmainCycle"));//周期rn System.out.println("main_doAdd cycle:"+"+"+hd.getMainCycle());rn rn hd.setMainWarrantyTime(request.getPara<em>met</em>er("hdmainWarrantyTime"));//保修期rn System.out.println("warrantyTime:"+hd.getMainWarrantyTime());rn rn hd.setMainManhourTest(request.getPara<em>met</em>er("manhourTest"));rn hd.setMainManhourRepair(request.getPara<em>met</em>er("manhourRepair"));rn hd.setMainManhourOverhaul(request.getPara<em>met</em>er("manhourOverhaul"));rn hd.setMainImmobilityRepair(request.getPara<em>met</em>er("immobilityRepair"));rn hd.setMainImmobilityOverhaul(request.getPara<em>met</em>er("immobilityOverhaul"));rn hdd.setDateData(request.getPara<em>met</em>er("hdDate"));rn hd.setHddate(hdd);rn //给件号跟ATA章节号赋值rn aid.setArticleIdName(request.getPara<em>met</em>er("hdmainArticleId"));rn aid.setArticleIdAta(request.getPara<em>met</em>er("hdmainAta")); rn String jh = articleIdBiz.findbyId(aid.getArticleIdName()); rn System.out.println("件号id:"+jh);rn //把ID给予查询出返回一个件号rn if(jh == null)//判断是否有这个件号;rn System.out.println("判断是否给予外键件号:"+aid);rn articleIdBiz.addIArticle(aid);//如果没有这个件号系统就会添加这个件号rn System.out.println("==========-==========");rn Integer jhh = articleIdBiz.findbyintName(aid.getArticleIdName());rn //String jhh= articleIdBiz.findbyId(aid.getArticleIdName());rn System.out.println("==========-==========");rn System.out.println("看看jh是否有返回件号ID:"+jhh+"==也要看看有没有:"+aid.getArticleIdName()); rn System.out.println(jhh);rn hd.setArticleId(jhh);//然后在把这个件号给hd的外键给予联系 rn else//如果有返回件号的id给Hmain上的外键赋值rn hd.setArticleId(Integer.parseInt(articleIdBiz.findbyId(aid.getArticleIdName())));rn rn rn System.out.println(articleIdBiz.findbyId(aid.getArticleIdName()));rnrn System.out.println("!!!!!!!!!:"+hd.getArticleId());rn rnrnrn rn System.out.println(aid.getArticleIdAta()+"|"+aid.getArticleIdName());rn rn cor.setCorporationName(request.getPara<em>met</em>er("hdmainName"));//添加公司名称rn hd.setCorporation(cor);//添加入外键的公司名称rn Hdmain p = hdmainBiz.findbyCorAndId(cor.getCorporationName(), aid.getArticleIdName());rn rn if (p == null) //来判断是不是有公司名称并且件号同时相等的条件,如果存在说明以添加过rn System.out.println("看看是否能进判断语句");rn System.out.println("HD前一句:"+hd);rn articleIdBiz.addIArticle(aid);rn corporationBiz.addIArticle(cor);rn hddateBiz.addIArticle(hdd);rn hdmainBiz.addHdmain(hd);// TODO 有问题的一句话rn System.out.println("HD后一句:"+hd);rn return mapping.findForward("Add_success");rn else rn return mapping.findForward("Add_Failure");rn rn [/code]
晕了,java.lang.NoSuchMethodError
rn Throwing System exception for the container-started transaction for <em>met</em>hod: public abstract shdatares.workflowinterface.model.wfshwleponordersoutmodel[] shdatares.workflowinterface.session.wfshwlepon.wfshwleponout.generateOrdersfromStatus(shdatares.workflowinterface.model.usermodel,java.lang.String) throws java.rmi.RemoteExceptionrn java.lang.NoSuchMethodErrorrn at shdatares.workflowinterface.session.wfshwlepon.wfshwleponoutBean.generateOrdersfromStatus(wfshwleponoutBean.java:563)rn at java.lang.reflect.Method.invoke(Native Method)rn at com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:32)rn at com.inprise.ejb.EJBContext.invoke(EJBContext.java:166)rn at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1297)rn at com.inprise.ejb.Dispatcher.invokeSecurityCheck(Dispatcher.java:1019)rn at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:812)rn at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:591)rn at com.inprise.ejb.EJBHome.dispatcherInvokeBeanMethod(EJBHome.java:55)rn at com.inprise.ejb.EJBHome$ComponentInterfaceMethodCache.invokeDispatcherMethod(EJBHome.java:1477)rn at com.inprise.ejb.EJBHome.invokeDispatcherMethod(EJBHome.java:34)rn at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:416)rn at shdatares.workflowinterface.session.wfshwlepon.wfshwleponoutPOAInvokeHandler.generateOrdersfromStatus(wfshwleponoutPOAInvokeHandler.java:155)rn at shdatares.workflowinterface.session.wfshwlepon.wfshwleponoutPOAInvokeHandler.generateOrdersfromStatus(wfshwleponoutPOAInvokeHandler.java:853)rn at shdatares.workflowinterface.session.wfshwlepon.wfshwleponoutPOA._invoke(wfshwleponoutPOA.java:112)rn at shdatares.workflowinterface.session.wfshwlepon.wfshwleponoutPOA._invoke(wfshwleponoutPOA.java:78)rn at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2666)rn at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:108)rn at com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInterceptorManager.java:111)rn at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:627)rn at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:68)rn at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:865)rn at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:105)rn at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)rnrn错误日志如上,单看日志,没找到方法rn可是我查过代码,有那方法没错的rn包反编译后看了,类里确实也存在那方法!rnrn请问,还有什么原因会造成这样的错误 java.lang.NoSuchMethodError!
hibernate的java.lang.NoSuchMethodError
[code="java"]rnrnpublic void updDb(Session session)rn rn tryrn String hql = "select * from Sample"; rn Query qr = session.createQuery(hql);rn List list = qr.list();rn rn for(int i = 0; i < list.size(); i++)rn Sample s = (Sample)list.get(i);rn System.out.println(s.getSampleId()+" : "+s.getName());rn rn rn catch(HibernateException e)rn e.printStackTrace();rn rn[/code]rn下面是错误:rn2010-11-25 13:35:48,567 ERROR [org.hibernate.hql.PARSER] - line 1:8: unexpected token: *rnException in thread "main" java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)Vrnrn怎么解决?rnrn自己看出问题了,是查询语句写错了,现在想问个问题是使用hibernate查询,前面不能写'select [字段]...'么
Apache commons-pool2-2.4.2源码学习笔记
  1.背景        最近查看了下Apache commons-pool2的源代码commons-pool2-2.4.2,代码不多,大概50个java类左右,阅读源代码的初衷是为了通过不断的学习和总结,升华自己的技术能力,写此博客是为了给自己留下一点笔记,日后能够温故知新。        Apache commons-pool2类库是对象池技术的一种具体实现,它的出现是为了解决频繁...
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
刚配置了一下redis环境,发现报了一个错:nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool ,查找了资料发现很多都说是包配置错误,我用了spring-data-redis-1.6.2.RELEASE.jar,jedis-2.7.3.jar,co
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener
信息: Marking servlet CXFServlet as unavailable 八月 21, 2014 12:35:14 下午 org.apache.catalina.core.Stand
Spring boot JedisPool初始化失败的 解决方案
最近在开发中使用radis的时候遇到了这个问题 redis.clients.jedis.JedisPool.&amp;lt;init&amp;gt;(Lorg/apache/commons/pool2/impl/GenericObjectPoolConfig;Ljava/lang/String;IILjava/lang/String;ILjava/lang/String;Z)V从错误中我知道是 JedisPool...
JMX客户端及对commons-pool的监控
生产线上,我们的服务基本都是在linux环境下部署的,当高并发的时候,机器的负载是比较高的,所以我们只能在linux机器上执行一些简单的命令行工具,如jps,jstack,jinfo等,像重量级的jconsole,jvisualvm这些首先需要桌面环境才能观看,服务器肯定是没有开启X client的,所以只能通过jmx在远程客户端观看,但这种情况下,势必会对本机造成一些不必要的资源占用,如网络带宽
javax.servlet.ServletException: java.lang.NoSuchMethodError
运行程序时报错如下,谁能告诉我这是什么错误?rnjavax.servlet.ServletException: java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.wsy.Filter.ModifyCode.doFilter(ModifyCode.java:23)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;rn at org.apache.jsp.index_jsp._jspInit(index_jsp.java:27)rn at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)rn at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn ... 16 morern
java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit
代码没问题,启动tomcat时,出现了这个错误:rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init <em>met</em>hod failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 39 morern2010-6-21 21:55:20 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2010-6-21 21:55:20 org.apache.catalina.core.StandardContext startrn严重: Context [/blog] startup failed due to previous errorsrnrn我试着移除asm-2.2.3.jar包,然后启动tomcat,成功了。第二天,我再启动tomcat时,却失败了,信息还是如上所述。怎么回事啊?想不明白! 急急急
java.lang.NoSuchMethodError: org.apache.commons.collections.map.ListOrderedMap:
我使用json—lib一系列jar包处理json和java对象之间的互相转换,同样的jar包在我写的测试程序里一切正常;可是当我将同样的代码和jar包导入正式项目后,就一直报错:rn2013-8-21 15:48:53 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet ExportExcelServlet threw exceptionrnjava.lang.NoSuchMethodError: org.apache.commons.collections.map.ListOrderedMap: <em>met</em>hod ()V not foundrn at net.sf.json.JSONObject.(JSONObject.java:1450)rn at net.sf.json.util.CycleDetectionStrategy.(CycleDetectionStrategy.java:37)rn at net.sf.json.JsonConfig.(JsonConfig.java:65)rn at net.sf.json.JSONArray.fromObject(JSONArray.java:105)rn at com.cyber.servlet.ExportExcelServlet.doPost(ExportExcelServlet.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.cyber.html.filter.EncodingFilter.doFilter(EncodingFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.anychart.servlet.ResourceFilter.doFilter(ResourceFilter.java:53)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)rnrn==========================================================================================rn[b]共同引用的jar包有:rncommons-beanutils-1.7.0.jarrncommons-collections-3.1.jarrncommons-lang-2.1.jarrncommons-logging-1.1.1.jarrnezmorph-1.0.6.jarrnjson-lib-2.4-jdk15.jarrnrn测试程序里面除了以上这些jar文件之外就是struts的一些jar文件!rn正式项目跟以上jar文件类似的有:rncommons-beanutils.jarrncommons-collections.jarrncommons-lang.jarrnrn一直以为是jar包冲突,但我将commons-beanutils.jar、commons-collections.jar、commons-lang.jarrn删去也报同样的错误或者就是找不见net.sf.json.JsonConfig的错误rnrn注:我项目用的是jdk1.6 Myeclipse 6.5 tomcat6.0rnrn找了俩天都没有找到问题到底在哪?同样的文件和代码,在不同项目怎么就不行呢!求大侠指点啊![/b]rn===============================================================================rn正式项目所引用jar文件截图:rn[img=https://img-bbs.csdn.net/upload/201308/21/1377073053_528505.png][/img]rn后台java代码片段:rn[img=https://img-bbs.csdn.net/upload/201308/21/1377073099_260792.png][/img]rn异常信息:rn[img=https://img-bbs.csdn.net/upload/201308/21/1377073120_873406.png][/img]
java.lang.NoSuchMethodError异常解决
NULL 博文链接:https://sunrysoft.iteye.com/blog/1677989
java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover
我在执行rnrnList list=this.getSessionFactory().openSession().createQuery(SQL).list()rn其中这个类继承了org.springframework.orm.hibernate3.support.HibernateDaoSupportrnSQL为Select * from users where use_id = 123 and use_password = 123rnrn时报错如下rnrn严重: Servlet.service() for servlet action threw exceptionrnjava.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)Vrnrn我在网络上找了些资料rn有的说是SQL语句错误,可是我在数据库上执行的时候能顺利的找到数据rn也有的说缺少antlr这个包rn我也myeclipse底下的antlr-2.7.6.jar包添加到LIB里rn可还是报错,我没办法了,请帮忙看看,谢谢rn
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource解决方案
整个系统都没有错误,但是在发布运行后,控制台上却抛出了这样的异常: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDat
java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool
java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool
Spring + Tomcat 启动报错java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool...
错误如下: 2014-03-06 12:20:49,375-[TS] INFO http-8080-1 org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.Default...
java.lang.ClassNotFoundException: org.apache.commons.collections.map.ListOrderedMap解决方法
参考http://blog.csdn.net/jawsy/archive/2007/04/09/1557165.aspx做json的测试,但是发现报错,具体错误为Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMapat net.sf.json.JSONObject.(JSONObject.java:1529)at net.sf.json.util
org/apache/commons/pool/impl/GenericObjectPool异常的解决办法
org/apache/commons/pool/impl/GenericObjectPool异常的解决办法 webwork+spring+hibernate框架的集成, 一启动Tomcat服务器就出了一大堆异常 报的错误是java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool 在网
求助 java.lang.NoSuchMethodError
利用springboot + jpa 为何找不到 repository 里的方法 rnjava.lang.NoSuchMethodError: com.yanshang.repository.UserRepository.getuserbyroleid(Ljava/lang/Integer;)Ljava/util/List;rn at com.yanshang.service.impl.UserServiceImpl.findrolebyroleid(UserServiceImpl.java:97) ~[classes/:na]rn at com.yanshang.controller.admin.CustomerAdminController.list(CustomerAdminController.java:54) ~[classes/:na]rn at com.yanshang.controller.admin.CustomerAdminController$$FastClassBySpringCGLIB$$8474a11e.invoke() ~[classes/:na]rn at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE]rn at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) ~[spring-aop-5.0.8.RELEASE.jar:5.0.8.RELEASE]rnrn我的代码如下 rnrnpublic interface UserRepository extends JpaRepository,JpaSpecificationExecutorrnrn /**rn * 根据用户名查找用户实体rn * @param userNamern * @returnrn */rn @Query(value="select * from t_user where user_name=?1",nativeQuery=true)rn public User findByUserName(String userName);rn //查询拥有经纪商角色 的所有人rn @Query(value="select * from t_user where id in(select user_id from t_user_role where role_id=?1)",nativeQuery=true)rn public List getuserbyroleid(Integer id);rnrnservice层:rn@Overridern public List findrolebyroleid(Integer id) rn // TODO Auto-generated <em>met</em>hod stubrn return userRepository.getuserbyroleid(id);rn rn
java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebAppl
java.lang.NoClassDefFoundError: org/springframework/beans/PropertyAccessorFactoryrn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:114)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: org.springframework.beans.PropertyAccessorFactoryrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 28 morern2011-8-4 13:06:01 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /StuObject.myeclipse.bak threw load() exceptionrnjava.lang.ClassNotFoundException: org.springframework.beans.PropertyAccessorFactoryrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:114)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2011-8-4 13:06:01 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory StuObjectrnjava.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setConfigLocation(Ljava/lang/String;)Vrn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:398)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2011-8-4 13:06:06 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /StuObject threw load() exceptionrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-8-4 13:06:07 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-8-4 13:06:07 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2011-8-4 13:06:07 org.apache.catalina.startup.Catalina startrn信息: Server startup in 11814 msrn帮忙看下这是什么错,Tomcat启动就报错了
急!java.lang.NoSuchMethodError
500 Internal Server Errorrnjava.lang.NoSuchMethodError: dxj.draw.model.WellManager.sectionPoint(Lcom/dataset/SResultSetEx;Ljava/lang/String;DDDDDDLjava/lang/String;)[[Drn at dxj.draw.computer.UtilSectionComputer.compute(UtilSectionComputer.java:57)rn at dxj.draw.UtilSectionDraw.compute(UtilSectionDraw.java:45)rn at dxj.draw.UtilSectionDraw.replaceXml(UtilSectionDraw.java:75)rn at /app/page/vmllook.jsp._jspService(/app/page/vmllook.jsp.java:67) (JSP page line 37)rn at com.orionserver[Orion/2.0.8 (build 11293)].http.OrionHttpJspPage.service(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._ay._rlb(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)].server.http.JSPServlet.service(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._ctb._pwd(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._ctb._bpc(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._ax._ltc(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._ax._ubb(Unknown Source)rn at com.evermind[Orion/2.0.8 (build 11293)]._bf.run(Unknown Source)rnrn我在UtilSectionComputer中的 compute方法调WellManager 的sectionPoint方法,结果就报上面那错误了!!rn这俩个类都是web程序的后台类,我没ssh框架,哪位大虾给看看!!!rnrnrn[code=Java]package dxj.draw.computer;rnrnimport com.dataset.SResultSetEx;rnrnimport dxj.draw.model.Well;rnimport dxj.draw.model.WellManager;rnimport dxj.math.design.Section2Point;rnimport dxj.util.DxjUtil;rnrnpublic class UtilSectionComputer implements ICompute rnrn static double m = 20; // 明细点间隔rn static int n = 25; // 造斜率单位rnrn public double[][] compute(SResultSetEx rs, String[] pname, String[] pvalue) rnrn // 计算井眼轨迹rn String id00 = "1";rn String pointDeep = "0";rn double dpointDeep; // 造斜点垂深rn double firstBuildRate = 0;// 第一造斜率rn double secondBuildRate = 0;// 第二造斜率rn double firstBuildupObliqueAngle = 0;// 第一段圆弧结束时的井斜角rn double secondBuildupObliqueAngle = 0;// 第二段圆弧结束时的井斜角rn double secondStableVerticalDeep = 0;// 第二稳定段垂深增量(五段制中要用到)rn String wellType = ""; // 井的轨迹类型rn for (int i = 0; i < pname.length; i++) rn if (pname[i].equals("id00")) rn id00 = pvalue[i];rn rn if (pname[i].equals("zxdcs")) rn pointDeep = pvalue[i];rn rn if (pname[i].equals("zxl")) rn firstBuildRate = DxjUtil.parseDouble(pvalue[i]);rn rn if (pname[i].equals("jxl")) rn secondBuildRate = DxjUtil.parseDouble(pvalue[i]);rn rn if (pname[i].equals("jsjxj")) rn firstBuildupObliqueAngle = DxjUtil.parseDouble(pvalue[i]);rn rn if (pname[i].equals("xzjxj")) rn secondBuildupObliqueAngle = DxjUtil.parseDouble(pvalue[i]);rn rn if (pname[i].equals("cz")) rn secondStableVerticalDeep = DxjUtil.parseDouble(pvalue[i]);rn rn if (pname[i].equals("computer")) rn wellType = pvalue[i];rn rn rn dpointDeep = DxjUtil.parseDouble(pointDeep);rnrn // 两段式计算结果 rn WellManager wellManager=new WellManager();rn double[][] sectionDetails = [color=#FF0000]wellManager.sectionPoint(rs, id00,rn dpointDeep, firstBuildRate, secondBuildRate,rn firstBuildupObliqueAngle, secondBuildupObliqueAngle,rn secondStableVerticalDeep, wellType);[/color]rn double[][] result = new double[sectionDetails.length][];rn for (int i = 0; i < result.length; i++) rn result[i] = new double[2];rn result[i][0] = Math.sqrt(sectionDetails[i][4]rn * sectionDetails[i][4] + sectionDetails[i][5]rn * sectionDetails[i][5]);rn result[i][1] = sectionDetails[i][6];rn rn return result;rnrn rnrnrn[/code]rn
java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.Inject
如题,一样的ssh项目,centos6.5 jdk1.8 tomcat8 运行没问题,可是用redhat jdk1.7 tomcat6 就报上面的错,具体错误代码如下:rnorg.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failedrn java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.(Ljava/lang/Class;)Vrn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.findResourceMetadata(CommonAnnotationBeanPostProcessor.java:318)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:277)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:798)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:493)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4810)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5248)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:699)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1135)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1781)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rn
java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JaxBeanInfo.getTypeName
ERROR [org.springframework.web.context.ContextLoader] - rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sendMailService': Invocation of init <em>met</em>hod failed; nested exception is java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JaxBeanInfo.getTypeNames()Ljava/util/Collection;rnCaused by: rnjava.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JaxBeanInfo.getTypeNames()Ljava/util/Collection;rn at org.apache.cxf.jaxb.JAXBSchemaInitializer.begin(JAXBSchemaInitializer.java:132)rn at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97)rn at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:130)rn at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)rn at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:357)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:354)rn at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:514)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:405)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:188)rn at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)rn at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)rn at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:116)rn at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:168)rn at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:336)rn at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:251)rn at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:201)rn at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:394)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:589)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)rn at com.gsww.util.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:52)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:589)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)rn2011-08-10 17:17:53,156 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]] - rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sendMailService': Invocation of init <em>met</em>hod failed; nested exception is java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JaxBeanInfo.getTypeNames()Ljava/util/Collection;rnCaused by: rnjava.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JaxBeanInfo.getTypeNames()Ljava/util/Collection;rn at org.apache.cxf.jaxb.JAXBSchemaInitializer.begin(JAXBSchemaInitializer.java:132)rn at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97)rn at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:130)rn at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)rn at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:357)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:354)rn at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:514)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:405)rn at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:188)rn at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)rn at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)rn at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:116)rn at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:168)rn at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:336)rn at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:251)rn at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:201)rn at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:394)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:589)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
"java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils"的解决办法
关于SSH2的集成,经常会遇到下面这一问题,在Spring和hibernate集成成功后,与Struts2进行集成时,在一切工作完成后启动tomcat时,出现了一个严重警告,也可以说是错误,因为虽然tomcat是启动成功了,但相应的项目还是运行不了。 现在把错误的详细信息粘贴出来,其中重点部分用红色凸显: 信息: Deploying web application directory SSH2
GenericObjectPoolConfig cannot be resolved. It is indirectly referenced from required .class files
在导入与redis有关的项目时,经常报下面的错误: The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved. It is indirectly referenced from required .class files 经查,原来是缺少包,导入下面的包即可解决: o
Redis连接池---jedis-2.9.0+commons-pool2-2.4.2
首先,导入jedis-2.9.0.jar和commons-pool2-2.4.2.jar包。 我在做测试时,忘记导入commons-pool2-2.4.2.jar,报了如下错误:The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved. It is indirectly referenced
The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved. It is indirectly
问题描述:The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved. It is indirectly 解决方案:导入commons-pool2-2.4.2.jar包。我的博客已经上传commons-pool2-2.4.2.jar包需要的可以下载。...
报错: org.apache.commons.pool2.impl.GenericObjectPoolConfig not found
报错: org.apache.commons.pool2.impl.GenericObjectPoolConfig not found 解决方法:导入 commons-pool2-2.0.jar 下载 http://download.csdn.net/detail/f765961322/7357681
java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtil
11:50:19,079 INFO [web.context.ContextLoader] Root WebApplicationContext: initialization startedrn 11:50:19,141 INFO [context.support.XmlWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Mon May 18 11:50:19 CST 2015]; root of context hierarchyrn 11:50:19,211 INFO [factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [ApplicationContext.xml]rn 11:50:19,809 INFO [jdbc.datasource.DriverManagerDataSource] Loaded JDBC driver: org.gjt.mm.mysql.Driverrn 11:50:20,797 INFO [factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15a27b54: defining beans [loginAction,loginServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,jdbcDataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,loginMapper]; root of factory hierarchyrn 11:50:20,909 INFO [factory.support.DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15a27b54: defining beans [loginAction,loginServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,jdbcDataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,loginMapper]; root of factory hierarchyrn 11:50:20,911 ERROR [web.context.ContextLoader] Context initialization failedrn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginServiceImpl' defined in file [E:\workspace\.<em>met</em>adata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\test\WEB-INF\classes\com\rync\serviceImpl\LoginServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginMapper' defined in file [E:\workspace\.<em>met</em>adata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\test\WEB-INF\classes\com\rync\dao\LoginMapper.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.getAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginMapper' defined in file [E:\workspace\.<em>met</em>adata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\test\WEB-INF\classes\com\rync\dao\LoginMapper.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.getAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1104)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1054)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn ... 20 morernCaused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.getAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;rn at org.springframework.transaction.annotation.SpringTransactionAnnotationParser.parseTransactionAnnotation(SpringTransactionAnnotationParser.java:39)rn at org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotationTransactionAttributeSource.java:147)rn at org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.findTransactionAttribute(AnnotationTransactionAttributeSource.java:126)rn at org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.computeTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:146)rn at org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.getTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:99)rn at org.springframework.transaction.interceptor.TransactionAttributeSourcePointcut.matches(TransactionAttributeSourcePointcut.java:37)rn at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:217)rn at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)rn at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)rn at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn ... 28 morern这是报错的日志,下面是spring的配置文件:
java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()
求解决一下问题。QQ 553636385rnjava.lang.NoSuchMethodError: javax.persistence.PersistenceContext.properties()[Ljavax/persistence/PersistenceProperty;rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.(PersistenceAnnotationBeanPostProcessor.java:544)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$1.doWith(PersistenceAnnotationBeanPostProcessor.java:359)rn at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:523)rn at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:500)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:351)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:745)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:448)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at junit.test.PersonServiceTest.setUpBeforeClass(PersonServiceTest.java:18)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnrn
java.lang.NoSuchMethodError: org.apache.struts2.interceptor.StrutsConversionErro
项目中遇到一个问题,之前还是正常的,并且配置文件那些并没有修改过,但是今天再运行的时候就报如下错误:rnjava.lang.NoSuchMethodError: org.apache.struts2.interceptor.StrutsConversionErrorInterceptor.escape(Ljava/lang/Object;)Ljava/lang/String;rn org.apache.struts2.interceptor.StrutsConversionErrorInterceptor.getOverrideExpr(StrutsConversionErrorInterceptor.java:83)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:105)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.Para<em>met</em>ersInterceptor.doIntercept(Para<em>met</em>ersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.Para<em>met</em>ersInterceptor.doIntercept(Para<em>met</em>ersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticPara<em>met</em>ersInterceptor.intercept(StaticPara<em>met</em>ersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:314)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:270)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:498)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rnrn在网上搜了半天没有解决方案,求大大们帮忙解决下,跪谢
莫名其妙的 java.lang.NoSuchMethodError
求大侠帮忙:我在servlet中调用dao中的方法,抛出以下异常,但是我是在同一个servlet中调用同一个dao中的另一个方法却正常运行,不存在类没有导入的问题,方法名也正确,郁闷了半天还是没有结果rnrn严重: Servlet.service() for servlet SaleServlet threw exceptionrnjava.lang.NoSuchMethodError: cn.wjt.dao.SaleDao.getLastSale()Lcn/wjt/vo/SaleBills;rn at cn.wjt.servlet.SaleServlet.queryLastItem(SaleServlet.java:73)rn at cn.wjt.servlet.SaleServlet.doPost(SaleServlet.java:34)rn at cn.wjt.servlet.SaleServlet.doGet(SaleServlet.java:29)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at cn.wjt.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:44)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn
java.lang.NoSuchMethodError: main
斐波那契数列:1,1,2,3,5,8,13,21…… rnjava code:rnpublic class Testrn public static void mail(String[] args)rn int a[]=new int[50];rn a[0]=1;a[1]=1;rn for(int i=3;i java.lang.NoSuchMethodError: mainrnrn
java操作Redis数据库的redis工具,RedisUtil,jedis工具JedisUtil,JedisPoolUtil
java操作Redis数据库的redis工具,RedisUtil,jedis工具JedisUtil,JedisPoolUtil,自己抽空写的,基本只要理解什么是get,什么是set就可以使用Redis数据库了
常见JedisConnectionException异常分析
最近项目开发中用到了Redis, 选择了官网推荐的java client Jedis。 Redis常用命令学习:http://redis.io/commands Redis官方推荐Java客户端Jedis(包含了所有Redis命令的实现):https://github.com/xetorthio/jedis Jedis使用过程中最常见异常JedisConnectionException有
java.lang.ClassNotFoundException: org.elasticsearch.action.count.CountRequestBuilder 错误解决
在使用elasticsearch的时候遇到了 java.lang.ClassNotFoundException:org.elasticsearch.action.count.CountRequestBuilder pom.xml配置文件如下 &lt;dependencies&gt; ... &lt;dependency&gt; &lt;gro...
java.lang.ClassNotFoundException问题
-
java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
如图,不知道这是什么问题,web.xml和index.jsp都是默认的,没有修改 只是这个工程是从别人那 git clone过来的,出现这种错误,是版本不一致问题,还是什么呢?要怎么修改呢?
java.lang.NoSuchMethodError异常
我想做一个插入联系人,然后可以查看联系人的功能,有一张联系人AddressList表,一张联系人的type表,就是有朋友、家人等分组的。rn当我给type表中插入值,比如朋友、家人什么的之后,我点击查询联系人,就会报错,不插入时不报错,当然这个时候我也是没办法插入联系人信息的,因为type值是空的嘛。rn错误代码如下:rn[code=Java]严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NoSuchMethodError: com.lyq.bean.TypeForm.getId()Frn at org.apache.jsp.addressList_005flist_jsp._jspService(addressList_005flist_jsp.java:240)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)rn at com.lyq.action.AddressListServlet.query(AddressListServlet.java:81)rn at com.lyq.action.AddressListServlet.doPost(AddressListServlet.java:34)rn at com.lyq.action.AddressListServlet.doGet(AddressListServlet.java:24)rn[/code]rnrnrnrn补充我的代码:TypeForm.javarn[code=Java]package com.lyq.bean;rnrnpublic class TypeForm rn public int id=0; //类别IDrn public String typeName=""; //类别名称rn rn public void setId(int id)rn this.id=id;rn rn public int getId()rn return id;rn rn public String getTypeName() rn return typeName;rn rnrn public void setTypeName(String typeName) rn this.typeName = typeName;rn rnrn[/code]rnrnrnAddressListDAO部分代码:rn[code=Java]rnrn //根据所属组ID查询联系人信息rn public List query(int condition,String userEmail) rn List list = new ArrayList();rn //String sql ="SELECT * FROM tb_addressList WHERE groupId=" + condition +" AND userEmail='"+userEmail+"'";rn String sql ="SELECT * FROM tb_addressList WHERE groupId=" + condition +" AND userEmail='"+userEmail+"'";rn ResultSet rs = conn.executeQuery(sql);rn //System.out.println("SQL:"+sql);rn try rn while (rs.next()) rn AddressListForm f = new AddressListForm();rn f.setId(rs.getInt(1));rn f.setName(rs.getString(2));rn f.setEmail(rs.getString(3));rn f.setBirthday(rs.getString(4));rn f.setTel(rs.getString(5));rn f.setGroupId(rs.getInt(6));rn f.setUserEmail(rs.getString(7));rn list.add(f); // 将联系人信息保存到List集合中rn rn catch (SQLException e) rn e.printStackTrace();rn rn conn.close();rn return list;rn rnrn[/code]rnrnrnrnAddressListServlet.java部分代码:rn[code=Java]rnrn //查询全部联系人rn public void query(HttpServletRequest request,HttpServletResponse response) throws IOExceptionrn request.setAttribute("typeList",addressListDAO.queryType());rn //将页面重定向到显示联系人列表页面rn RequestDispatcher requestDispatcher = request.getRequestDispatcher("addressList_list.jsp");rn try rn requestDispatcher.forward(request, response);rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn //删除联系人rn public void del(HttpServletRequest request,HttpServletResponse response) throws IOExceptionrn response.setContentType("text/html;charset=GBK");rn int id=Integer.parseInt(request.getPara<em>met</em>er("id"));rn int rtn=addressListDAO.del(id);rn //将页面重定向到联系人列表页面rn if(rtn==0)rn request.setAttribute("error","删除联系人信息失败!");rn try rn request.getRequestDispatcher("error.jsp").forward(request,response);rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn elsern PrintWriter out = response.getWriter();rn out.print(" "); rn rn rnrn public void init() throws ServletException rn rnrnrn[/code]rnrnrnAddressList_list.jsp代码:rn[code=Java]rnrnrnrnrnrnrn rn 显示联系人列表rn rn rn rnrnrnrnrn rn rn rn rn rn rn rn rn rn 当前位置:通讯录 > 查看联系人 >>rn rn rn rn list_sub=(List)addressListDAO.query(list.get(i).getId(),session.getAttribute("username").toString());rn out.println(" rn rn rn 0)%>rn rnrn[/code]rnrnrnrn我实在是没招了,我是菜鸟,为了做毕业设计,请大大们帮帮忙啊,先谢了!
java.lang.NoSuchMethodError: 错误
java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)Vrn at org.hibernate.hql.antlr.HqlBaseParser.identPrimary(HqlBaseParser.java:4065)rn at org.hibernate.hql.antlr.HqlBaseParser.primaryExpression(HqlBaseParser.java:861)rn at org.hibernate.hql.antlr.HqlBaseParser.atom(HqlBaseParser.java:3438)rn at org.hibernate.hql.antlr.HqlBaseParser.unaryExpression(HqlBaseParser.java:3216)rn at org.hibernate.hql.antlr.HqlBaseParser.multiplyExpression(HqlBaseParser.java:3098)rn at org.hibernate.hql.antlr.HqlBaseParser.additiveExpression(HqlBaseParser.java:2818)rn at org.hibernate.hql.antlr.HqlBaseParser.concatenation(HqlBaseParser.java:570)rn at org.hibernate.hql.antlr.HqlBaseParser.relationalExpression(HqlBaseParser.java:2586)rn at org.hibernate.hql.antlr.HqlBaseParser.equalityExpression(HqlBaseParser.java:2449)rn at org.hibernate.hql.antlr.HqlBaseParser.negatedExpression(HqlBaseParser.java:2413)rn at org.hibernate.hql.antlr.HqlBaseParser.logicalAndExpression(HqlBaseParser.java:2331)rn at org.hibernate.hql.antlr.HqlBaseParser.logicalOrExpression(HqlBaseParser.java:2296)rn at org.hibernate.hql.antlr.HqlBaseParser.expression(HqlBaseParser.java:2082)rn at org.hibernate.hql.antlr.HqlBaseParser.aliasedExpression(HqlBaseParser.java:2249)rn at org.hibernate.hql.antlr.HqlBaseParser.selectedPropertiesList(HqlBaseParser.java:1455)rn at org.hibernate.hql.antlr.HqlBaseParser.selectClause(HqlBaseParser.java:1365)rn at org.hibernate.hql.antlr.HqlBaseParser.selectFrom(HqlBaseParser.java:1106)rn at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:702)rn at org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:296)rn at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:159)rn at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:248)rn at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)rn at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)rn at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)rn at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)rn at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)rn at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)rn at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)rn at com.eryu.dao.impl.DaoImpl.createQuery(DaoImpl.java:19)rn at com.eryu.service.impl.PersonServiceImpl.findPersonByAccount(PersonServiceImpl.java:16)rn at com.eryu.service.impl.PersonServiceImpl.create(PersonServiceImpl.java:40)rn at com.eryu.service.impl.PersonServiceImpl.create(PersonServiceImpl.java:1)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn at $Proxy18.create(Unknown Source)rn at com.eryu.struts.action.PersonAction.add(PersonAction.java:72)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)rn at com.eryu.struts.action.ForumAction.execute(ForumAction.java:34)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)
java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.lookup
500 Servlet Exceptionrnjava.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.lookup(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;rn at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:218)rn at org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)rn at org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)rn at _jsp._dmwsjxx_22din__jsp._jspService(dmwsjxx-in.jsp:281)rn at com.caucho.jsp.JavaPage.service(JavaPage.java:60)rn at com.caucho.jsp.Page.pageservice(Page.java:570)rn at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)rn at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)rn at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)rn at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277)rn at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)rn at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:99)rn at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:82)rn at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:51)rn at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)rn at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)rn at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)rn at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)rn at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)rn at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)rn at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:420)rn at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)rn at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)rn at com.caucho.util.ThreadPool.run(ThreadPool.java:442)rn at java.lang.Thread.run(Thread.java:619)rnrnrn 各位高手帮下手呀,现在给这个Resin服务器卡住了呀rn
java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefini
java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)Vrn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:87)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn八月 24, 2015 4:32:45 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)Vrn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:87)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn八月 24, 2015 4:32:45 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn八月 24, 2015 4:32:45 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/ROOT] startup failed due to previous errorsrn八月 24, 2015 4:32:45 下午 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2015-08-24 16:32:45,613 INFO org.springframework.web.context.support.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Mon Aug 24 16:32:45 CST 2015]; root of context hierarchyrn2015-08-24 16:32:45,613 WARN org.springframework.web.context.support.XmlWebApplicationContext - Exception thrown from ApplicationListener handling ContextClosedEventrnjava.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon Aug 24 16:32:45 CST 2015]; root of context hierarchyrn at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:337)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:324)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1025)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)rn at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)rn at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5033)rn at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5685)rn at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn2015-08-24 16:32:45,613 WARN org.springframework.web.context.support.XmlWebApplicationContext - Exception thrown from LifecycleProcessor on context closernjava.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle <em>met</em>hods via the context: Root WebApplicationContext: startup date [Mon Aug 24 16:32:45 CST 2015]; root of context hierarchyrn at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:350)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1033)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)rn at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)rn at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5033)rn at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5685)rn at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn八月 24, 2015 4:32:45 下午 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContextrn at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)rn at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)rn at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)rn at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5033)rn at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5685)rn at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn项目刚开始运行所报的错,在网上也查询了好多但是都不能使用,求各位帮忙,谢谢!!!
报错java.lang.ClassNotFoundException:org.apache.http.config.Lookup解决方式
报错java.lang.ClassNotFoundException:org.apache.http.config.Lookup解决方式 一、出错情况              最近项目调HTTP接口时出现java.lang.ClassNotFoundException: org.apache.http.config.Lookup这个错误。百度了下发现网上没有,最后自己看jar包依赖才解决的二、原...
java.lang.ClassNotFoundException: org.apache.commons.collections.FastHashMap
缺少FastHashMap.class文件原因是commons-beanutils-1.9.3.jar没有该文件 换成1.8.3如下 下载地址
使用JSONObject报错:Java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeEx
在Spring Mvc框架的Controller中使用JSONObject报错,自己整理了一下: Java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException 首先,我去官网下载了   commons-lang3-3.5.jar commons-beanu
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
1、错误描述 2014-7-10 23:12:23 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils at com.opens
java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccess
[img=http://img.my.csdn.net/uploads/201212/21/1356055946_7406.png][/img][code=java]java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)Vrn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:61)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:234)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3631)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4065)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:537)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)rn[2012-12-21 10:06:41,953 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/a],662 ] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)Vrn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:61)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:234)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3631)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4065)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:537)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)rn[2012-12-21 10:06:41,953 ERROR org.apache.catalina.core.StandardContext,4066 ] Error listenerStartrn[2012-12-21 10:06:41,953 ERROR org.apache.catalina.core.StandardContext,4091 ] Context startup failed due to previous errorsrn[2012-12-21 10:06:41,953 INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/a],633 ] Closing Spring root WebApplicationContextrn[2012-12-21 10:06:42,156 INFO org.apache.coyote.http11.Http11Protocol,181 ] Starting Coyote HTTP/1.1 on http-8080rn[2012-12-21 10:06:42,218 INFO org.apache.jk.common.ChannelSocket,363 ] JK2: ajp13 listening on /0.0.0.0:8009rn[2012-12-21 10:06:42,218 INFO org.apache.jk.server.JkMain,343 ] Jk running ID=0 time=0/31 config=nullrn[2012-12-21 10:06:42,234 INFO org.apache.catalina.startup.Catalina,544 ] Server startup in 922 msrnjava.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V[/code]rn 求大伙讲解呀!!网上要不说缺jar包要不就是有冲突!!!求讲解呀rn
some problems met in java learning
学习中遇到的几个问题,都是大家比较容易做错的,可以试试
如何将水晶报表打包asp/met
如何将水晶报表打包,我们常常就在IIS中发布文件,可是会遇到各种各样的问题,打包发布。
java.lang.NoSuchMethodError 错误的原因及解决办法
不多说,先贴上错误=========== 详细: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoSuchMethodError: org.apache.tomcat.util.scan.Sta
在linux下的java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit问题
我的commEnv.sh配置是这样写的:rnWEBLOGIC_CLASSPATH="$WL_HOME/server/lib/cglib-full-2.0.2$PATCH_CLASSPATH$CLASSPATHSEP$JAVA_HOME/lib/tools.jar$CLASSPATHSEP$WL_HOME/server/lib/weblogic_sp.jar$CLASSPATHSEP$WL_HOME/server/lib/weblogic.jar"rnexport WEBLOGIC_CLASSPATHrnrn就是把full包放到weblogic.jar包的前面,rnrnwindows这样也是这样的方法配置的,windons没有问题rnrn但到了linux下,就报:rnrnjava.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrnrn的错误,大家帮忙一下啊,先谢过了rn
commons pool2对象池的使用
在建立一个开销是很大的对象时,通常我们都需要对象池,比如数据库链接、solr链接等等,apache为我们提供了一个工具类可以很快上手。 代码如下: //连接对象 public class Connection { public Connection() { System.out.println("创建了连接对象"); } public void open() { S...
在eclipse下用java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource定义data-source Tomcat无法启动的解决方法
在myeclipse下设置struts的struts-config.xml连接数据库:      .    .    .  启动tomcat后,发现:2007-3-31 19:49:37 org.apache.struts.action.ActionServlet initModuleDataSources严重: Initializing application data
redis连接:Could not get resource from the pool解决办法
用jedis连接redis一直报Could not get resource from the pool的错误,端口防火墙的什么检查完都没发现问题,不知道为什么死活报这个错。 然后给redis加了个一个密码,连接那配置上了连接密码,然后一下子就通了。也不知道为什么当初redis没密码,通过jedis为什么不能连接上。 记录下,免得大家和我有一样的困扰。...
利用Apache commons pool2构建池应用
commons pool2与commons pool1还是有很大的差别的,本文主要记录利用commons pool2构建自己的池应用。1 依赖的引入 org.apache.commons commons-pool2
java.lang.NoSuchMethodError如何解决?
java.lang.NoSuchMethodErrorrn刷新就好了。
java.lang.NoSuchMethodError: javax.servlet.ServletResponse.resetBuffer()V错误
在struts的action中我执行了所有的操作,没有报错,也把图片插入数据库了rntry rn new Image().putimg(file, photoStream,file.getFileSize());rn catch (Exception e) rn e.printStackTrace();rn rn return mapping.findForward("success");//指定页面的路径是一定正确的rn我的struts版本是1.2rn我断点跟中,也没错误,就是最后不,跳不到指定页面并且还报错rn报错如下rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Servlet execution threw an exceptionrnrnrnroot cause rnrnjava.lang.NoSuchMethodError: javax.servlet.ServletResponse.resetBuffer()Vrn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:760)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.rnrn
java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover异常
HQL: select id,title,body from Bulletin where ( title like '%a%' or body like '%a%' ) and (createTime >= Mon Sep 01 00:00:00 CST 2008) and (createTime = Mon Sep 01 00:00:00 CST 2008) and (createTime <= Sun Sep 28 23:59:59 CST 2008)rn网上搜了,有人说是antlr-2.7.4.jar这个包没有,有人说是hibernate3.jar中org\hibernate\hql\antlr这个底下为空,我检查了,都有!rn请指点
Eclipse报错 java.lang.NoSuchMethodError,CXF包冲突
用CXF连接XML接口,wsdl2java生成本地文件后,连接出错。rn查了下好像说是什么jar包冲突,但是不知道怎么解决。rn[code=java]package com.test;rnrnimport javax.xml.ws.Holder;rnimport org.apache.cxf.jaxws.JaxWsProxyFactoryBean;rnimport org.tmforum.mtop.fmw.xsd.hdr.v1.CommunicationPatternType;rnimport org.tmforum.mtop.fmw.xsd.hdr.v1.CommunicationStyleType;rnimport org.tmforum.mtop.fmw.xsd.hdr.v1.Header;rnimport org.tmforum.mtop.nra.xsd.alm.v1.AlarmListType;rnimport org.tmforum.mtop.rtm.wsdl.ar.v1_0.AlarmRetrieval;rnimport org.tmforum.mtop.rtm.wsdl.ar.v1_0.GetActiveAlarmsCountException;rnimport org.tmforum.mtop.rtm.wsdl.ar.v1_0.GetActiveAlarmsException;rnimport org.tmforum.mtop.rtm.xsd.ar.v1.GetActiveAlarmsCountRequest;rnimport org.tmforum.mtop.rtm.xsd.ar.v1.GetActiveAlarmsCountResponse;rnimport org.tmforum.mtop.rtm.xsd.ar.v1.GetActiveAlarmsRequest;rnrnpublic class test2 rn public static void main(String[] args) rn JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();rn factory.setServiceClass(AlarmRetrieval.class);rn factory.setAddress("http://172.17.11.89:9997/AlarmRetrieval");rn AlarmRetrieval alarmRetrieval = (AlarmRetrieval) factory.create();rnrn Header header = new Header();rn header.setActivityName("getActiveAlarmsCount");rn header.setCommunicationPattern(CommunicationPatternType.SIMPLE_RESPONSE);rn header.setCommunicationStyle(CommunicationStyleType.RPC);rn header.setSecurity("Adminstrator:1q2w3e4r5t");rnrn GetActiveAlarmsRequest request = new GetActiveAlarmsRequest();rn try rn AlarmListType alt =alarmRetrieval.getActiveAlarms(new Holder (header), request);rn System.out.println("The Count of All Active Alarm is :" + alt.getAlarm().get(0).getAdditionalText());rn catch (GetActiveAlarmsException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rnrn[/code]rnrn异常信息:rn2014-11-3 16:09:08 org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClassrn信息: Creating Service http://www.tmforum.org/mtop/rtm/wsdl/ar/v1-0AlarmRetrievalService from class org.tmforum.mtop.rtm.wsdl.ar.v1_0.AlarmRetrievalrnException in thread "main" java.lang.NoSuchMethodError: javax.xml.stream.XMLEventFactory.newFactory()Ljavax/xml/stream/XMLEventFactory;rn at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor$HeadersProcessor.(ReadHeadersInterceptor.java:281)rn at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:185)rn at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:65)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1638)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1527)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1330)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)rn at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138)rn at $Proxy68.getActiveAlarms(Unknown Source)rn at com.test.test2.main(test2.java:31)rn
java.lang.NoSuchMethodError ? 一个奇怪的问题
昨天在做升级的时候遇到一件怪事,主要功能为使用apache的ftp包来实现一个附件上传。rn 这个包里有两个方法rn ftpClient.setControlEncoding("GBK"); rn ftpClient.setBufferSize(100000); rn 用于转码和设置缓存大小。rn 在我的本机和测试环境上都是正确无误的,但奇怪的是当我升级到正式环境的时候会报一个错误,rn java.lang.NoSuchMethodError: setControlEncodingrn 提示为方法setControlEncoding不存在!rn 具体错误如下:rn[code=java]rnjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:592)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1914)rn at com.zte.zxcc.workflow.filter.ActionServletInterceptor.process(ActionServletInterceptor.java:62)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:463)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:857)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)rn at com.zte.zxcc.workflow.filter.EfficientEndFilter.doFilter(EfficientEndFilter.java:82)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)rn at com.zte.zxcc.workflow.tools.LoginCheckFilter.doFilter(LoginCheckFilter.java:77)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)rn at util.BdhFilter.doFilter(BdhFilter.java:19)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)rn at com.zte.zxcc.workflow.tools.ChangeCharsetFilter.doFilter(ChangeCharsetFilter.java:37)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3270)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2019)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1925)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1394)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)rnCaused by: java.lang.NoSuchMethodError: setControlEncodingrn at com.zte.zxcc.workflow.tools.ftp.FTPUtil.connectServer(FTPUtil.java:54)rn at com.zte.zxcc.workflow.webservice.client.CallBillClientImpl.callWebService(CallBillClientImpl.java:602)rn at com.zte.zxcc.workflow.webservice.client.CallBillClientImpl.createWorkbill(CallBillClientImpl.java:61)rn at com.zte.zxcc.workflow.WebUtil.sendBill(WebUtil.java:493)rn at com.zte.zxcc.workflow.action.WorkbillSendAction.send(WorkbillSendAction.java:97)rn ... 34 morern[/code]rnrn 提示为setControlEncoding方法不存在,但是事实上这个方法肯定是存在的rn 该方法来自commons-net-3.3.jarrnrn看到这个错误,我首先想到的是缺jar包,仔细检查了一遍,并不缺jar包,而且我开发从头到尾没加过jarrn 然后检查了一遍是否有jar包重复或同一个jar包引入了两个不同版本,检查结果是没有发现这样的情况rn 再然后我怀疑是编译不完全,然后重新编译了一次,发布之后报同样的错rn 再然后,再然后我就没辙了。。。。rn 不知道有哪位大神以前遇到过类似的问题,求助!!!
山东省高三信息技术EXCEL专题复习下载
山东省基本能力测试EXCEL的高三专题复习, 相关下载链接:[url=//download.csdn.net/download/limingjunwf/3840193?utm_source=bbsseo]//download.csdn.net/download/limingjunwf/3840193?utm_source=bbsseo[/url]
高中信息技术信息及其特征课件下载
高中信息技术必修课,信息及其特征,课件。 相关下载链接:[url=//download.csdn.net/download/slotiai2004/6535179?utm_source=bbsseo]//download.csdn.net/download/slotiai2004/6535179?utm_source=bbsseo[/url]
hp打印机驱动下载
惠普打印机驱动, 相关下载链接:[url=//download.csdn.net/download/caobincai/7768951?utm_source=bbsseo]//download.csdn.net/download/caobincai/7768951?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的