I am using an older version of JDK and J2EESDK
C:\>deploytool
Starting Deployment tool, version 1.3.1
(Type 'deploytool -help' for command line options.)
C:\>
j2ee -version
Java 2 Enterprise Edition version 1.3.1, build 1.3.1-b17
C:\>java -version
java version "1.3.1_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_11-b02)
Java HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)
deployment error java.rmi.ServerException:RemoteException occurred in server
thread; nested exception is: java.rmi.RemoteException: An error was encountered while loading a web component.
Its a very basic
Servlet code i have written, wanted to know if my deployment procedure was wrong that i got this error.
The Servlet Code succesfully compiled, the code is as follows:
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class hitcountservlet extends HttpServlet
{
static int count;
public void init(ServletConfig config) throws ServletException
{
super.init(config);
}
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
count++;
out.println("<html>");
out.println("<head><title>BasicServlet</head></title>");
out.println("<body>");
out.println("StringvalueOf(count)");
out.println("</body></html>");
}
public
String getServletInfo()
{
return "basic servlet info";
}
}