Back in the days before tomcat 3.3, we used to have to put all the jars
on the classpath and it was HORRIBLE. Nasty version conflicts and lot's
of headaches. Somewhere after the introduction of tomcat 3.3, tomcat
started purposely ignoring the CLASSPATH in favor of it's own
classloader architecture in order to save people a fair number of
headaches. In short, you shouldn't worry about CLASSPATH. Just put
the jar files where they belong -- typically in your webapp's
WEB-INF/lib folder and watch tomcat do it's wonderful magic.
--David
Deepak Mishra wrote:
On Sun, 20 Jul 2008 23:24:45 +0530, David Smith <[EMAIL PROTECTED]> wrote:
Tomcat does have a java compiler (jasper) to compile jsp pages to
servlets, but it also needs a JVM (java). Setting CLASSPATH is a big
no-no. Put any required jars your webapp might need in the proper
place. If you use tomcat's internal pooling for db connections, that
means putting driver jar files in tomcat's lib directory.
--David
sorry, if i am looking into this matter too much , but i really want
to know more !!
i just read class loading in java. the jar files (all the ones needed
by the program) are loaded by the JVM (through bootstrap , extension
and system classloaders) just before running the program.
now, since tomcat uses the operating system installed JVM for running
the programs (as you said it has got only a java compiler of its own
and not a "personal" JVM), why isnt it(the operating system JVM) able
to locate the CLASSPATH for jsps as it would do for an ordinary program??
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
David Smith
Programmer/Analyst
College of Agriculture and Life Sciences
Cornell University
B32 Morrison Hall
Ithaca, NY 14853
Phone: (607) 255-4521
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]