StackOverflow在jboss 5.0中部署cxf安全身份验证Web服务时出现错误



在 JBoss 5 中部署了 Web 服务,其中提到了与 WS 身份验证相关的东西

豆.xml文件。

相同的服务

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

java.lang.StackOverflowError

在 JBoss 5.in 服务器中.log除了此错误之外,我没有发现任何错误。

当我评论从到然后它的工作

好。

我怀疑罐子与 cxf 罐子和 jboss 罐子冲突。

<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 信息 QuartzScheduler_BpmClusteredScheduler-那错过了他们的

预定的火灾时间。

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

.[jboss.web].[本地主机]。[/平WS]。[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>

是的,冲突在于 JBoss 作为其 Web 服务库的一部分附带的 jar。我尝试了以下方法,它奏效了:

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

相关内容

最新更新