Hi .. 
I am new to TOMCAT and Servlet... 

I installed Tomcat on Win98.... 
I included all need in autoexec.bat

 Set TOMCAT_HOME=C:\tomcat
 Set JAVA_HOME=C:\jdk1.3
 set CLASSPATH=.;c:\jdk1.3\lib\tools.jar 

Followings are steps I did for test running servlet... 

1. TOMCAT_HOME : C:\tomcat
2. C:\tomcat\conf\server.xml

       < Context path="/hhk" docBase="hhk" crossContext="false"
                debug="0" 
                reloadable="true" >
       < /Context>
       
3. mkdir C:\tomcat\hhk\WEB-INF\classes 
4. copy HelloWorldExample c:\TOMCAT\hhk\WEB-INF\classes\HelloWorldExample.classes
5. C:\tomcat\hhk\WEb-INF\web.xml 

   <servlet>
     <servlet-name>
         HelloWorldExample
     </servlet-name>
     <servlet-class>
         HelloWorldExample
     </servlet-class>
   </servlet>
   
<servlet-mapping>
   <servlet-name>
HelloWorldExample
   </servlet-name>
   <url-pattern>
/HelloWorldExample
   </url-pattern>
</servlet-mapping>

was included...
   

6. Tomcat  start 
7. C:\tomcat\hhk\index.html
8. http://127.0.0.1:8080/hhk/index.html  -- Running properly.
9. http://127.0.0.1:8080/hhk/servlet/HelloWorldExample - It goes Error 500..

What am I wrong with test?... 

Reply via email to