aspose file tools*
The moose likes BEA/Weblogic and the fly likes Post Installation steps like ClassPAth and others for BEA Weblogic Plateform 8.1? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Post Installation steps like ClassPAth and others for BEA Weblogic Plateform 8.1?" Watch "Post Installation steps like ClassPAth and others for BEA Weblogic Plateform 8.1?" New topic
Author

Post Installation steps like ClassPAth and others for BEA Weblogic Plateform 8.1?

ramandeep Dhanju
Greenhorn

Joined: Jul 13, 2012
Posts: 7
hello everyone

I am new to java and studying Servlets. I started installing BEA Weblogic plateform 8.1. I installed it and configured it. But the first thing i do not know the CLASSPATH to be set?
Second please tell be the post installation steps for this BEA Weblogic 8.1?
As i was trying the program below:
import java.io.*;
import javax.servlet.*;

public class Servlet1 implements Servlet
{
ServletConfig config = null;
public void init(ServletConfig config)
{
this.config = config;
System.out.println("init() called");
}
public void service(ServletRequest req, ServletResponse res) throws IOException, ServletException
{
System.out.println("Service() called");
String us = req.getParameter("user");
String pass = req.getParameter("pass");
res.setContentType("text/html");
PrintWriter pw = res.getWriter();
pw.println("You entered:\n <h1>UserName: "+us+"</h1>");
pw.println("You entered:\n <h1>Password: "+pass+"</h1>");
pw.close();
}
public void destroy()
{
System.out.println("destroy() called");
}
public String getServletInfo()
{
return null;
}
public ServletConfig getServletConfig()
{
return config;
}
}

i made web.xml and Html file as .
But i got this error while executing .java file above
ERROR: Main method was not found in Servlet1....
please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Post Installation steps like ClassPAth and others for BEA Weblogic Plateform 8.1?