【问题标题】:StackOverflowError coming when cxf security authentication webservice deployed in jboss 5.0在 jboss 5.0 中部署 cxf 安全认证 Web 服务时出现 StackOverflowError
【发布时间】:2013-01-22 08:34:57
【问题描述】:

在 jboss 5 中部署 web 服务,并在

中提到与 ws 身份验证相关的内容

beans.xml 文件。

相同的服务在 tomcat 6 中运行良好,当我部署相同的服务时

java.lang.StackOverflowError

在 jboss 5.in server.log 中除了这个错误我没有发现任何错误。

当我评论时它的工作

很好。

我怀疑 jars 与 cxf jars 和 jboss jars 冲突。

<jaxws:endpoint id="ping" implementor="cxfdemo.ws10.impl.PingServiceImpl"
              address="/PingService">

  <jaxws:inInterceptors>
        <bean id="xxx" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
            <property name="properties">
                <map>
                <entry key="action" value="UsernameToken"/>
                <entry key="passwordType" value="PasswordText" />
                </map>
            </property>
        </bean>
    </jaxws:inInterceptors>
     </jaxws:endpoint>

2013-01-22 03:20:08,667 INFO QuartzScheduler_BpmClusteredScheduler-错过了他们的

预定的发射时间。

2013-01-22 03:20:32,559 错误 http-0.0.0.0-38080-3 [org.apache.catalina.core.ContainerBase

.[jboss.web].[localhost].[/PingWS].[cxf]] Servlet.service() for servlet cxf 抛出异常

java.lang.StackOverflowError

at java.security.AccessController.doPrivileged(Native Method)

at java.io.PrintWriter.<init>(PrintWriter.java:78)

at java.io.PrintWriter.<init>(PrintWriter.java:62)


</code>

【问题讨论】:

  • 我也有同样的问题。你设法解决了吗?谢谢

标签: java jakarta-ee jboss5.x


【解决方案1】:

是的,冲突在于 JBoss 作为其 web 服务库的一部分附带的 jar。我尝试了以下方法并且成功了:

从 /deployers 中删除 jbossws.deployer
从 /deploy 中删除 jbossws.sar

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-24
    • 2021-12-02
    相关资源
    最近更新 更多