Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
How do i run 2 tomcats on the same server and using jk2?

How do i run 2 tomcats on the same server and using jk2?

2003-12-17       - By Cocalea, Eugen

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

Well,

>From what you said it seems that you were able to setup IIS to work with
only one Tomcat, either the other one is present or not.

>From the link I've sent you, you only have to look at the way
workers.properties is made. You have to make two workers, let's say tomcat1
and tomcat2 and another one, the loadbalancer. Then, make IIS forward
everything to the loadbalancer. For this, in you uriworkermap.properties,
define something like this:

/test/*=loadbalancer

and in your workers.properties

ps=/

worker.list=tomcat1, tomcat2, loadbalancer

worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=8010
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

If in your $CATALINA_HOME\conf\server.xml you have a context with a path of
"/test", all requests coming to http://localhost/path/<whatever> will go to
one of the tomcats. I can't tell you which one in which order, but they
will. The only test that I did (and it worked) is the one they suggested,
with the index page colored red and blue, and after starting several
browsers pretty fast, I got both red and blue pages. So, it works in the way
they suggest there.

The link again: http://www.ubeans.com/tomcat/

E.

-- --Original Message-- --
From: yuval [mailto:yuval@(protected)]
Sent: Tuesday, December 16, 2003 9:50 PM
To: Tomcat Users List; beantaxi@(protected)
Subject: Re: How do i run 2 tomcats on the same server and using jk2?

Do you have a soulotion to my problem?

> Subject: How do i run 2 tomcats on the same server and using jk2?
>
> Hi,
>
> I installed 2 Tomcats on the same server and they both work on on port
8080
> and the second on 8081
> I also define one to listen for the jk2 on 8009 and the second on 8010 but
> only the first one is working
>
> What do i need to do in the registry and in the IIS in order to make the
> second work also?
>
>
> Regards,
>
> Yuval

-- -- Original Message -- --
From: "The Bean" <beantaxi@(protected)>
To: "Tomcat Users List" <tomcat-user@(protected)>
Sent: Tuesday, December 16, 2003 9:40 PM
Subject: RE: How do i run 2 tomcats on the same server and using jk2?


> Not a bad link, but I have to comment on the guys suggestion about
changing
> the catalina.sh script. Here's a quote:
>
> "In my many years of consulting, I have learned not to rely on environment
variables
> which can be unset by ignorant or malicious people"
>
> In my many years of consulting, I've much more often encountered problems
> with people tampering with script files that should have been left alone.
Ever do
> an export JAVA_HOME= to explicitly pick a JVM and be stumped by a bug
still happening
> . . . only to find out that someone took at upon themselves to change a
script that
> you know well, and to manually set JAVA_HOME withing that script? This
much more
> sinister than missing environment variables.
>
> If you're very afraid of environment variables not being there or being
wrong, then
> make a script file that sets a few variables and then calls the original
script. Or some
> variant of that. But just jumping in and altering the script is rarely the
best idea.
>
> - T.B.
>
> --- "Cocalea, Eugen" <Cocalea@(protected)> wrote:
> > Heh, seem that people around here knock on the same problems I had few
days
> > ago. Best solution, found on:
> >
> > http://www.ubeans.com/tomcat/
>
>
> __ ____ ____ ____ ____ ____ ______
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.