Deploy servlet error(Kindly Help me please)
What the step by step method of deploying a servlet.
This what I did to deploy servlet.
1). I created a"servlet.java" File
2). Compiled it on my machine.
3). Then on the machine I want to deploy it I created a folder"TestServlet" in tomcats webapps.
4).Under"TestServlet" I created"WEB-INF" folder
5). Under"WEB-INF" I created"classes"and"lib"folder.
6). Then I kept the java and class files in"classes" folder and all the .jar files in"lib"folder
7). But I access page form web browser it gave me following error.
HTTP Status 500 -
--
type Exception report
message
description The server encountered an internal error () that prevented it from fulfillingthis request.
exception
java.lang.NullPointerException
MyPdfServlet.doGet(MyPdfServlet.java:34)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
--
Apache Tomcat/5.5.9
I tried searching on the net but nothing gave me satisfactory answer.
Thanx for your help in advance.
Any help is appreciated.
:)

