File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes HTTP authentication on accessing WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "HTTP authentication on accessing WSDL" Watch "HTTP authentication on accessing WSDL" New topic

HTTP authentication on accessing WSDL

Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64

I'm trying to use HTTP authenitication when my WSDL is accessed. Authetication should only happen on user/pass and not on roles. During deploy time, I'm getting the following stacktrace in my JBoss 4.2.3:

I've looked into the source of the RoleBasedAuthorizationInterceptorFactory and on line 49, the following happens:

This could mean that the "securityAnnotation" variable, which is the SecurityDomain annotation of my web service, is not gathered.
These are my annotations in my web service class:

In the web.xml of my web app, I've configured the following:

My Jboss login-config.xml contains:

The props/ file exists.
I've also tried the approach given on, but without any result.
Tips, hints, etc. are very welcome!

SCJP 1.5, SCWCD 1.4, SCBCD 5
Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64
Guys, any help on this?

I've managed to get this thing working in a very small dummy application but this problem is still occuring in my companies application. It's a seam application running on JBoss 4.2.3. Could seam somehow be causing this nullpointer?

This is the dependency I use to get the EJB's working:
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Post the import statements in your EJB class. For 4.x it should be:

[My Blog] [JavaRanch Journal]
Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64
These are my imports regarding EJB's/Web Services:

The imports should be fine I guess.
I agree. Here's the link:
subject: HTTP authentication on accessing WSDL
It's not a secret anymore!