- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在开发过程中使用类似 jetty 的应用程序服务器。直到昨天一切正常,但今天早上当我尝试执行 jetty:run 命令时,出现以下错误:
2014-05-27 09:38:44.472:WARN::FAILED org.eclipse.jetty.server.handler.ContextHandlerCollection@1ec50ba: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook
2014-05-27 09:38:44.473:WARN::FAILED org.eclipse.jetty.server.handler.HandlerCollection@1a81175: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook
2014-05-27 09:38:44.484:INFO::Started SelectChannelConnector@0.0.0.0:8081 STARTING
2014-05-27 09:38:44.484:WARN::FAILED org.mortbay.jetty.plugin.JettyServer@bd238b: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.782s
[INFO] Finished at: Tue May 27 09:38:44 CEST 2014
[INFO] Final Memory: 31M/74M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:7.4.2.v20110526:run (default-cli) on project vaadin-woe: Execution default-cli of goal org.mortbay.jetty:jetty-maven-plugin:7.4.2.v20110526:run failed: A required class was missing while executing org.mortbay.jetty:jetty-maven-plugin:7.4.2.v20110526:run: org/apache/poi/ss/usermodel/Workbook
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.mortbay.jetty:jetty-maven-plugin:7.4.2.v20110526
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/myUser/.m2/repository/org/mortbay/jetty/jetty-maven-plugin/7.4.2.v20110526/jetty-maven-plugin-7.4.2.v20110526.jar
[ERROR] urls[1] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-webapp/7.4.2.v20110526/jetty-webapp-7.4.2.v20110526.jar
[ERROR] urls[2] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-xml/7.4.2.v20110526/jetty-xml-7.4.2.v20110526.jar
[ERROR] urls[3] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-servlet/7.4.2.v20110526/jetty-servlet-7.4.2.v20110526.jar
[ERROR] urls[4] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-security/7.4.2.v20110526/jetty-security-7.4.2.v20110526.jar
[ERROR] urls[5] = file:/C:/Users/myUser/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.jar
[ERROR] urls[6] = file:/C:/Users/myUser/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[7] = file:/C:/Users/myUser/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.5.1/maven-plugin-tools-api-2.5.1.jar
[ERROR] urls[8] = file:/C:/Users/myUser/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
[ERROR] urls[9] = file:/C:/Users/myUser/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
[ERROR] urls[10] = file:/C:/Users/myUser/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar
[ERROR] urls[11] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-plus/7.4.2.v20110526/jetty-plus-7.4.2.v20110526.jar
[ERROR] urls[12] = file:/C:/Users/myUser/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar
[ERROR] urls[13] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-jndi/7.4.2.v20110526/jetty-jndi-7.4.2.v20110526.jar
[ERROR] urls[14] = file:/C:/Users/myUser/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar
[ERROR] urls[15] = file:/C:/Users/myUser/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
[ERROR] urls[16] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-jmx/7.4.2.v20110526/jetty-jmx-7.4.2.v20110526.jar
[ERROR] urls[17] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-util/7.4.2.v20110526/jetty-util-7.4.2.v20110526.jar
[ERROR] urls[18] = file:/C:/Users/myUser/.m2/repository/org/mortbay/jetty/jsp-2.1-glassfish/2.1.v20100127/jsp-2.1-glassfish-2.1.v20100127.jar
[ERROR] urls[19] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jdt/core/compiler/ecj/3.5.1/ecj-3.5.1.jar
[ERROR] urls[20] = file:/C:/Users/myUser/.m2/repository/org/mortbay/jetty/jsp-api-2.1-glassfish/2.1.v20100127/jsp-api-2.1-glassfish-2.1.v20100127.jar
[ERROR] urls[21] = file:/C:/Users/myUser/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
[ERROR] urls[22] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-jsp-2.1/7.4.2.v20110526/jetty-jsp-2.1-7.4.2.v20110526.jar
[ERROR] urls[23] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-annotations/7.4.2.v20110526/jetty-annotations-7.4.2.v20110526.jar
[ERROR] urls[24] = file:/C:/Users/myUser/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
[ERROR] urls[25] = file:/C:/Users/myUser/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar
[ERROR] urls[26] = file:/C:/Users/myUser/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar
[ERROR] urls[27] = file:/C:/Users/myUser/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[28] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-start/7.4.2.v20110526/jetty-start-7.4.2.v20110526.jar
[ERROR] urls[29] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-websocket/7.4.2.v20110526/jetty-websocket-7.4.2.v20110526.jar
[ERROR] urls[30] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-server/7.4.2.v20110526/jetty-server-7.4.2.v20110526.jar
[ERROR] urls[31] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-continuation/7.4.2.v20110526/jetty-continuation-7.4.2.v20110526.jar
[ERROR] urls[32] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-http/7.4.2.v20110526/jetty-http-7.4.2.v20110526.jar
[ERROR] urls[33] = file:/C:/Users/myUser/.m2/repository/org/eclipse/jetty/jetty-io/7.4.2.v20110526/jetty-io-7.4.2.v20110526.jar
[ERROR] urls[34] = file:/C:/Users/myUser/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.poi.ss.usermodel.Workbook
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
2014-05-27 09:38:45.092:INFO:/vaadin-woe:Shutting down log4j
2014-05-27 09:38:45.096:INFO:/vaadin-woe:Closing Spring root WebApplicationContext
我认为错误可能是一些损坏的 jar,然后我从本地存储库中删除了以下文件夹:
org->eclipse->jetty
org->mortbay->jetty
org->apache->poi
前两个已经下载(从我的 Artifact ),而 poi 还没有下载,我还得到上面的错误。
我该如何解决这个问题?
最佳答案
把插件放在pom里面
然后使用mvn install
尝试通过mvn jetty:run
命令行运行jetty
注意:大多数 eclipse 插件都有一些问题
关于java - jetty 不启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23883939/
在没有指定上下文和上下文处理程序的情况下启动 jetty 实例是否正确,然后在服务器启动后继续向其添加上下文。尽管我能够使用可变 HandlerCollection 执行此操作并且日志显示服务器和上下
在没有指定上下文和上下文处理程序的情况下启动 jetty 实例是否正确,然后在服务器启动后继续向其添加上下文。尽管我能够使用可变 HandlerCollection 执行此操作并且日志显示服务器和上下
我正在尝试让 Jetty 在我的 Ubuntu 上自动启动。 我已经完成了这些命令: cp /opt/jetty/bin/jetty.sh /etc/init.d update-rc.d jett
我是 Jetty 和客户端/服务器架构的新手。 我设法在 Eclipse 中编写了一个 jetty 服务器,它可以工作。 但是我怎样才能停止 jetty 服务器呢?我听说过 stop.jar 和 st
我已经使用Jetty / tomcat应用服务器使用Spring Web应用程序工作了大约两年了,但是让我感到困惑的是如何在这些服务器中处理多个请求。我知道 Spring 有助于单例,但我的理解仅限于
我正在尝试使用 jetty 来使用 maven 托管一个简单的 helloworld servlet。我很困惑。 我关注了这些 instructions ,但是当我发出 mvn jetty:run ,
我正在使用 Jetty 9,我有 jetty.base 和 jetty.home,我想知道我什么时候启动 jetty,它以什么样的顺序调用 jetty.base 和 jetty.home,我的意思是一
我有一个 Ubuntu 服务器 10.10 64 位 在 上运行 Web 应用程序 jetty 6.1.24-6 在 Sun 的 JVM ,两者都是从标准 Ubuntu 存储库安装的。 我正在尝试查找
我在集成测试中使用 ShrinkWrap 启动 Jetty 服务器。 问题: 当我启动我的测试 jetty 服务器而不是制作我的 Controller 模型时 - 模型不起作用! 我认为原因是不同的类
使用Gradle帮助运行Jetty 9 我已经看到了在how-to-run-jetty-7-with-specified-war-with-groovy-gradle和setting_up_embed
我正在将一个项目打包到 docker jetty 镜像中,并且我正在尝试访问日志,但没有访问日志。 文件 FROM jetty:9.2.10 MAINTAINER Me "me@me.com" ADD
有没有办法解决jetty引起的文件锁定问题?完全来自 gradle ? 一些澄清: 使用 Gradle Jetty plugin 时通过运行 gradle jettyRun, jetty 导致静态资源
我最近才开始使用 Java(我最近的大部分经验都在 .NET 中)。作为这项工作的一部分,我一直在对 Jetty 和 Tomcat 进行一些比较。 我认为在我们的环境中 Tomcat 的一个功能是内置
我已将 Jetty 嵌入到 Java 应用程序中,并在 Jetty 服务器对象的实例上调用 start() 方法(在设置描述静态和动态 Web 内容位置的处理程序列表之后)。 start() 调用会阻
我正在使用 Jetty 部署生产网站。假设我的网站是 foo.com 当我将浏览器指向一个不存在的上下文(比如 foo.com/notavailable)时,Jetty 会显示一个错误页面,其中包含部
我想使用 Jetty 的嵌入式版本创建一个应用程序。不幸的是,我找不到有关我需要这样做的 jar 文件的任何信息。 Maven 存储库中有几个( http://repo2.maven.org/mave
This answer explains how the server version header can be completely removed通过使用 HttpConfiguration.s
有人可以告诉我DispatcherType在做什么吗? 似乎是重要的配置。 指向ServletContextHandler#addFilter之类的东西对类的使用也没有帮助,对我来说,“ aa”是明智
我正在尝试使用jetty gradle插件运行Jetty服务器进行功能测试。但是,我得到了java.lang.IllegalArgumentException: Object is not of ty
我需要在gradle构建中创建多种不同的模式来运行 jetty 。 它们的系统属性和类路径不同。 如何使用Gradle Jetty插件进行操作? 最佳答案 您可以创建JettyRun类型的多个任务。要
我是一名优秀的程序员,十分优秀!