[jboss-user] [JBossWS] - Can't resolve WARN [WSSecurityHandler] Cannot obtain securi

summer.hill do-not-reply at jboss.com
Tue Sep 26 22:35:29 EDT 2006


Hi,

I am trying samples in the jbossws 1.0.2 samples pack for a jsr181ejb endpoint. No matter how many times I have looked at the configuration for the server security, I just cannot get rid of this error message.

Here is my jboss-wsse-server.xml file (same as samples)


  | 
  | <?xml version="1.0" encoding="UTF-8" ?> 
  | <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
  | 	<key-store-file>META-INF/wsse.keystore</key-store-file> 
  | 	<key-store-password>jbossws</key-store-password> 
  | 	<trust-store-file>META-INF/wsse.truststore</trust-store-file> 
  | 	<trust-store-password>jbossws</trust-store-password> 
  | 	<config>
  | 		<sign type="x509v3" alias="wsse" /> 
  | 		<requires>
  | 			<signature /> 
  | 		</requires>
  | 	</config>
  | </jboss-ws-security>
  | 
  | 

Here is the ejb code (the same as the samples):


  | 
  | package org.jboss.test.ws.samples.jsr181ejb;
  | 
  | import javax.annotation.security.RolesAllowed;
  | import javax.ejb.Remote;
  | import javax.ejb.Stateless;
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.HandlerChain;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.annotation.ejb.RemoteBinding;
  | import org.jboss.annotation.security.SecurityDomain;
  | import org.jboss.ws.annotation.PortComponent;
  | 
  | /**
  |  * Test the JSR-181 annotation: javax.jws.WebService
  |  *
  |  * @author Thomas.Diesler at jboss.org
  |  * @since 29-Apr-2005
  |  */
  | 
  | // standard JSR181 annotations
  | @WebService(name = "EndpointInterface", targetNamespace = "http://org.jboss.ws/samples/jsr181ejb", serviceName = "TestService")
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | 
  | // standard EJB3 annotations
  | @Remote(EJB3RemoteInterface.class)
  | @RolesAllowed("friend")
  | @Stateless
  | 
  | // jboss propriatary annotations
  | @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface")
  | @PortComponent(authMethod="BASIC", transportGuarantee="NONE")
  | @SecurityDomain("JBossWS")
  | @HandlerChain(file = "resource://config/ServerHandlers.xml", name = "SecureHandlerChain")
  | public class EJB3Bean01 implements EJB3RemoteInterface
  | {
  |    @WebMethod
  |    public String echo(String input)
  |    {
  |       return "received: " + input;
  |    }
  | }
  | 
  | 

And here is the ServerHandlers.xml file (same as samples)


  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <handler-config>
  |    <handler-chain>
  |       <handler-chain-name>SecureHandlerChain</handler-chain-name>
  |       <!--<handler>
  |                <handler-name>DeepInboundHandler</handler-name>
  |                <handler-class>org.jboss.test.ws.samples.jsr181ejb.DeepInboundHandler</handler-class>         
  |       </handler>-->
  |       <handler>
  |          <handler-name>WSSecurityHandlerInbound</handler-name>
  |          <handler-class>org.jboss.ws.wsse.WSSecurityHandlerInbound</handler-class>
  |       </handler>
  |    </handler-chain>
  | </handler-config>
  | 
  | 

I have full jboss debugging turned on, but there is no hint as to what the problem with the configuration might be. How can I get a better error message?

Thanks

James



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974389#3974389

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974389



More information about the jboss-user mailing list