Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

j2ee.clientName in jndi.properties

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got some EJB's deployed and they are working just fine. But if I want to setup JAAS and try to login I get this error:

If I remove this line in my jndi.properties file I get this error:



Why should the clientname be bound? And how do I get this done? I couldn't find anything in the free/commercial documentation, nor on any of the fora.
Thanks in advance!
 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is ProductClient your JAAS loginmodule config? It should be set up in conf/login-config.xml.
 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

First of all thanks for the response... I've been bashing my head against the wall for the last few days...
I changed some of the jndi names, but I'll show all relevant code..
In my login-config.xml I have these lines (I would like it to get to work with one bean, so I can expand it to the others)


so the security domain is called 'pas'
In my EJB-jar.xml I defined some roles and attached them to the ProductEJB and my jboss.xml looks like this:

I believe that's all for the server side..
On the client side I have the auth.conf file:

and my jndi.properties:

And I'm getting an error that 'pas' is not bound:

If I leave the last line out of jndi.properties (j2ee.clientName) he complains that he can't find that line...
Now I'm wondering what I'm doing wrong.. I've been all over the net and read most of the commercial/free JBoss documentation and still can't find an answer...
Thanks for your time! It's really appreciated!!!
[ March 17, 2004: Message edited by: Sebastiaan Kortleven ]
 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've gotten a few steps further.. I added an application-client.xml and a jboss-client.xml to the client jars META-INF map but I keep getting the same error...

 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know much about client-side stuff, but I'll give you my best guesses. The client-side exception shows that the client can't find the JAAS JNDI resource, right?
Either your JNDI resource is invisible to the client or the JNDI resource died on startup. Have you checked the log for startup exceptions?
If it's invisible, perhaps you have to put the whole JNDI string in there instead of just 'pas' - e.g. jaas/pas
Good luck.
Adam
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if you have found the solution to your problem. If you haven't or for those who have problem with j2ee.clientName issue you can refer to this link, http://www.nlimbo.net/archive/2004/02/23/jboss_client
It not a step-by-step nor complete solution but if you have been working on the problem you will find it useful.

/lim/
 
We don't have time for this. We've gotta save the moon! Or check this out:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic