• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where do to deploy JavaBeans...

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..
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" />

<jsp:setProperty
name="entry"
property="itemID"
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
d:\weblogic\myserver\servletclasses;d:\weblogic\myserver\classfiles;D:\weblogic\myserver\public_html
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,
Narasimha.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic