Can't run servlets
Hi, I have been unable to run servelets using my tomacat. I have put the class file in WEB-INF\classes. Please tell me where did I go wrong ? Thank you X V Jay Here is the source = import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class TestingServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLEServlet Testing/TITLE); out.println(/HEAD); out.println(BODY); out.println(Welcome to the Servlet Testing Center); out.println(/BODY); out.println(/HTML); } } Here is the web.xml = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet /web-app === Error message generated == HTTP Status 404 - /myJspApps/servlet/TestingServlet -- type Status report message /myJspApps/servlet/TestingServlet description The requested resource (/myJspApps/servlet/TestingServlet) is not available. --- Apache Tomcat/4.1.27 = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets
You have to declare the url mappings for servlets. Do this after all servlet declarations. Like this servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet servlet-mapping servlet-nameTestingServlet/servlet-name url-pattern/TestingServlet/url-pattern /servlet-mapping Another way is using the invoker servlet provided by Tomcat. If using invoker servlet no need of servlet mapping. But it have security bugs and is disabled by default. Antony Paul. - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 26, 2003 1:43 PM Subject: Can't run servlets Hi, I have been unable to run servelets using my tomacat. I have put the class file in WEB-INF\classes. Please tell me where did I go wrong ? Thank you X V Jay Here is the source = import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class TestingServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLEServlet Testing/TITLE); out.println(/HEAD); out.println(BODY); out.println(Welcome to the Servlet Testing Center); out.println(/BODY); out.println(/HTML); } } Here is the web.xml = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet /web-app === Error message generated == HTTP Status 404 - /myJspApps/servlet/TestingServlet -- type Status report message /myJspApps/servlet/TestingServlet description The requested resource (/myJspApps/servlet/TestingServlet) is not available. --- Apache Tomcat/4.1.27 = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Re: Can't run servlets
Hi, I did what was told bt Antony. But the problem persists. Looking forward for help Regards X V Jay---BeginMessage--- declarations. Like this servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet You have to declare the url mappings for servlets. Do this after all servlet declarations. Like this servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet servlet-mapping servlet-nameTestingServlet/servlet-name url-pattern/TestingServlet/url-pattern /servlet-mapping Another way is using the invoker servlet provided by Tomcat. If using invoker servlet no need of servlet mapping. But it have security bugs and is disabled by default. Antony Paul. - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 26, 2003 1:43 PM Subject: Can't run servlets Hi, I have been unable to run servelets using my tomacat. I have put the class file in WEB-INF\classes. Please tell me where did I go wrong ? Thank you X V Jay Here is the source = import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class TestingServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(HTML); out.println(HEAD); out.println(TITLEServlet Testing/TITLE); out.println(/HEAD); out.println(BODY); out.println(Welcome to the Servlet Testing Center); out.println(/BODY); out.println(/HTML); } } Here is the web.xml = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameTestingServlet/servlet-name servlet-classTestingServlet/servlet-class /servlet /web-app === Error message generated == HTTP Status 404 - /myJspApps/servlet/TestingServlet -- type Status report message /myJspApps/servlet/TestingServlet description The requested resource (/myJspApps/servlet/TestingServlet) is not available. --- Apache Tomcat/4.1.27 = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Can't run servlets
Thank you guys, Its now working with servlet mapping. Regards X.V.Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 09:48 schrieb Basavaraju P. Banakar: Servlet mapping is not madatory.. Well, not from the viewpoint of the DTD, but if you dont use the invoker [Jay indicates by mentioning serlvet sepcifications], you'll need one (Otherwise I'd really like to know why I have to use them with my Tomcat 4.1.24 installation ;-) But if servlet mappings are still not enough, Jay has to check the errorlogs of his server $TOMCAT_HOME/logs, there are a lot of possible other errors. His servlet might have thrown an exception, some xml file might be malformed (this would be my next guess). Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qhCr1Xdt0HKSwgYRAgkQAJ4ko9IJsGBFZbI/YlIREOxqigZOqACfRq2s yGRgQKyOGSNfEMPFx2n8op4= =AXDS -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't run servlets
Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app 5. Tried to run the servlet form http://localhost:8080/test/servlet/abcd Error displayed: The requested resource (/test/servlet/abcd) is not available. Is there anything which I have missed or done something wrong ? Please help me. Thank you OS: XP Professional Tomcat version: 4.1.27 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Can't run servlets
Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Can't run servlets
Holger Klawitter, Servlet mapping is not madatory.. - Basu. - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:52 PM Subject: Re: Re: Can't run servlets Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Can't run servlets
did u try running the examples ?? - Original Message - From: X V Jay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:52 PM Subject: Re: Re: Can't run servlets Even after adding a servlet-mapping after my servlet declarations the problem is persisting. With regards X V Jay -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 08:04 schrieb X V Jay: Hi, I am a newbie, I have been unable to run a servlet. These are the steps I took... 1. I wrote a small test servlet. 2. I created a 'test' directory under webapps. 3. Created WEB-INF in 'test' and put the testweb.class in classes dir. 4. Created a web.xml in WEB-INF ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameabcd/servlet-name servlet-classtestweb/servlet-class /servlet /web-app You also need to add a servlet-mapping after your servlet declarations: servlet-mapping servlet-nameabcd/servlet-name url-pattern/servlet/abcd/url-pattern /servlet-mapping Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qf5M1Xdt0HKSwgYRApeXAJwLtTsABkr4xJdoVA/MSGl6NQSrxACeLiyx SJwz9YUQmb7G3fLzGJScS2E= =eoEK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Thursday 06 November 2003 09:48 schrieb Basavaraju P. Banakar: Servlet mapping is not madatory.. Well, not from the viewpoint of the DTD, but if you dont use the invoker [Jay indicates by mentioning serlvet sepcifications], you'll need one (Otherwise I'd really like to know why I have to use them with my Tomcat 4.1.24 installation ;-) But if servlet mappings are still not enough, Jay has to check the errorlogs of his server $TOMCAT_HOME/logs, there are a lot of possible other errors. His servlet might have thrown an exception, some xml file might be malformed (this would be my next guess). Mit freundlichem Gruß / With kind regards Holger Klawitter - -- lists at klawitter dot de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/qhCr1Xdt0HKSwgYRAgkQAJ4ko9IJsGBFZbI/YlIREOxqigZOqACfRq2s yGRgQKyOGSNfEMPFx2n8op4= =AXDS -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't run servlets!
Sorry to bother u with this one but i've working on it for three days and can't get it working! I've installed tomcat 5.0.9, can compile my own servlets and run the everything in the servlets-examples directory but when i create my own directory i can't get the servlets to run. All instructions I've read about setting the CLASSPATH variable point towards /common/lib/servlet.jar but there doesn't appear to be such a thing. I have set the CLASSPATH to /common/lib/servlet-api.jar instead. Is this correct? I would be very grateful for any help! Thanks, latin Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets!
you shouldn't set your classpath at all. Just run the start script in TOMCAT_HOME/bin, and the rest is taken care of Filip - Original Message - From: Latin Mirambeau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 8:02 AM Subject: Can't run servlets! Sorry to bother u with this one but i've working on it for three days and can't get it working! I've installed tomcat 5.0.9, can compile my own servlets and run the everything in the servlets-examples directory but when i create my own directory i can't get the servlets to run. All instructions I've read about setting the CLASSPATH variable point towards /common/lib/servlet.jar but there doesn't appear to be such a thing. I have set the CLASSPATH to /common/lib/servlet-api.jar instead. Is this correct? I would be very grateful for any help! Thanks, latin Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't run servlets!
The servlets-examples explicitly use servlet-mappings for /servlet/*. The invoker servlet is disabled by default (since 4.1.12). Uncomment the servlet-mapping for the invoker servlet in CATALINA_HOME/conf/web.xml or add this mapping to your own web.xml.or explicitly create your own servlet mappings for your servlets which is the best way to go anyway. Jake At 04:02 PM 9/2/2003 +0100, you wrote: Sorry to bother u with this one but i've working on it for three days and can't get it working! I've installed tomcat 5.0.9, can compile my own servlets and run the everything in the servlets-examples directory but when i create my own directory i can't get the servlets to run. All instructions I've read about setting the CLASSPATH variable point towards /common/lib/servlet.jar but there doesn't appear to be such a thing. I have set the CLASSPATH to /common/lib/servlet-api.jar instead. Is this correct? I would be very grateful for any help! Thanks, latin Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't run servlets
I have setup tomcat and apache to run my servlets. I could run sample jsp files but not servlets. What can be reason? I am getting following error - 404 R( /eglot + /Login + null) null Handler tomcat.notFoundHandler(null/null) tomcat.notFoundHandler I appreciate your help! Gauri
Can't run servlets!
I have set up a tomcat and apache server. I can run sample jsp files but not my servlets. I appreciate your help! Gauri
RE: Can't run servlets!
O you need to tell us lot more than that Gauri! - What error do you get? - What versions of Apache, Tomcat, OS? - What mod_jk config settings in httpd.conf? - What's in your workers.properties (in case you've modified the defaults) - In your server.xml? - In your web.xml? Questions, questions! - Tony -Original Message- From: Gauri Tuljapurkar [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 12:52 PM To: [EMAIL PROTECTED] Subject: Can't run servlets! I have set up a tomcat and apache server. I can run sample jsp files but not my servlets. I appreciate your help! Gauri
RE: Can't run servlets!
Thanks for your help! I will try to give you some answers - Tomcat 3.2, Apache 1.3.2 I have mod_jk settings I have not modified workers.properties. I have set server.xml and web.xml. Now I am using one properties file which I have kept in tomcat in my project dir along with html files. Tomcat is giving me error that the properties file not found. Where should I put my custom properties file which is being referenced by my code? Thanks Gauri -Original Message- From: Tony Vinayak [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 12:20 PM To: [EMAIL PROTECTED] Subject: RE: Can't run servlets! O you need to tell us lot more than that Gauri! - What error do you get? - What versions of Apache, Tomcat, OS? - What mod_jk config settings in httpd.conf? - What's in your workers.properties (in case you've modified the defaults) - In your server.xml? - In your web.xml? Questions, questions! - Tony -Original Message- From: Gauri Tuljapurkar [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 12:52 PM To: [EMAIL PROTECTED] Subject: Can't run servlets! I have set up a tomcat and apache server. I can run sample jsp files but not my servlets. I appreciate your help! Gauri
Can't run servlets or jsp--how can I tell if Tomcat is running?
I'm obviously a newbie, please be patient. I read the docs and searched the faqs and archive, lurked through the tomcat-user emails for the past five days. I am now throwing myself on the mercy of the user-group I have attempted to install Tomcat on my Win98 system in conjunction with jdk1.1.8. (I don't know which version of Tomcat and I don't know how to find out; it was the release build available 11/15, probably 3.1) I unzipped to the C: drive, set the %TOMCAT_HOME% to c:\jakarta-tomcat, set %JAVA_HOME% to C:\jdk1.1.8, and added many items to my CLASSPATH (see autoexec.bat below.) The jdk1.1.8\bin was already in the PATH. At different times (with the same result) I ran the startup.bat from both Windows Explorer and a DOS window (and then re-ran after fixing the out-of-environment-space error by adjusting the Initial Environment memory). The results I got were a separate DOS window titled "Finished-startup", which read Starting Tomcat in a separate window Using classpath: C:\jakarta-tomcat\classes.major snip>> Invalid directory I tried running the sample jsp and servlet program found on C:\jakarta-tomcat\doc\appdev\sample\web\index.html to no avail. The jsp shows unprocessed jsp commands; clicking on the servlet example yielded "Netscape is unable to find the file or directory named /CI/jakarta-tomcat/doc/appdev/sample/web/hello". I couldn't find the file either, but I did find "Hello.java" under doc\appdev\sample\src. I moved it, tried again, no luck, renamed it "hello.java", no luck, changed the main class declaration to the lower case hello, compiled it, no luck. A different plan of attack: I type in the "HelloWorld"example from Marty Hall's book; it won't compile- unable to import javax.servlet.*, and javax.servlet.http.*, plus all of the associated error messages. At one point I tried modifiying the startup.bat, still no luck. I finally deleted all the relevant directories, did a fresh re-install, with a clean autoexec.bat, and it's still not working. But I'm getting a slightly different error message when trying to compile the Marty's sample HelloWorld code: error: File .\ServletException.class does not contain type ServletException as expected, but type javax.servlet.ServletException. Please remove the file, or make sure it apppears in the correct subdirectory of the class path. I deleted the ServletException class and tried to re-compile and got a similar error: error: File .\ServletException.class does nto contain type ServletException as expected, but type javax.servlet.ServletException. Please adjust the class path so that the file does not appear in the unnamed package. I really don't know what that means. I don't think Tomcat has started running, but I don't know how to check. A few other miscellaneous notes: I included the %JAVA_HOME%\tools.jar in my CLASSPATH, but tools.jar dones not exist anywhere on my hard drive. But it was in the startup.bat where I modeled my CLASSPATH settings from, so I left it in. My CLASSPATH also lists %TOMCAT_HOME%\classes; I don't have this directory. Marty Hall's book says the servlets should be placed in the install_dir/webpages/WEB-INF/servlets directory. I don't have one. The example servlets are found in C:\jakarta-tomcat\src\javax\servlet directory, so that's where I put my HelloWorld MANY THANKS to everyone; I sincerely appreciate whatever direction you can give me. I've been trying to install for two weeks now, and I'm just ready to start coding :) Michael Brubaker Java Developer Wannabe, Orlando, Florida Contents of autoexec.bat: PATH=.;..;C:\Windows\command;C:\MSWORD\OFFICE;c:\Oracle\Ora81\bin;C:\JDK1.1.8\BIN;C:\Oracle\Ora81\jdbc\lib\classes111.zip;C:\Tomcat\jakarta-tomcat\lib\servlet.jar;C:\Tomcat\jakarta-tomcat\lib\jasper.jar;%CLASSPATH% C:\PROGRA~1\COMMON~1\NETWOR~1\VIRUSS~1\40~1.XX\scan.exe C:\ @IF ERRORLEVEL 1 PAUSE set TOMCAT_HOME=C:\jakarta-tomcat set JAVA_HOME=C:\jdk1.1.8 @ECHO OFF set CLASSPATH=.;.. set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\classes; set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\bin @ECHO ON set CLASSPATH=%CLASSPATH%;C:\Oracle\Ora81\jdbc\lib\classes111.zip;C:\Oracle\Ora81\bin