- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在升级到 JBoss 7.1,不幸的是我无法部署我的应用程序。我想使用 Apache CXF 2.6.7,它是我们 war 项目的依赖项,而不是安装在 JBoss 7.1 模块中的 CXF。不幸的是,WAR 的部署失败并出现以下警告和异常:
10:39:39,511 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "example.war"
10:39:49,021 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jaxb-api.jar in "/example.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,024 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry activation.jar in "/example.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,025 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jsr173_1.0_api.jar in "/example.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,027 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jaxb1-impl.jar in "/example.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,029 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jaxb-api.jar in "/example.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,031 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jaxb-impl.jar in "/example.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,033 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry jsr173_1.0_api.jar in "/example.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,035 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry activation.jar in "/example.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,038 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry activation.jar in "/example.war/WEB-INF/lib/mail-1.4.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,041 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry xml-apis.jar in "/example.war/WEB-INF/lib/serializer-2.7.1.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,047 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry xercesImpl.jar in "/example.war/WEB-INF/lib/xalan-2.7.0.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,049 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry xml-apis.jar in "/example.war/WEB-INF/lib/xalan-2.7.0.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,050 WARN [org.jboss.as.server.deployment] (MSC service thread 1-16) Class Path entry serializer.jar in "/example.war/WEB-INF/lib/xalan-2.7.0.jar" does not point to a valid jar for a Class-Path reference.
10:39:49,127 WARN [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015893: Encountered invalid class name 'org.springframework.context.ApplicationContext,org.springframework.beans.BeansException' for service type 'org.apache.cxf.bus.factory'
10:39:49,805 WARN [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
10:39:49,826 WARN [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.eclipse.jetty.continuation.Servlet3Continuation$1 due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.eclipse.jetty.continuation.Servlet3Continuation$1
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
10:39:49,854 WARN [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.eclipse.jetty.continuation.Servlet3Continuation$2 due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.eclipse.jetty.continuation.Servlet3Continuation$2
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
我的 jboss-deployment-structure.xml 如下:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="org.jboss.as.jmx"/>
</dependencies>
<exclusions>
<module name="javaee.api" />
<module name="org.hibernate"/>
<module name="javax.xml.bind.api"/>
<module name="org.apache.cxf"/>
<module name="org.jboss.ws.api"/>
<module name="jorg.jboss.ws.spi"/>
<module name="com.sun.xml.bind"/>
<module name="org.apache.xalan"/>
<module name="javax.mail.api"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
如何解决警告和错误并部署我的应用程序?
最佳答案
您应该排除为您的部署激活 web 服务子系统将其添加到 META-INF/jboss-deployment-structure.xml
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<!-- exclude-subsystem prevents a subsystems deployment unit processors running on a deployment -->
<!-- which gives basically the same effect as removing the subsystem, but it only affects single deployment -->
<exclude-subsystems>
<subsystem name="webservices" />
</exclude-subsystems>
<deployment>
</jboss-deployment-structure>
或者您可以转到 standalone.xml 并在那里删除子系统。为此,您需要删除
<subsystem xmlns="urn:jboss:domain:webservices:1.x">
...
...
<subsystem>
部分配置,顶部的扩展部分可以保留,无论哪种方式都不会受到伤害。或者您可以使用 CLI 连接到服务器并运行
/subsystem=webservices:remove()
在任何情况下,我都建议阅读一些关于 AS7 中的类加载的内容 https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
请注意,exclude-subsystems 功能和 deployment-strucure:1.2 是在 7.1.2 中添加的,因此不适用于 7.1.1。
关于jboss - 我如何使用 Apache CXF 2.6.7 作为我的 war 项目的依赖项而不是安装在 JBoss 7.1 模块中的 CXF?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18714655/
当我尝试从 netbeans 构建 ear 项目时,为什么 maven ear 插件会运行 war:war(插件目标) 我的过程: 我右键单击 ear 项目(其中列出了 war 依赖项)并首先清理,然
在 Java EE 环境下,我构建了一个包含多个 JSP 文件的网页。让我们假设包含的 JSP 之一是 header.jsp。可以与 Stackoverflow 使用的非常相似,显示有关用户、链接等的
我想知道使用 maven package phase 创建的 war 文件是否等同于使用 maven war plugin war:war goal 创建的 war 文件。 假设我们有一个像这样的 p
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我想根据配置文件(dev 或 prod)配置属性文件,但是属性文件的位置未正确构造。我在 SO 上找到了类似问题的答案,但这些答案都没有帮助解决这个问题。 我收到的错误如下: Error loadin
我想知道部署的“WAR”文件会分解到 JBoss 7 中的哪个位置?在 JBoss 4.3 中,它会在“tmp”文件夹中的某处爆炸,但我无法找到它在 JBoss 7 中爆炸到的位置。谢谢 最佳答案 它
我想创建一个多模块项目,其中多个模块属于 war 类型。例如 somejars servletsAndJsps springMVCapp angularJsApp 其中 3 个可以作为 WAR 应用程
我必须在单元测试期间测试托管在 Tomcat 上的 Web 服务的代码覆盖率。我将进行手动测试意味着我将在我的 http 请求中传递不同的参数值,并且需要为发送到服务器的每个请求的每个测试用例提供覆盖
我是一个 Jboss Wildfly 8.2 实例我有一个 webapp ROOT.war和另一个 OTHER.war我需要类(class) OtherXYZ.class那是里面 OTHER.war能
因此,在 VPS Ubuntu 服务器上尝试使用 Maven 进行全新安装时出现此错误。 我已经安装了必要的元素来制作它,但仍然无济于事。 root@iHRS:~/hapi-fhir-jpaserve
健身download page只有 standalone.jar 选项,这也是说明的目的。 是否有可能在单独的应用程序服务器上安装 FitNesse,例如 Tomcat?没有直接下载任何 war /耳
我想在 JBoss 4.2 中部署一场 war ,但我无法控制它的目录,所以我无法替换 jsf-impl.jar和 jsf-api.jar . 我的问题是:如何配置war才能依赖于jsf-impl.j
我想在将 war 任务输出部署到存储库之前设置它的文件名。 例如项目名称是 abc最初它会导致 abc-1.0.0-SNAPSHOT.war 但我希望应该有两个生成的内容相同的 war 文件: def
我有一个 Maven pom,它使用 war 。但实际上,我不想构建 war 文件,我只想收集所有依赖的 jar 并创建一个完整的部署目录。 所以我正在运行 war:exploded生成部署目录的目标
注意:我无法将它们打包到 EAR 中。这里有一些限制。 我有 2 个 war 文件。 help.war 和 helpConnect.war 两者都放置在 GlassFish 服务器的同一域中。 从 h
我有一个项目,其中 3 个 war-modules 被打包在一个 ear-module 中。我的问题是每个库 jar 都包含在每个 war 模块以及 ear 模块中,这使得生成的 ear 文件非常大(
我有一个在 artifactory 中发布的第三方打包 war 。我需要创建一个 gradle 作业,它将从 artifactory 中获取 war,将其分解到一个临时目录,将一些自定义库(jars)
我们有一个运行当前 Web 服务的 Apache tomcat 服务器。我们试图部署第二个版本(进行了一些调整),但是当我们复制 war 文件时,第一个版本停止工作。为什么?? 最佳答案 您的 Web
我有几个 tomcat 应用程序,使用 .war 文件部署在 tomcat 中。尽管这些 war 彼此独立,但它们都是更大概念/应用程序的一部分,而且经常,一场 war 需要调用另一场 war 的代码
过去,Web 应用程序的静态资源始终位于 src/main/webapp 下。 最近,Spring Initializr为我创建了一个新的项目布局,因此发现资源应该位于src/main/resourc
我是一名优秀的程序员,十分优秀!