[英]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.