I'm currently switching a EJB WebService from JBoss.NET to JBossWS (4.0.4GA)
using JSR-181/EJB3 and now i'm running into problems.
The old JBoss.NET Version had a .NET Client which authenticates via BASIC
Authentication (and it works btw).
In the new JSR-181 Version i used the @PortComponent Annotation (with
authMethod="BASIC"), but i doesn't work so far. The client is the same .NET
program, only updated to the new wsdl. From server.log:
| 2006-06-08 14:15:52,760 TRACE
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Excuting query: SELECT
user_pass FROM Users WHERE UserID=? AND Expires>=CURRENT_DATE, with username:
null
| ...
|
| 2006-06-08 14:15:52,776 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new
SOAPFaultException
[code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=javax.ejb.EJBAccessException:
Authentication failure,actor=null,detail=null]
| 2006-06-08 14:15:52,776 ERROR
[org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
| javax.ejb.EJBAccessException: Authentication failure
| at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:68)
| at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:71)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| ...
|
The SessionBean:
| @Stateless
| @WebService(
| name="MyService",
| serviceName="MyService"
| )
| @SOAPBinding(
| style=SOAPBinding.Style.RPC,
| use=SOAPBinding.Use.LITERAL
| )
| @PortComponent(authMethod="BASIC")
| @SecurityDomain("myRealm")
| @RolesAllowed({"Admin", "Operator", "User"})
| public class WebServiceEJB implements WebServiceIf
| {
| ...
| }
|
Any idea what's going wrong?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949832#3949832
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949832
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user