I am trying to access a bean from a servlet, and I get a Naming Exception(Unable to resolve name), when I do an InitialContext.lookup() call. The same code works in a WebSphere environment, but throws an exception in the WebSphere Test Environment from VisualAge. I have the classpath correctly for the servlet engine. Does anyone know why and how to solve this?
Thanks in advance
-
Naming Exception in Servlet (2 messages)
- Posted by: Usha Iengar
- Posted on: February 08 2002 09:34 EST
Threaded Messages (2)
- Naming Exception in Servlet by slim chaabane on February 08 2002 13:20 EST
- Naming Exception in Servlet by Nat Paramasivam on February 11 2002 12:28 EST
-
Naming Exception in Servlet[ Go to top ]
- Posted by: slim chaabane
- Posted on: February 08 2002 13:20 EST
- in response to Usha Iengar
call me at 1-888-305-0041 my extension :2250
I have testing tool for all EJBs with the exception of Jsp for now and we have a new release covering Jsp J2EE next week ...
If you want you can download the tool Jtest 4.1 at
http://parasoft.com/psftp
and call me to get a key...
we will run the ejb together on line and see what we can do for you.
PS: Are you familiar w/ DBC( design by contract)? -
Naming Exception in Servlet[ Go to top ]
- Posted by: Nat Paramasivam
- Posted on: February 11 2002 12:28 EST
- in response to Usha Iengar
You should start your naming server in WTE before starting your EJB servers.
so that EJB lookup names will be registered in the Naming Server.
(If you start the other way around, it may not work).