Helpful Information
 
 
Category: Java Help
TOMCAT Configuration

Hi,
I've installed TOMCAT. It's running in Stand Alone Mode and all it's examples(JSPs and servlets) work well but when I try to use one mine (It uses JDBC) it shows me errors.

I don't know what is wrong. Do I need modify web.xml? Have I installed Apache and TOMCAT wrong?

Please help me!!!

Give a tip about what is wrong.

Firstly, if the examples that come with the engine are working correctly then you have NOT installed Tomcat with fault. Good. To run one of your servlets you must compile the code and place both the class and the source file under webapps\Web-inf\classes
Once you have done this edit the web.xml file sitting in the web-inf directory. The xml file should register the servlet name, the name of the class (of the servlet) file and the mapping.
Use the example web.xml file supplied to understand how it works.
You said it was running as a standalone. So what has apache got to do with it?
All the best

Thanks,
You are right!! I did that you said and my servlets works.

send me details my profile is online at http://adynan.cjb.net










privacy (GDPR)