[JBossWS] - Integrating Security feature in web service call with JBoss
by avijitacclaris
My assignment includes integrating security feature in web servcie call.We use JBoss 4.0.3 SP1.
I have added a header in the SOAP request and in the server side we need to process the header for whic we have added a handler.
The stack trace is:
Fault - org.jboss.webservice.server.ServiceException: Cannot initialize webservice; nested exception is:
javax.xml.rpc.JAXRPCException: Cannot initialize handler chain
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/%7dServer.generalException
faultSubcode:
faultString: Cannot initialize webservice; nested exception is:
javax.xml.rpc.JAXRPCException: Cannot initialize handler chain
faultActor:
faultNode:
faultDetail:
Caused by: javax.xml.rpc.JAXRPCException: Cannot initialize handler chain
at org.jboss.webservice.handler.HandlerChainBaseImpl.addHandlersToChain(HandlerChainBaseImpl.java:99)
at org.jboss.webservice.handler.HandlerChainBaseImpl.(HandlerChainBaseImpl.java:71)
at org.jboss.webservice.handler.ServerHandlerChain.(ServerHandlerChain.java:34)
at org.jboss.webservice.server.InvokerProvider.initHandlerChain(InvokerProvider.java:143)
at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:98)
... 30 more
Caused by: java.lang.ClassCastException: employee.WSSESecurityEnvironmentHandler
at org.jboss.webservice.handler.HandlerChainBaseImpl.addHandlersToChain(HandlerChainBaseImpl.java:88)
... 34 more
faultActor:
faultNode:
faultDetail:
Please give me a solution.Thanks in advance.
Avijit
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065311#4065311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065311
17 years, 8 months
[JBossWS] - Force a library to use a jar
by Mpulse
Hello
We have some session beans that rely on an external library which in turn relies on Apache Axis. It cannot use ConnectionImplementations or MessageImplementations from org.jboss.ws because of some explicit casts.
We use jboss-4.2.0.GA with jbossWs 2.0 so we have three reference to javax.xml.soap.*, one in rt.jar in the jvm6, one in jboss-saaj.jar in JBOSS/lib/endorsed/ and the last in Axis' saaj.jar.
We would like this one single deployment unit to use the axis libraries without interferring with the SOAP libraries in jboss-saaj.jar.
How do we force this and only this library to use Axis' saaj.jar? It seems that libraries in JBOSS_HOME/lib/endorsed supercede anything in the deployment unit classpath like app.ear/lib, webapp.war/WEB-INF/lib, myejb.jar/lib with or without adding the required libraries to the manifest classpath.
Any ideas?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065278#4065278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065278
17 years, 8 months