【问题标题】:Deploying WebServices with JBoss 7使用 JBoss 7 部署 Web 服务
【发布时间】:2012-07-07 03:52:31
【问题描述】:

我正在尝试使用 JBoss 7 部署 WebServices。我有一个带有 @WebServices 注释的类。但是,我不断收到来自 JBoss 的错误...

原因:org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011232:只允许一个 JAX-RS 应用程序类。 com.sun.jersey.api.core.ScanningResourceConfig com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey. api.core.ResourceConfig com.sun.jersey.api.core.servlet.WebAppResourceConfig com.sun.jersey.server.impl.application.DeferredResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api。 core.PackagesResourceConfig

这个神秘的其他应用程序在哪里?

【问题讨论】:

    标签: web-services jboss7.x


    【解决方案1】:

    看起来您可能在应用程序中捆绑了 Jersey。 JBoss AS7 使用 RESTEasy 来实现它的 JAX-RS。

    【讨论】:

    • 您的权利。我偶然告诉 IntelliJ 将 Jersey 捆绑到 WAR 中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-30
    • 2013-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多