Hi,
I'm trying call a Session Bean from a
JSP.
Every time I call it I get the following error:-
javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'mypackage.Travel' found for the ejb-ref Travel
I have checked all of the following files:-
ejb-jar.xml,
application-client.xml,
orion-application-client.xml,
orion-ejb-jar.xml,
orion-web.xml and web.xml
for any refrence to any of the following:-
<ejb-name>Travel</ejb-name>
<ejb-ref-name>Travel</ejb-ref-name>
<ejb-ref-mapping name="Travel" location="mypackage/TravelBean" />
<session-deployment name="Travel" location="mypackage/TravelBean" />
Within my JSP file I use:-
final
String location = "java:comp/env/Travel";
Object boundObject = context.lookup(location);
Can anybody help?.