Meaningless Drivel is fun!
The moose likes Servlets and the fly likes Where do to deploy JavaBeans... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where do to deploy JavaBeans..." Watch "Where do to deploy JavaBeans..." New topic

Where do to deploy JavaBeans...

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
I am working on BEE weblogic server 5.0..
In one of the JSP file, i am accessing the bean, using the below code.
<jsp:useBean id="entry" class="coreservlets.SaleEntry" />

value='<%= request.getParameter("itemID") %>' />
JPS file name -- SaleEntry1.jsp. Located at <<instal_dir>>\myserver\public_html
Bean class name -- SaleEntry.class . Located at <<instal_dir>>\myserver\servletclasses\coreservlets ( Coreservlets is package name)
When i am loading the JSP file, am getting the below error.
Tue Sep 16 21:18:38 IST 2003:<E> <ServletContext-General> Servlet failed with ServletException
javax.servlet.ServletException: Servlet class: classes.weblogic.servlet.FileServlet could not be loaded - the requested
class wasn't found in the classpath
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
at weblogic.servlet.internal.ServletStubImpl.getServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(
at weblogic.servlet.internal.ServletContextManager.invokeServlet(
at weblogic.socket.MuxableSocketHTTP.invokeServlet(
at weblogic.socket.MuxableSocketHTTP.execute(
Please clarify, why am i getting the error?
Do i need to deploy Beans in any other directory, other than, <<instal_dir>>\myserver\servletclasses....
I tried to deploying the Beans at, <<instal_dir>>\myserver\classfiles...............
And i have added, <<instal_dir>>\myserver\classfiles, to the classpath too. Still i am getting the same error.
Thanks in Advance,

I agree. Here's the link:
subject: Where do to deploy JavaBeans...
It's not a secret anymore!