This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to set up weblogic for servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to set up weblogic for servlet" Watch "how to set up weblogic for servlet" New topic

how to set up weblogic for servlet


Joined: Jun 21, 2002
Posts: 2
I installed weblogic 6.1. everything is fine.
then i followed link
to deploy jsp, html and servlet.
jsp and html is fine, but i never get servlet work.
can somebody help me?
my step is:
cd c:\bea\wlserver6.1\config\mydomain\application\DefaultWebApp\WEB-INF
mkdir classes
edit servlet as follow:
import javax.servlet.*;
import javax.servlet.http.*;
public class SimpleServlet extends HttpServlet
/** * Handle the HTTP GET method by building a simple web page. */
public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{ PrintWriter out;
String title = "Simple Servlet Output";
// set content type and other response header fields first
// then write the data of the response
out = response.getWriter();
out.println("<H1>" + title + "</H1>");
out.println("<P>This is output from SimpleServlet.");
} }

and then copy SimpleServlet.class to c:\bea\wlserver6.1\config\mydomain\application\DefaultWebApp\WEB-INF\classes

modify c:\bea\wlserver6.1\config\mydomain\application\DefaultWebApp\WEB-INF\web.xml
as follow:
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "">;

start weblogicserver.
didn't work.
can somebody help me find the problem?
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
Don't get me started about those stupid light bulbs.
subject: how to set up weblogic for servlet
Similar Threads
Running a simple servlet in Weblogic6.1
how to run servlets using weblogic 6.1?
Depricated API Error pls help
new, need help!!!
how to run a servlet using Weblogic 6.1?