• 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

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 love a woman who dresses in stainless steel ... and carries tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic