maven项目启动jetty-maven-plugin报错

问题描述

maven项目启动jetty-maven-plugin报错

刚接触maven项目,按照maven实战的说明,使用jetty plugin进行部署,运行jetty:run命令的时候,控制台出现如下异常信息:
2015-05-06 13:42:08.082:WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext{/web,file:/E:/mycode/web_advancement/src/main/webapp/},file:/E:/mycode/web_advancement/src/main/webapp/
org.apache.commons.logging.LogConfigurationException: java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor
32 cannot access its superclass sun.reflect.ConstructorAccessorImpl (Caused by java.lang.IllegalAccessError: class sun.reflect.Gen
eratedConstructorAccessor32 cannot access its superclass sun.reflect.ConstructorAccessorImpl)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:571)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
at org.springframework.core.env.PropertySource.(PropertySource.java:58)
at org.springframework.core.env.PropertySource$StubPropertySource.(PropertySource.java:220)
at org.springframework.core.env.PropertySource$ComparisonPropertySource.(PropertySource.java:243)
at org.springframework.core.env.PropertySource.named(PropertySource.java:200)

        不知道哪位以前解决过类似的问题,请不吝赐教

解决方案

问题已解决,发现是jetty-server的版本与jetty-webapp的版本不一致,将jetty-webapp,jetty-jsp,jetty-server等修改一致后即可正常启动

解决方案二:

怎么修改jetty-server的版本与jetty-webapp的版本?

时间: 2024-11-17 01:30:10

maven项目启动jetty-maven-plugin报错的相关文章

idea+maven导入web项目后,tomcat无报错,无日志输出,启动失败,求大神!

问题描述 idea+maven导入web项目后,tomcat无报错,无日志输出,启动失败,求大神! 模块之间的依赖关系可以从这个pom中看出来 把这三个子模块的编译结果都输出到platform的webappWEB-INFclasses,所依赖的jar包通过Maven也输出到webappWEB-INFlib, 然后tomcate 这样配置的 然后启动tomcate 无报错 无log 直接停止,真的太诡异了! 大神们,帮帮忙!太感谢了!!! 解决方案 用IDEA启动非maven管理的web项目 解决

maven项目使用jetty启动,启动失败,请大神帮忙看看

问题描述 maven项目使用jetty启动,启动失败,请大神帮忙看看 14:50:16.256 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'webMapperScannerConfigurer'2015-07-08 14:50:16.535:WARN::Failed startup of context org.mortbay.jetty.webapp.WebApp

maven pom-maven 用Eclipse从svn检出的maven项目,再转为maven管理时,pom.xml报错,什么原因?

问题描述 maven 用Eclipse从svn检出的maven项目,再转为maven管理时,pom.xml报错,什么原因? Project build error: Non-resolvable parent POM: Could not find artifact com.bjTest:bjTest:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM

java-eclipse中多个maven项目集成和maven启动问题

问题描述 eclipse中多个maven项目集成和maven启动问题 多个maven object 每次都要install所有的jar 发布才不会报错. 而且修改一个简单的页面都要重启. 那位大神指导指导

maven 整合springmvc spring myatis整合报错

问题描述 maven 整合springmvc spring myatis整合报错 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at java.util.concurrent.FutureTask.

eclipse启动项目时遇到问题,报错!

问题描述 eclipse启动项目时遇到问题,报错! FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Connection timed out ERROR: JDWP Transport dt_socket failed to initialize,

myeclipse svn导入maven项目启动时报下面错误,求大神回答

问题描述 myeclipse svn导入maven项目启动时报下面错误,求大神回答 17:23:40 WARN [main] XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean w

maven 项目,通过 maven编译,在浏览器中打开报如下错误

问题描述 maven 项目,通过 maven编译,在浏览器中打开报如下错误:严重: Servlet.service() for servlet jsp threw exceptionjava.lang.LinkageError: loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different t

javaweb-Eclipse启动Tomcat的时候报错:ClassNotFoundException,题目写不开了

问题描述 Eclipse启动Tomcat的时候报错:ClassNotFoundException,题目写不开了 详细报错如下: 严重: Error configuring application listener of class org.framework.web.system.listener.InitListener java.lang.ClassNotFoundException: org.framework.web.system.listener.InitListener at org