[EMAIL PROTECTED] wrote:

> Hi everyone,
>
> I have a question about the directory structure, or maybe a question about
> servlets themselves; I'm not sure yet.
>
> 1) Does every class file that I'm going to be using have to be in the
> WEB-INF\classes directory while using Tomcat?
> 2) Do all JSP/Servlet servers/containers have this directory?
>
> THE chad

only for your first question :-)

* class can be put in:
    - WEB-INF/classes
          or
    - $CATALINA_HOME/classes
          or
    - $CATALINA_HOME/common/classes


* jar can be put in:
    - WEB-INF/lib
         or
    - $CATALINA_HOME/lib
          or
    - $CATALINA_HOME/common/lib


good email for you :-)

//*************************************************************
[...]
* $CATALINA_HOME/common/lib - Visible to *both* Catalina internal classes
  and to web applications.  The JDBC optional package JAR needed to go
  here.

* $CATALINA_HOME/server/lib - Visible to Catalina internal classes (your
  own custom realms, the JDBC driver used by JDBCRealm, and so on).

* $CATALINA_HOME/lib - Visible to web apps only

In the particular case of the SOAP 2.2 stuff (or JAXM, or lots of other
applicaiton only things), Catalina internal classes don't get involved, so
you can put mail.jar and activation.jar into $CATALINA_HOME/lib.

>
> Zhongwu
>

Craig
//*************************************************************


Bo
Sept.09, 2001



Reply via email to