首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring3.1+JPA整合struts2.3出现的各种有关问题和错,其实主要还是jar包冲突

2013-09-11 
spring3.1+JPA整合struts2.3出现的各种问题和错,其实主要还是jar包冲突缺commons-digester-2.0.jar十一月

spring3.1+JPA整合struts2.3出现的各种问题和错,其实主要还是jar包冲突

缺commons-digester-2.0.jar十一月 15, 2012 9:10:13 下午 org.apache.catalina.core.StandardContext listenerStart严重: Error configuring application listener of class com.sun.faces.config.ConfigureListenerjava.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSetat java.lang.Class.getDeclaredConstructors0(Native Method)at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)at java.lang.Class.getConstructor0(Class.java:2714)at java.lang.Class.newInstance0(Class.java:343)at java.lang.Class.newInstance(Class.java:325)at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4701)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)at java.util.concurrent.FutureTask.run(FutureTask.java:166)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)at java.lang.Thread.run(Thread.java:722)Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.RuleSetat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)... 20 moreservlet-api-2.4.jar与Tomcat包冲突,移除。十一月 15, 2012 9:13:45 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile信息: validateJarFile(C:\apache-tomcat-7.0.23\webapps\eshop\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classejb3-persistence.jar冲突,移除Caused by: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:633)at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:268)at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)... 40 more缺commons-beanutils-1.8.0.jarCaused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.MethodUtilsat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)... 33 more



我的异常网推荐解决方案:org.apache.catalina.loader.WebappClassLoader.loadClass,http://www.myexception.cn/java-web/org.apache.catalina.loader.WebappClassLoader.loadClass.html

热点排行