File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB client issue (com.ibm.ws.security.auth.ContextManagerImpl.login) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB client issue (com.ibm.ws.security.auth.ContextManagerImpl.login)" Watch "EJB client issue (com.ibm.ws.security.auth.ContextManagerImpl.login)" New topic
Author

EJB client issue (com.ibm.ws.security.auth.ContextManagerImpl.login)

Ankit Thakkar
Ranch Hand

Joined: Apr 29, 2005
Posts: 33

Hi All,

I have deployed a EJB application on Websphere 6.1 application server, trying to get Initial Context to get EJB reference using JNDI. But while instantiating InitialContext object, it's giving some exception -

javax.naming.NamingException: Error during resolve [Root exception is java.lang.NullPointerException]
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1939)
...................................................
Caused by: java.lang.NullPointerException
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3233)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3225)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3014)

=====================================================================

I have disabled Administrative, Application, J2SE security in application server. still exception is thrown.

I observed one thing, while creating InitialContext, if I pass -
java.naming.security.principal=""
java.naming.security.credentials=""
in HashMap, then only it's throwing above mentioned exception.

If I skip these two parameters while creating HashMap it's going through. But we have one class in which these two parameters are present and values are coming from property file. So we can't change code to ignore these two parameters while creating InitialContext. As we don't have control on this class.

Please help me to resolve this issue.

Thanks,
Ankit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB client issue (com.ibm.ws.security.auth.ContextManagerImpl.login)
 
Similar Threads
Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION
Can't run first Session Bean : NameNotFoundException
Error in running EJB client code
JBoss 4.2.2 Server Starting Issue
System exception on UserTransaction.commit() , followed by RollbackException