• 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

JNDI realm strange problem(Tomcat 6.0.16)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello , i will be really greateful if someone can help me on this.

i have my realm configuration in server.xml, every thing is fine i can login. but when i try to login the next morning it gives error

SEVERE: Exception performing authentication javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource fi le: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)

first i thought the cause of error is "JNDIRealm fails when server disconnects after time". Then I looked at the jndirealm code from apache there i found out "on connection close it reconnects".

i am very puzzled by this situation :it finds the ldap initial context first time,but not second time.
 
reply
    Bookmark Topic Watch Topic
  • New Topic