[jboss-user] [JBoss Web Services] New message: "Re: JbossWS username authentication not working"
Bonnie Kenison
do-not-reply at jboss.com
Fri Feb 26 16:13:55 EST 2010
User development,
A new message was posted in the thread "JbossWS username authentication not working":
http://community.jboss.org/message/528912#528912
Author : Bonnie Kenison
Profile : http://community.jboss.org/people/bkenison
Message:
--------------------------------------------------------------
Well, something new at least....
Now I am failing on all attempts, regardless of the username/password combination. Here is the exception produced:
c:\>java com.xxx.testClient.TestWSClient test
Invoking the sayHello operation on the port.
javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:397)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:303)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy15.ping(Unknown Source)
at com.utah.webservice.testClient.TestWSClient.doTest(TestWSClient.java:47)
at com.utah.webservice.testClient.TestWSClient.main(TestWSClient.java:19)
Caused by: java.io.IOException: Could not transmit message
at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:264)
at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:291)
... 5 more
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Invalid HTTP server response
[403] - Access to the requested resource has been denied. Response: Access to the requested resource has been denied/403
.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:242)
... 8 more
Caused by: org.jboss.ws.WSException: Invalid HTTP server response [403] - Access to the requested resource has been deni
ed
at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75)
at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
... 13 more
Here is my jbossws-roles.properties file:
# A sample roles.properties file for use with the UsersRolesLoginModule
kermit=friend
wstest=friend
jbossws-users.properties:
# A sample users.properties file for use with the UsersRolesLoginModule
kermit=thefrog
Do I need to define the role in the webservice java file somewhere?
Bonnie
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528912#528912
More information about the jboss-user
mailing list