简体   繁体   English

在jboss 5.0中部署cxf安全认证Web服务时出现StackOverflowError

[英]StackOverflowError coming when cxf security authentication webservice deployed in jboss 5.0

deployed webservice in jboss 5 with ws authentication related stuff mentioned in 在jboss 5中部署了带有ws认证相关内容的webservice

beans.xml file. beans.xml文件。

same service worked well in tomcat 6 and when i deploy same service getting 相同的服务在tomcat 6中运行良好,当我部署相同的服务时

java.lang.StackOverflowError java.lang.StackOverflowError

in jboss 5.in server.log apart form this error i didn't find any error. 在jboss 5.in server.log中,除了此错误外,我没有发现任何错误。

when i comment from to then its working 当我评论从,然后它的工作

fine. 精细。

I suspect jars conflict with cxf jars and jboss jars. 我怀疑jar与cxf jar和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-that missed their 2013-01-22 03:20:08,667信息QuartzScheduler_BpmClusteredScheduler-错过了他们

scheduled fire-time. 预定的点火时间。

2013-01-22 03:20:32,559 ERROR http-0.0.0.0-38080-3 [org.apache.catalina.core.ContainerBase 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 threw exception 。[jboss.web]。[localhost]。[/ PingWS]。[cxf]] servlet cxf的Servlet.service()抛出异常

java.lang.StackOverflowError 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>

Yes, the conflict is with the jars that come with JBoss as part of its webservices library. 是的,冲突是JBoss作为其webservices库的一部分附带的jar。 I tried the following and it worked: 我尝试了以下方法,它起作用了:

Remove jbossws.deployer from /deployers 从/ deployers删除jbossws.deployer
Remove jbossws.sar from /deploy 从/ deploy删除jbossws.sar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 骆驼CXF-安全(身份验证) - Camel CXF - Security (Authentication) Apache CXF身份验证+ Spring安全性 - Apache CXF authentication + spring security 具有 Apache CXF 和基本身份验证的 Quarkus Web 服务 - Quarkus Webservice with Apache CXF and Basic Authentication Apache CXF 3.1.6 Web服务客户端-NTLM身份验证 - Apache CXF 3.1.6 webservice client - NTLM Authentication Spring CXF Webservice无法正确部署 - Spring CXF Webservice doesn't get deployed correctly 是否有JBoss 5.0的配置设置来控制部署ear文件的顺序? - Is there a configuration setting for JBoss 5.0 to control the order in which ear files are deployed? 使用Apache CXF Webclient时,是什么导致此ClassLoader StackOverflowError? - What is causing this ClassLoader StackOverflowError when using Apache CXF webclient? 在Unix环境下将应用程序部署在JBoss中时,如何实现Spring LDAP认证? - How to implement Spring LDAP authentication when application deployed in JBoss on unix environment? 尝试实现 JWT 时出现 Hibernate 的 StackOverflowError - StackOverflowError with Hibernate when trying to implement JWT Security 在Eclipse中使用Apache CXF生成Web服务时出现NullPointerException - NullPointerException when generating webservice with Apache CXF in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM