I have a project which in the meantime runs locally on Tomcat but I'm planning to deploy to some server in the future. I have a few questions:
- I'm using
tomcat-jdbc.jar. How should I include that jar in the project? copy it toWEB-INF/libor add a library reference to tomcat? is the latter portable? Can I use this jar even if the server I'm deploying to is using jetty? - When I added the
JRE, eclipse asked me to point it to theJREpath. The line that was added in the classpath was
classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"
How does eclipse figure out from this line where the JRE is at?
- When the project is deployed to the server, how would the project hierarchy look like?
My guess is:
<project name>
----<build> (.class files)
----<WebContent>
--------<META-INF>
------------MANIFEST.MF
--------<WEB-INF>
------------<lib>
----------------external_jar.jar
------------web.xml
---------index.html
Is this correct? if so, how will the runtime know where to find the JRE? or the tomcat-jdbc.jar which is in the Tomcat installation folder?