--- "Turner, John" <[EMAIL PROTECTED]> wrote: > > Check the docs. Tomcat ignores the CLASSPATH > environment variable. > > You will want to read and follow the Application > Developer's Guide, and you > will want to read the ClassLoader HOWTO. Most of > your questions are > probably answered between those two documents. > > John > > > -----Original Message----- > From: Abhijat Thakur > To: [EMAIL PROTECTED] > Sent: 11/12/02 9:17 PM > Subject: classpath for web applications > > > I am new to tomcat and i added my web application to > Tomcat by adding > > <Context path="/bdna" debug="0" privileged="true" > docBase="/usr/web/"> > </Context>
u'r dir structure should like that /usr/web/webbaps/bdna/WEB-INF/classes /usr/web/webbaps/bdna/WEB-INF/lib put u'r classes inside the classes u donnot need to specify the class path tomcat itself take its own classpath. copy u'r important jar file inside the lib folder. in server.xml specify add this docBase="/usr/web/" in <host> tag. 2) copy u'r classes in the TOMCAT_HOME/webapps/bdna/WEB-INF/classes berfore that create the folder . in that case u donot need to change the server.xml sonam singh [EMAIL PROTECTED] > in server.xml file. My classpath environment > variable is set up which > has all the classes. However when i try to invoke a > servlet by typing > the URL it gives me a classNotFoundException. > However the class exists > in the classpath. Tomcat expects all the class files > to be under > /usr/web/WEB-INF/classes which is the docBase for > the bdna Context. Is > there a way to make Tomcat look for class files in > ClassPath rather than > the docBase/WEB-INF/classes for context. Am i doing > something wrong? > > thanks > > abhijat > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@;jakarta.apache.org> > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@;jakarta.apache.org> > __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
