See responses intermingled....

-----Original Message-----
From: Adam Haberlach [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:05 PM
To: [EMAIL PROTECTED]
Subject: A few questions regarding file placement for projects


As I mentioned before, I'm trying to set up seperate contexts for
develoepers so that they can all use the same machine and have
individual class files.  I was told that each context gets its own
WEB-INF directory.

I'm somewhat new to Java, but what I need to know is:

o. Where, in relation to the WEB-INF of docroot directory for a
context would I place .class (or .java, if the server will compile
them for me) files so that they will be picked up automatically
for that context.
Tomcat won't compile .java files unless it generates from a .jsp file.  The
.class files go into webapps/MyWebApp/WEB-INF/classes.  (Jar files go in
webapps/MyWebApp/WEB-INF/lib.


o. How can I set up a class file heirarchy or system so that I
can 'import com.foo.bar.blah.*' and have the correct files for
the context picked up?
webapps/MyWebApp/WEB-INF/classes/com/foo/bar/blah (suprising like Java's
regular way of doing things)

o. Do I need to use .war files, and if so, how?
Need to, no.  Want to, probably not until you get close to packaging for
deployment to clients.

o. How dynamic is the web.xml file in the WEB-INF directory?  Must
I restart the server (and Apache, in this case) every time I or
any other engineer makes a change?

You must restart Tomcat if you are using 3.2.  Since you are integrating
with Apache, I believe that this means you must restart the server as well,
but I'm not sure since I don't use Apache.

You must reload the context if you are using Tomcat 4.0 (see
localhost:8080/manager)


-- 
Adam Haberlach            | "Having a smoking section in a restaurant is
[EMAIL PROTECTED]       | like having a peeing section in a swimming pool"
http://www.newsnipple.com |
'88 EX500    '00 >^<      |

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

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

Reply via email to