【问题标题】:Exception thrown when trying to deploy CAS maven overlay尝试部署 CAS maven 覆盖时抛出异常
【发布时间】:2014-12-07 19:44:15
【问题描述】:

我正在尝试在 Jboss 中本地设置 CAS 服务器。我正在尝试部署此链接中描述的 Maven 覆盖。

https://github.com/UniconLabs/simple-cas4-overlay-template

当我尝试部署 cas.war 文件时,我遇到了一些错误,我设法通过添加以下依赖项来修复它们。

     <dependency>
        <groupId>org.restlet.jee</groupId>
        <artifactId>org.restlet.ext.spring</artifactId>
        <version>2.2.2</version>
    </dependency>
    <dependency>
        <groupId>org.restlet.jee</groupId>
        <artifactId>org.restlet</artifactId>
        <version>2.2.2</version>
    </dependency>
    <dependency>
        <groupId>org.restlet.jee</groupId>
        <artifactId>org.restlet.ext.servlet</artifactId>
        <version>2.2.2</version>
    </dependency>

现在我收到此错误:

原因:org.springframework.beans.BeanInstantiationException:无法实例化bean类[org.restlet.ext.spring.SpringRouter]:构造函数抛出异常;嵌套异常是 java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler

我试图找到具有此类的依赖项,但没有找到。我做错了什么?

我的最终目标是将 CAS 与 Sprint 安全性集成。 提前致谢。

【问题讨论】:

    标签: java maven spring-security jboss7.x cas


    【解决方案1】:

    我发现了问题。这是因为在 jboss wildfly 的模块下没有指定“com/sun/net/httpserver/HttpHandler”。

    要解决此问题,请在 /modules/system/layers/base/sun/jdk/main/module.xml 的路径下添加以下内容:

    <path name="com/sun/net/httpserver"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-25
      相关资源
      最近更新 更多