Check the class loader HOWTO:


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

To wit:

"Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead). All unpacked classes and resources in $CATALINA_HOME/shared/classes, as well as classes and resources in JAR files under $CATALINA_HOME/lib, are made visible through this class loader."

You don't need to do anything with CLASSPATH.

John

On Tue, 1 Jul 2003 11:27:06 -0500, Chen, Yi <[EMAIL PROTECTED]> wrote:

This worked!!
I created a new web.xml and mapped the servlet in it, now I can access my
Controller application.
One more question is this application imports other jar files. I put all jar
files under shared/lib/jarFile.Theoretically all applications can use this
jarFile. But TomCat can't find them. I also add classpath to point to the
folder, doesn't seem to help.
Do I need to specify the jar file location somewhere in the Tomcat?


Thanks.

Yi

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 7:14 AM
To: Tomcat Users List
Subject: Re: How to configure TomCat4 for web applications?



You must explicitly map each servlet in your application's web.xml file.

Please post:

- the location on your filesystem of your servlet class file (like Controller/WEB-INF/classes/... or whatever)

- the exact URL you WISH to use to reach that servlet

- any servlet and servlet-mapping elements from your web application's web.xml file referring to the servlet above

Alternatively, consult the FAQ:

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Mon, 30 Jun 2003 17:05:32 -0500, Chen, Yi <[EMAIL PROTECTED]> wrote:

Also I don't have a Web Application Archive (WAR) file associated the
Controller application. Could that be the problem?

Thanks.

Yi

-----Original Message-----
From: Chen, Yi [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 4:53 PM
To: 'Tomcat Users List'
Subject: RE: How to configure TomCat4 for web applications?


Hi, I removed the web.xml, the error message still is
"Controller/servlet/Controller not available". Do you have any suggestions
as how to write my own web.xml? Or do I need to specify somewhere for the
TomCat to find the Controller folder?
In TomCat3 there is a wrapper.properties file in which I can specify the
class path for Controller. I couldn't find a corresponding file in TomCat4.
Btw, is the servlet a virtual path? Thanks.


Yi

-----Original Message-----
From: john d barreto [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: RE: How to configure TomCat4 for web applications?


Yi,


Hi. The web.xml file is specific to your application so you can't take
one from another application and put it inside Controller. I was just
thinking that there could be something wrong with the old one you had. You could try with no web.xml file since it is not strictly required. Restart Tomcat and see what happens.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to