• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Unable to get Transaction Manager

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi volks

i want to do a secure lookup from a standalone client



but here i get the exception Unable to get Transaction Manager ....

Exception


What is worng ??
Has anyone an idea to do this in a different way ??

greez Chris
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was just wondering if the credentials are getting authentication through DB ?.. what is "stundenplanSecurity"..?.. any custom protocol ?
 
Chris Kie
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have tried several things ... the final version that doesn't work the way i want it to is



Exception:


the auth.conf file looks like


I have also tried this link and used ClientLoginModule in front of the DatabaseServerLoginModule ;(
Example for auth.conf

thanks for your help ...
 
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
Does your client classpath have any jndi.properties? If yes, what are its contents?
 
Chris Kie
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using the following properties




 
Jaikiran Pai
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
That doesn't look like a jndi.properties file. How are you passing those properties? From command line? By the way, java.naming.factory.initial property should be org.jnp.interfaces.NamingContextFactory instead of org.jboss.security.jndi.LoginInitialContextFactory.
 
Chris Kie
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm passing these properties through Eclipse Run-configuration VM-arguments (I think eclipse is using this to preform to command line )

You are right java.naming.factory.initial shoudl be org.jnp.interfaces.NamingContextFactory but it this is overwritten in my main


How do i use an jndi.properties file ... how does this look like and where i do i have to put this ?
is it nessesary to config anything ?


thanks for your help and happy new year ;)
 
Chris Kie
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All in all I don't think that this is the problem ...
why i don't get an transaction manager with the DatabaseServerLoginModule ...
 
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic