AW: AW: unanswered questions: Multiple Tomcat Instances

2002-05-28 Thread Ralph Einfeldt

I placed all jar files that our application needs 
under ${CATALINA_HOME}/webapps//WEB-INF/lib

Class files are OK under 
${CATALINA_HOME}/webapps//WEB-INF/classes
(We don't have any)

AFAIK, if you have more than one context and want to use 
the same classes across all contexts, you can place them
under ${CATALINA_HOME}/lib and {CATALINA_HOME}/classes.
(Haven't tried this, we just need one context)

I deleted everything from web.xml hat we didn't need.
The only thing we changed in web.xml was the welcome-file-list 
element.

I deleted everything from server.xml hat we didn't need.
For the first instance you don't have to change anything.
I changed some setting that are not mandatory. (Set the log file 
names to our convention, rename the default context, ...)
For every following instance you have to change all ports
to a unique value. (You should list the port numbers in
/etc/services so it's easier to find out which ports are 
used)

Wether this changes are sufficient for an online server I'm
not shure, as we haven't used tomcat as an online server.

> -Ursprüngliche Nachricht-
> Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. Mai 2002 21:16
> An: Tomcat Users List
> Betreff: Re: AW: unanswered questions: Multiple Tomcat Instances

> Did you just copy the files under ${CATALINA_BASE}/conf from the
> corresponding ones in ${CATALINA_HOME}/conf or do these need to
> be altered in one way or another?
> Also, I am assuming that you are placing your java and class
> files under ${CATALINA_HOME}/webapps//WEB-INF/classes
> Is this the case or can it be done differently?
> Do any settings need to be modified under
> ${CATALINA_HOME}/conf/server.xml ?


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




Re: AW: unanswered questions: Multiple Tomcat Instances

2002-05-28 Thread Neil Zanella


Thanks!

Did you just copy the files under ${CATALINA_BASE}/conf from the
corresponding ones in ${CATALINA_HOME}/conf or do these need to
be altered in one way or another?
Also, I am assuming that you are placing your java and class
files under ${CATALINA_HOME}/webapps//WEB-INF/classes
Is this the case or can it be done differently?
Do any settings need to be modified under
${CATALINA_HOME}/conf/server.xml ?

Thanks,

Neil

On Tue, 28 May 2002, Ralph Einfeldt wrote:

> I don't know if it's the minimal set, but it works for me:
> 
> ${CATALINA_BASE}/conf
> ${CATALINA_BASE}/conf/server.xml
> ${CATALINA_BASE}/conf/tomcat-users.xml
> ${CATALINA_BASE}/conf/web.xml
> ${CATALINA_BASE}/conf/catalina.policy
> ${CATALINA_BASE}/webapps/
>   // Replace  with the name of your
>   // Context (Default=ROOT)
> 
> You access it with an url like
> localhost:8080 
> if you are browsing from the server.
> 
> :8080
> if you are browsing from your intranet
> 
> 8080 is the port you defined in server.xml for the http connector.
> 
> > -Ursprüngliche Nachricht-
> > Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 28. Mai 2002 01:47
> > An: Tomcat Users Mailing List
> > Betreff: unanswered questions: Multiple Tomcat Instances
> > 
> > 
> > 
> > Does anyone know what a minimal installation of files under 
> > ${CATALINA_BASE}
> > should consist of in order to allow the running of servlets and jsps?
> > Where should they be placed? How do I access them with a web browser?
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




AW: unanswered questions: Multiple Tomcat Instances

2002-05-27 Thread Ralph Einfeldt

I don't know if it's the minimal set, but it works for me:

${CATALINA_BASE}/conf
${CATALINA_BASE}/conf/server.xml
${CATALINA_BASE}/conf/tomcat-users.xml
${CATALINA_BASE}/conf/web.xml
${CATALINA_BASE}/conf/catalina.policy
${CATALINA_BASE}/webapps/
  // Replace  with the name of your
  // Context (Default=ROOT)

You access it with an url like
localhost:8080 
if you are browsing from the server.

:8080
if you are browsing from your intranet

8080 is the port you defined in server.xml for the http connector.

> -Ursprüngliche Nachricht-
> Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. Mai 2002 01:47
> An: Tomcat Users Mailing List
> Betreff: unanswered questions: Multiple Tomcat Instances
> 
> 
> 
> Does anyone know what a minimal installation of files under 
> ${CATALINA_BASE}
> should consist of in order to allow the running of servlets and jsps?
> Where should they be placed? How do I access them with a web browser?

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




unanswered questions: Multiple Tomcat Instances

2002-05-27 Thread Neil Zanella


Hello,

I am still trying to setup tomcat for multiple instances.
I read RUNNING.txt but it is rather incomplete
in section (4) as it does not describe what a
minimal set of files and their contents in
${CATALINA_BASE} would consist of in this
case...

As a regular user I created a new directory called ~/tomcat and added the
CATALINA_BASE directory to my ~/.bash_profile so that it looks like this:

export PATH=${PATH}:/usr/local/jdk/bin
export JAVA_HOME="/usr/local/j2sdk1.4.0"
export CLASSPATH=".:/usr/local/j2sdkee1.3.1/lib/j2ee.jar"
export CATALINA_HOME="/usr/local/jakarta-tomcat-4.0.3"
export CLASSPATH=${CLASSPATH}:/usr/local/saxon/saxon.jar
export CATALINA_BASE=${HOME}/tomcat

Then I created the four directories mentioned in RUNNING.txt (4) with:

mkdir ${CATALINA_BASE}/{conf,logs,webapps,work}

Now what? I can start tomcat but cannot shut it down:

Catalina.stop: java.lang.Exception: Can't open config file: 
/home/nzanella/tomcat/conf/server.xml due to: java.io.FileNotFoundException: 
/home/nzanella/tomcat/conf/server.xml (No such file or directory)

Does anyone know what a minimal installation of files under ${CATALINA_BASE}
should consist of in order to allow the running of servlets and jsps?
Where should they be placed? How do I access them with a web browser?

Thanks,

Neil


--
To unsubscribe, e-mail:   
For additional commands, e-mail: