jQuery in Action, 3rd edition
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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(ServletStubImpl.java:397)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:941)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:905)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:391)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:273)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
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: http://aspose.com/file-tools
subject: Where do to deploy JavaBeans...
It's not a secret anymore!