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.

[2301 byte] By [PerryAa] at [2007-11-26 13:12:19]
«« solaris 9
»» hi
# 1
Hi,You can get this by putting your jar file in YourApp/WEB-INF/lib folderstill if you are not getting then extract the jar file in YourApp/WEB-INF/classes folderokbye
b.thirupathi.reddya at 2007-7-7 17:29:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I tried these folders first. It turns out I was not building the EJB properly. I Needed to follow the tutorial.Thanks,
PerryAa at 2007-7-7 17:29:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...