Maven 在pom.xml中配置Jetty出现'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded异常
2017-05-25 10:39
519 查看
pom.xml
解决方法:
把
改成
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.21</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <stopKey>foo</stopKey> <stopPort>9999</stopPort> <contextPath>/</contextPath> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>9090</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <webAppConfig> <contextPath>/</contextPath> </webAppConfig> </configuration> </plugin>
解决方法:
把
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
改成
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
相关文章推荐
- 解决使用maven的java web项目导入或新建添加pom配置后出现的有关问题 -cannot be read or is not a valid ZIP file
- Tomcat maven 插件启动出现tomcat\conf\tomcat-users.xml cannot be read异常解决方法
- Eclipse&Maven导入Maven项目后在pom.xml出现"Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEAS"
- maven项目pom.xml出现missing artifact org.aspectj....报错但是并不影响启动的处理方法
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- 解决“在eclipse中配置Tomcat时,出现Cannot create a server using the selected type的错误”的问题
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- maven在eclipse建立工程,运行出现Server IPC version 9 cannot communicate with client version 4错误
- eclipse web项目配置server.xml(maven)
- 异常:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
- 【Maven】pom.xml 配置 eclipse错误
- eclipse中pom.xml org.apache.maven.plugins报错的解决
- 在maven项目中使用apache cxf中遇到异常 java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
- 在eclipse中配置Tomcat时,出现Cannot create a server using the selected type的错误
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- 解决“在eclipse中配置Tomcat时,出现Cannot create a server using the selected type的错误”的问题
- Eclipse无法导入一些相关类的方法,出现Multiple markers at this line - The type javax.servlet.ServletContext cannot be resolved.异常