Two Laptop Bag*
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
Author

Where do to deploy JavaBeans...

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
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.


Narasimha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where do to deploy JavaBeans...
 
Similar Threads
Classpath question
***** ASSERTION FAILED *****[ getServlet() returned null!! ]
Jsp Using Weblogic
Unable to import the java file into the JSP file.
ServletContext-ges: Servlet failed with Exception