• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP authentication on accessing WSDL

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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/jbossws-users.properties file exists.
I've also tried the approach given on http://jbossws.jboss.org/mediawiki/index.php?title=Authentication, but without any result.
Tips, hints, etc. are very welcome!
 
Tim Storms
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

@SecurityDomain("mydomain")



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

 
Tim Storms
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are my imports regarding EJB's/Web Services:



The imports should be fine I guess.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic