A.) Basic servlet setup:
Optional: You can change the port on which Tomcat is listening for incoming http connections by modifying the "port" property for "Connector" item in server.xml. In example below port is changed to 9999.
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="9999" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />You also need to change the control port here:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
cp -r /stage/classes/current/51024-1/labs/lab3/hello ~/tomcat/webapps/
http://localhost:port/
to check that you started Tomcat. Then go to:
http://localhost:8080/hello/servlet/HelloWorldExample
The servlet should display your name.
B.) Simple Browser/Servlet
communication
Once you have the JDBC driver classes in the CLASSPATH built for your servlet engine ,accessing an Oracle database should work fine.
D.) To use Tomcat's Application Manager:
http://{host}:{port}/manager/{command}?{parameters}