Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where do to deploy JavaBeans...  RSS feed

Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!