error:ejb package does not exist
I seem to be having a problem with recognizing my EJB packages. I tried putting some quick & dirty java code directly into a jsp to see if I can use the EJB correctly.I keep getting compile errors that the package is not there:
testEJB_jsp.java:8: package com.hs.ejbs does not exist import com.hs.ejbs.*;
testEJB_jsp.java:66: package com.hs.ejbs does not exist
com.hs.ejbs.XreviewsLocalHome rv;
^
testEJB_jsp.java:73: package com.hs.ejbs does not exist
rv = (com.hs.ejbs.XreviewsLocalHome) c.lookup("java:comp/env/ejb/XreviewsBean");
I have tried putting the jar files in several locations and adding those locations to my class path. Apparently I still do not have the right path there.
Here is my code:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="javax.ejb.*" %>
<%@page import="javax.naming.*" %>
<%@page import="com.hs.ejbs.*" %>
<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>testEJB</title>
</head>
<body>
<%
SessionContext context;
com.hs.ejbs.XreviewsLocalHome rv;
try{
javax.naming.Context c =new javax.naming.InitialContext();
rv = (com.hs.ejbs.XreviewsLocalHome) c.lookup("java:comp/env/ejb/XreviewsBean");
}catch(Exception e){
out.println("ejb retrieval error e="+e);
}
out.println("made it past the ejb retrieval code");
%>
</body>
</html>
Assistance will be greatly appreciated.

