Authenticate a virtual JK2 context on IIS side ?

2004-09-03 Thread Bjoern . Andersen
Hi,

we want out frontend-webserver to do the authentication  autorisation. The
Tomcat-apps are on a different server connected via JK2/AJP13. Now, when we
map a URI-context to tomcat, there are no physical files on IIS-Side to bind
security permissions to. We also can't use dummy-files coz the java-apps
change to often. And when we create a folder for the context, say abcd,
and bind the permissions there, direct requests into the folder like ...
 www.web1.de/acbd/index.jsp 
...are still not blocked because index.jsp doesn't exist here, so no
security information.

What we are looking for is a possibility to bind permissions to a folder AND
it's entire substructure, like you can do in Apache's httpd.conf or
.htaccess in IIS6 to set permissions for an JK2-URI-Mapped context on
Webserverside. The application must not do the authorisation by concept.

Any help appreciated..

--
Gruss...
Björn Andersen
_ 
Webservices, Premiere Fernsehen GmbH

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



AW: JK2: Partition workers2.properties

2004-08-26 Thread Bjoern . Andersen
Hi,

 Instead of including all your mappings in the workers2.properties, you
 can use Location and LocationMatch in httpd.conf to set up
 your mappings.

Thanks, but...

 We got JK2 running as a ISAPI-Filter on IIS6.
   
... not httpd.conf on Windows/IIS6.
--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Cox, Charlie [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 26. August 2004 16:21
An: 'Tomcat Users List'
Betreff: RE: JK2: Partition workers2.properties

Instead of including all your mappings in the workers2.properties, you can
use Location and LocationMatch in httpd.conf to set up your mappings.

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 25, 2004 8:32 AM
 To: [EMAIL PROTECTED]
 Subject: JK2: Partition workers2.properties
 
 Hi,
 
 is it possible to partition the workers2.properties for the JK2?
 
 We got JK2 running as a ISAPI-Filter on IIS6.
 Now, the new structure of workers2.properties is better against
 workers.properties and uriworkermap.properties.
 
 But now, that we have loads of webs with many contexts each, which itself
 have 2-5 mappings each, the file get's huge (40kb) and complex.
 
 Is it possible to partition the file, say, with include={file}
statements?
 Or better...
 
 [include:file]
 file={file}
 ver=1
 
 ... this way the the main and subfiles (Mappings, Worker, Channels, ...)
 remain clear, and even a reload is faster, because the jk2 only needs to
 read the included files which version-numbers have increased.
 
 
 --
 Björn Andersen
 
 -
 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]



JK2: Partition workers2.properties

2004-08-25 Thread Bjoern . Andersen
Hi,

is it possible to partition the workers2.properties for the JK2?

We got JK2 running as a ISAPI-Filter on IIS6.
Now, the new structure of workers2.properties is better against
workers.properties and uriworkermap.properties.

But now, that we have loads of webs with many contexts each, which itself
have 2-5 mappings each, the file get's huge (40kb) and complex.

Is it possible to partition the file, say, with include={file} statements?
Or better...

[include:file]
file={file}
ver=1

... this way the the main and subfiles (Mappings, Worker, Channels, ...)
remain clear, and even a reload is faster, because the jk2 only needs to
read the included files which version-numbers have increased.


--
Björn Andersen

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



Howto IIS6/JK2/TC5 (german)

2004-08-23 Thread Bjoern . Andersen
Hi,

i implemented a proof-of-concept for my company, resulting in a howto that
covers Tomcat5 with jk2 and iis6 (in full iis6-mode), jmx configuring of
tomcat and jk2 on webserver-side and some other side-knowledge.

There are lots of guides out there, but most win32-guides work with jk1 or
iis6 in iis5-compatibility-mode. It had to be done in german though.

http://www.syltonline.de/arbeit/pociis6tc5jk2/index.html

If anyone of you think it's good enough to spend some time on a translation,
please contact me here or on
http://www.syltonline.de/arbeit/pociis6tc5jk2/kontakt.php
Or just do it ;)

--
Björn Andersen

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



RE: Tomcat Clusterin Multicast Multiinstances

2004-08-19 Thread Bjoern . Andersen
Thanx.

To end this original thread, yes, that's the answer.
When you take the Reciever-Part in Clustering...
Receiver 
 className=org.apache.catalina.cluster.tcp.ReplicationListener
 tcpListenAddress=auto
 tcpListenPort=4001
 tcpSelectorTimeout=100
 tcpThreadCount=6/

...just give the next instance on the same machine a higher portnumber:
tcpListenPort=4002, et viola, running as smooth as tomcat normally does...

--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 18. August 2004 15:37
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances

no, the address already in use is tcpListenPort, that has to change if you
run two instances on the same machine

Filip


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: AW: Tomcat Clusterin Multicast Multiinstances


Hi again,

you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for
Tomcat here.

My problem was referring to the clustersection of server.xml rather than the
standard IP:

 mcastAddr = the multicast address, has to be the same for all the nodes
 mcastPort = the multicast port, has to be the same for all the nodes

So even when everything else can be configured per Instance, these addr
needs to be the same. So when I start up the second instance of Tomcat on
the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already
in use and it can't bind to it ...

--
INFO: Sleeping for 2000 secs to establish cluster membership
18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run
SCHWERWIEGEND: Unable to start cluster listener.
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at
org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen
er.java:104)
at
org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener.
java:85)
at java.lang.Thread.run(Unknown Source)
-


--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Dale, Matt [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 17. August 2004 18:19
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances


Memory limit should be 2 Gig for JVM's running in a 32 bit operating system.
More for the 64 bit JVM's. I think you would have to have virtual IP
addresses on that machine and run tomcats on specific IP addresses for you
to use the multicasting.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 13:42
To: [EMAIL PROTECTED]
Subject: Tomcat Clusterin Multicast Multiinstances


Hi,

can anyone tell me how Tomcats can be configured as a cluster with session
replication when there is more than one TC-Instance on one machine?
We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has
that changed meanwhile too?

--
Björn Andersen
Webservices
www.premiere.de

-
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]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004


-
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]



AW: Tomcat Clusterin Multicast Multiinstances

2004-08-18 Thread Bjoern . Andersen
Hi again,

you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for
Tomcat here.

My problem was referring to the clustersection of server.xml rather than the
standard IP:

 mcastAddr = the multicast address, has to be the same for all the nodes
 mcastPort = the multicast port, has to be the same for all the nodes

So even when everything else can be configured per Instance, these addr
needs to be the same. So when I start up the second instance of Tomcat on
the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already
in use and it can't bind to it ...

--
INFO: Sleeping for 2000 secs to establish cluster membership
18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run
SCHWERWIEGEND: Unable to start cluster listener.
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at
org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen
er.java:104)
at
org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener.
java:85)
at java.lang.Thread.run(Unknown Source)
-


--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Dale, Matt [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. August 2004 18:19
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances


Memory limit should be 2 Gig for JVM's running in a 32 bit operating system.
More for the 64 bit JVM's. I think you would have to have virtual IP
addresses on that machine and run tomcats on specific IP addresses for you
to use the multicasting.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 13:42
To: [EMAIL PROTECTED]
Subject: Tomcat Clusterin Multicast Multiinstances


Hi,

can anyone tell me how Tomcats can be configured as a cluster with session
replication when there is more than one TC-Instance on one machine?
We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has
that changed meanwhile too?

--
Björn Andersen
Webservices
www.premiere.de

-
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]



AW: Tomcat Clusterin Multicast Multiinstances

2004-08-18 Thread Bjoern . Andersen

Here's a little batch I modified from the service-batch that comes with TC5.
You can mod it to your needs.Find the mem part in the middle. Remember that
there might be CR/LF added by the mailer.

-
@echo off
rem set SERVICE_NAME=keine Leer|_|-|.; nur Alpahnum!!
set MEM_MIN=64
set MEM_MAX=256
set SERVICE_NAME=ApacheTomcat5I%2
set DISPLAY_NAME=Apache Tomcat 5.0 I%2
set CATALINA_BASE=%CATALINA_HOME%\N%1_I%2
set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe

set PR_DISPLAYNAME=%DISPLAY_NAME%
set PR_DESCRIPTION=%DISPLAY_NAME% - Premiere -
http://jakarta.apache.org/tomcat
set PR_INSTALL=%EXECUTABLE%
set PR_LOGPATH=%CATALINA_BASE%\logs
set PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar
%EXECUTABLE% //IS//%SERVICE_NAME% --Jvm auto --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop
rem Clear the environment variables. They are not needed any more.
set PR_DISPLAYNAME=
set PR_DESCRIPTION=
set PR_INSTALL=
set PR_LOGPATH=
set PR_CLASSPATH=

echo Installed Main Service %DISPLAY_NAME% ...
rem Set Dirs  Mem
%EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions
-Xms%MEM_MIN%m;-Xmx%MEM_MAX%m;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.ho
me=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
--StartMode jvm --StopMode jvm
echo Updated Main Service %DISPLAY_NAME% Dir's and Mem settings ...
rem Set Logging
set PR_STDOUTPUT=%CATALINA_BASE%\logs\stdout.log
set PR_STDERROR=%CATALINA_BASE%\logs\stderr.log
%EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions
-Djava.io.tmpdir=%CATALINA_BASE%\temp
set PR_STDOUTPUT=
set PR_STDERROR=
set SERVICE_NAME=
set DISPLAY_NAME=
set CATALINA_BASE=
set MEM_MIN=
set MEM_MAX=
set EXECUTABLE=
echo Updated Main Service %DISPLAY_NAME% Logging settings ...
-

--
Björn Andersen
www.premiere.de


-Ursprüngliche Nachricht-
Von: Shakeel [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 1. August 2004 16:23
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances

Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min
memory etc.

S H A K E E L   A H M A D




-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:10 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



Its the same JRE and java classes so i'd imagine there is no difference.

Ta
Matt

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:12
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Thanks for a quick reply.

Is it only the benifit , I mean I have pc anywhere or similar tools, or even
I dont need the smart load/unload as a service.
I want  to know the comparison based on
Memory usage, performance at runtime etc.

S H A K E E L   A H M A D


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



The benefits are that you can get it to start and stop with the machine and
a non tomcat admin can start and stop it using the services. It can also be
remotely started if you have the right tools. And it doesnt require a user
to be logged in for the service to remain running.

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:03
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Can any one quickly tell the comparison of running tomcat as a service or
without a windows service.
I mean what are the benifits of running tomcat as a windows service.

S H A K E E L   A H M A D



-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 6:37 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


no, the address already in use is tcpListenPort, that has to change if you
run two instances on the same machine

Filip


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: AW: Tomcat Clusterin Multicast Multiinstances


Hi again,

you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for
Tomcat here.

My problem was referring to the clustersection of server.xml rather than the
standard IP:

 mcastAddr = the multicast address, has to be the same for all the nodes
 mcastPort = the multicast port, has to be the same for all the nodes

So even when everything else can be configured per Instance, these addr
needs to be the same. So when I start up the second instance of Tomcat on
the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already
in use and it can't bind to it ...

--
INFO: Sleeping for 2000 secs to establish cluster membership
18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run
SCHWERWIEGEND: 

AW: Tomcat Clusterin Multicast Multiinstances

2004-08-18 Thread Bjoern . Andersen
Forgot to mention, that is for multiinstance-services (Which this thread was
all about at the beginning...). For single instance, you don't need the
CATALINA_BASE stuff... just compare it to the standard batch ...
Take a closer look to the line...

%EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions ...

And see afterwards what it did to the registry-entries, then you understand.

--
Björn Andersen
www.premiere.de


-Ursprüngliche Nachricht-
Von: Shakeel [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 1. August 2004 16:23
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances

Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min
memory etc.

S H A K E E L   A H M A D




-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:10 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



Its the same JRE and java classes so i'd imagine there is no difference.

Ta
Matt

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:12
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Thanks for a quick reply.

Is it only the benifit , I mean I have pc anywhere or similar tools, or even
I dont need the smart load/unload as a service.
I want  to know the comparison based on
Memory usage, performance at runtime etc.

S H A K E E L   A H M A D


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



The benefits are that you can get it to start and stop with the machine and
a non tomcat admin can start and stop it using the services. It can also be
remotely started if you have the right tools. And it doesnt require a user
to be logged in for the service to remain running.

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:03
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Can any one quickly tell the comparison of running tomcat as a service or
without a windows service.
I mean what are the benifits of running tomcat as a windows service.

S H A K E E L   A H M A D



-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 6:37 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


no, the address already in use is tcpListenPort, that has to change if you
run two instances on the same machine

Filip


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: AW: Tomcat Clusterin Multicast Multiinstances


Hi again,

you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for
Tomcat here.

My problem was referring to the clustersection of server.xml rather than the
standard IP:

 mcastAddr = the multicast address, has to be the same for all the nodes
 mcastPort = the multicast port, has to be the same for all the nodes

So even when everything else can be configured per Instance, these addr
needs to be the same. So when I start up the second instance of Tomcat on
the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already
in use and it can't bind to it ...

--
INFO: Sleeping for 2000 secs to establish cluster membership
18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run
SCHWERWIEGEND: Unable to start cluster listener.
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at
org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen
er.java:104)
at
org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener.
java:85)
at java.lang.Thread.run(Unknown Source)
-


--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Dale, Matt [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 17. August 2004 18:19
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances


Memory limit should be 2 Gig for JVM's running in a 32 bit operating system.
More for the 64 bit JVM's. I think you would have to have virtual IP
addresses on that machine and run tomcats on specific IP addresses for you
to use the multicasting.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 13:42
To: [EMAIL PROTECTED]
Subject: Tomcat Clusterin Multicast Multiinstances


Hi,

can anyone tell me how Tomcats can be configured as a cluster with session
replication when there is more than one TC-Instance on one machine?
We need multi-instance 

AW: Tomcat Clusterin Multicast Multiinstances

2004-08-18 Thread Bjoern . Andersen

When the Tomcat really SERVES someone, as in real SERVERS, there are
numerous reasons why you want to run it as a SERVICE. When you use Tomcat as
a Developer in a test or integration state on your workstation, I think it
doesn't matter if run as service or from command line.

Main use of services is e.g. detect and take action when it goes down, run
without a user logged on, start/stop/restart via basic network commands and
similar things..

--
Björn Andersen
www.premiere.de


-Ursprüngliche Nachricht-
Von: Shakeel [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 1. August 2004 17:02
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances

So nice of this , can I know hard and fast comparison between running tomcat
as a service and without a service. For example if one has to decide to run
tomcat as a service and for years she was running without a service then how
can one justify to fellow developers.

S H A K E E L   A H M A D


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:27 PM
To: [EMAIL PROTECTED]
Subject: AW: Tomcat Clusterin Multicast Multiinstances


Forgot to mention, that is for multiinstance-services (Which this thread was
all about at the beginning...). For single instance, you don't need the
CATALINA_BASE stuff... just compare it to the standard batch ...
Take a closer look to the line...

%EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions ...

And see afterwards what it did to the registry-entries, then you understand.

--
Björn Andersen
www.premiere.de


-Ursprüngliche Nachricht-
Von: Shakeel [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 1. August 2004 16:23
An: Tomcat Users List
Betreff: RE: Tomcat Clusterin Multicast Multiinstances

Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min
memory etc.

S H A K E E L   A H M A D




-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:10 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



Its the same JRE and java classes so i'd imagine there is no difference.

Ta
Matt

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:12
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Thanks for a quick reply.

Is it only the benifit , I mean I have pc anywhere or similar tools, or even
I dont need the smart load/unload as a service.
I want  to know the comparison based on
Memory usage, performance at runtime etc.

S H A K E E L   A H M A D


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 7:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances



The benefits are that you can get it to start and stop with the machine and
a non tomcat admin can start and stop it using the services. It can also be
remotely started if you have the right tools. And it doesnt require a user
to be logged in for the service to remain running.

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: 01 August 2004 15:03
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


Can any one quickly tell the comparison of running tomcat as a service or
without a windows service.
I mean what are the benifits of running tomcat as a windows service.

S H A K E E L   A H M A D



-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 6:37 PM
To: Tomcat Users List
Subject: RE: Tomcat Clusterin Multicast Multiinstances


no, the address already in use is tcpListenPort, that has to change if you
run two instances on the same machine

Filip


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 2:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: AW: Tomcat Clusterin Multicast Multiinstances


Hi again,

you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for
Tomcat here.

My problem was referring to the clustersection of server.xml rather than the
standard IP:

 mcastAddr = the multicast address, has to be the same for all the nodes
 mcastPort = the multicast port, has to be the same for all the nodes

So even when everything else can be configured per Instance, these addr
needs to be the same. So when I start up the second instance of Tomcat on
the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already
in use and it can't bind to it ...

--
INFO: Sleeping for 2000 secs to establish cluster membership
18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run
SCHWERWIEGEND: Unable to start cluster listener.
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown 

AW: Tomcat clustering

2004-08-17 Thread Bjoern . Andersen
Hmm,

not sure, but hasn't mcastAddr=srao got to be an IP-Address? Or at least I
hope that srao resolves well on all HOSTS-Files/DNS to a valid MCast-Adress
which is configured on the tomcat-servers.
Say, if you got one tomcat on each server and each server got one NIC, you
need 2 ip-adresses on this NIC, maybe even 3 (Normal IP, multicast-addr,
loadbalancing-addr). And the mcast-addr needs to be identical on all nic's
and in the range of 224.0.0.0 - 239.255.255.255 if you want to stay in the
conventions.

--
Björn Andersen
www.premiere.de

-Ursprüngliche Nachricht-
Von: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. August 2004 13:25
An: Tomcat Users List
Betreff: RE: Tomcat clustering

Hi Matt,

Here's my cluster part of server.xml. And, srao is my machine name.

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=srao
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver 
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=127.0.0.1
tcpListenPort=4000
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/
/Cluster

Thanks for the interest.

Regards,
Srinivas

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 4:56 PM
To: Tomcat Users List
Subject: RE: Tomcat clustering


I didnt mean mcastAddr, I meant tcpListenAddress, you have this set to
127.0.0.1 (Loopback) which is not available for external access so the
mulitcast will never get to it.

I'm not sure what's causing your exception though, you'd need to post the
cluster part of your server.xml for a better guess at the problem.

Ta
Matt

-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 12:05
To: Tomcat Users List
Subject: RE: Tomcat clustering


Matt,

Thanks for the reply. Do you mean mcastAddr the loopback address? If yes,
I am not using the root machine(Load Balancer, or the machine which takes
request from clients) for clustering.

And before that, seems that the cluster-nodes are not starting the cluster
service. I am getting the following exception at the console.

SEVERE: Unable to start cluster.
java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:804)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:756)
at
org.apache.catalina.cluster.MembershipFactory.getMembershipService(Membershi
pFactory.java:93)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:491)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1115)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:234

Can you please tell me where I was wrong.

Regards,
Srinivas


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 4:17 PM
To: Tomcat Users List
Subject: RE: Tomcat clustering



I think you may have 2 problems here, firstly the port has to be the same
accross all the tomcats and secondly (I could be wrong about this one) but I
think by specifying the loopback address as the listen address means that it
wont listen on the external interface, therefore the multicast will never be
heard.

Ta
Matt

-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 11:26
To: Tomcat Users List
Subject: Tomcat clustering


I am getting problems in configuring my tomcat for clustering. Nodes are not
recognizing each other. mcastAddr has the same IP for all the nodes. Can
someone tell what this property is for. My tcpListenAddress is 127.0.0.1 for
all the nodes but port is different. In my rules.xml in the Load Balancer, I
am giving the machine names for tcpListenAddress.

Still it is not working. Is there anything to be done. Why my nodes are not
recognizing each other. I appreciate any help.

Regards,
Srinivas


Tomcat Clusterin Multicast Multiinstances

2004-08-17 Thread Bjoern . Andersen
Hi,

can anyone tell me how Tomcats can be configured as a cluster with session
replication when there is more than one TC-Instance on one machine?
We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has
that changed meanwhile too?

--
Björn Andersen
Webservices
www.premiere.de

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




JK2 ISAPI in IIS6 - Where to put it?

2004-08-11 Thread Bjoern . Andersen
Hi TC-Users,
I'm using JK2-ISAPI 2.0.4 in a IIS6, communicating via AJP13 with the
Tomcat's. The /jkstatus - Page shows a lot nice info.

My question: With many web's running on one machine, where do I put the
filter / Jakarta-dir?

Each web needs it's own /Jakarta -Virtual dir, I suppose. And I tried to
configure the ISAPI-filter globally and per web. But no matter what I do,
the statuspage always shows info for that web (scroeboard) not for the
entire Server. I tried anonymous anf file for SHM, both seems to work, but
still each statuspage seems separated. I even managed to reconfigure the JK2
during runtime via JMX, but the JK's on the other web's do not seem to catch
that change.
Runtime-reconfigure via a change of workers2.properties do not seem to work
either.

--
Bjoern Andersen

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



JK2 ISAPI Reconfiguration not working?

2004-08-11 Thread Bjoern . Andersen
Hi,

I'm using JK2-ISAPI 2.0.4 in a IIS6, communicating via AJP13 wih the
Tomcat's.
There is a section saying that one can reconfigure the JK2 at runtime, say
to drain or disable a Tomcat node.
I've tried to reconfigure JK2 via configfile and JMX.

1. Via configfile, it displays that the file has changed in the scoreboard,
but doesn't update the settings.

2. Via JMX, the JK2 takes the changes, but it doesn't write the configfile
(workers2.properties) as mentioned in
http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/configweb.html#Advan
ced:%20reconfiguration%20using%20JMX
so other threads have no chance to get the changes - which I'd doubt the'd
do anyway, because of point 1.

Has anyone similar experiences, or, better, has anyone got
runtime-reconfiguration working on W2k3, IIS6 (IIS6-Mode) and JK2.0.4 ?

--
Bjoern Andersen

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



Request: Webpage update jakarta.apache.org/tomcat/connectors-doc /jk2/jk2/ for IIS-Setup

2004-08-11 Thread Bjoern . Andersen
Hi Webmasters of that site,

Some errors re: Setup on Windows/IIS/JK2 (2.0.4) took me a week to find out.
Please correct!
See resolved Bug [Bug 30383]

Problem was that the Website was outdated. The info on
http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/
configwebcom.html#Common%20properties
is invalid! It says that version is a common property, instead, it is
ver.

Also on
http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/installhowto.html#In
stallation
it says that the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector\2.0 - serverRoot has to point to the
tomcat Installation. This does not apply to environments where the tomcat is
on a different server. Instead, this entry HAS TO point to the dir where
workers2.properties resides.


Please update the Website or tell me where I can do it.
Also, would be nice to update the IIS-Part of that site, a lot referes only
to JK1, and IIS6 in IIS6-mode works too now.

Last thing: The anchors on the side would work better when you would not use
spaces in them. (e.g. ..m.html#Common%20properties - 
...html#Common_properties or similar)

--
Bjoern Andersen

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



Tomcat 5 drops remote user ?

2004-07-20 Thread Bjoern . Andersen
Hello,

is it true that TC5 drops the remote user info from the Webserver ?
with IIS-JK-TC4 remote user appears in snoop.jsp
with IIS-JK-TC5 it's gone (NULL).
Any way to bring it back?
Where (in which source-file) is it dropped?

--
Björn Andersen
Webservices 

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



JK-Connector 2 with IIS and Tomcat on different machines ?

2004-07-16 Thread Bjoern . Andersen
Hello,

we ad IIS 5 with JK 1.x running as a frontend against TC 4.x-Cluster. All
works well.
Now we wanna change to IIS6, JK2 and TC5.
In the proof-of-concept, I saw that JK2 needs Tomcat-Path to be configured
in the registry.

Why that? On our IIS-Machines, there is no Tomcat. It is running on other
machines.
Can I configure JK2 without the serverRoot in the 
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0 - key?

Why does the ISAPI-Filter-DLL need the Tomcat anyway? Don't they communicate
via TCP/IP any more?

Please help...
--
Björn Andersen
Webservices

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



JK-Connector 1.2.x on IIS6 ?

2004-07-12 Thread Bjoern . Andersen
Hello,

We run a TomCat4-Farm with JK-Connector's 1.2.x on IIS6 Frontends.
We can't upgrade to Tomcat5 / JK 2.x jet.
IIS 6 is set to IIS 5 Compatible Mode as described in the Setup.
Now I heared it is also possible to run that in normal IIS6-Mode somehow...

Can anyone help / supply a Howto?

--
Björn Andersen

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



AW: Tomcat 5 and IIS

2004-03-09 Thread Bjoern . Andersen
Hi Dave,

I'm not an expert, but we use your proposed environment.
Tomcat normally runs with Apache, even in Windows. That's why most How-To's
Refere to that configuration. (e.g. http://raibledesigns.com/tomcat/)
 I've heared that it runs better with Apache,
but with out IIS's it does also well.
We got a production environment with several IIS's clustered with WLBS.
These got
JK-Plugins (isapi-redirectors) to redirect Java-Content. Below that we got a

Tomcat-Workers-Farm. Every component is redundant and it runs quite smooth
and fast.

So even in bigger environments you can use Tomcat with IIS.

--
Björn Andersen
_ 
Webservices
 

 -Ursprüngliche Nachricht-
 Von: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 8. März 2004 21:11
 An: [EMAIL PROTECTED]
 Betreff: Tomcat 5 and IIS
 
 I am looking for an alternative to our current environment. 
 Currently we = are using JRun 3.0 for our Java needs and IIS 
 for our web configuration. = Our environment requires our use 
 of IIS. With regard to JRun, we = recently installed our 
 upgrade to version 4.0 only to find functionality = we 
 require has been removed and the configuration steps have 
 become more = complicated. We house multiple web applications 
 and have several JRun = server instances running concurrently 
 on our server. With the 4.0 = version we have been told by 
 Macromedia that we need to install a = separate JRE instance 
 for each JRun instance and copy and modify their = jvm.config 
 file as well plus several other steps.
 
 This was never the case with the 3.0 version, but the 3.0 
 version is no = longer capable of supporting our needs.
 
 I have been looking at Tomcat 5.0 and replacement but was 
 wondering how = difficult it is to configure with IIS and 
 support multiple web = applications. I did find an article 
 that talked about JK2.0 but it = mentioned the prerequisite 
 of configuring Apache. If this is true, isn't = that a bit 
 cumbersome since IIS has to be our web server?
 
 Any clarification would be greatly appreciated.
 
 Dave
 
 -
 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]



AW: Problem with session persistence

2004-03-09 Thread Bjoern . Andersen
I don't think so. When you open a new browser via File-New-Window,
It inherits all the sessiondata (cookie), so there is no way for 
Tomcat to tell a difference between the 2 clients.

However when you open a brand new browser on the same client,
it should create a new session coz the session cookie is bound to the
browser, not systemwide
--
MfG Björn Andersen
_ 
Webservices
 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 9. März 2004 11:22
 An: Tomcat Users List
 Betreff: Problem with session persistence
 
 Greetings
 
 I'm having a problem with session persistence in a web App.
 
 Problem beeing some variables are saved on the Session, and 
 we would like to make it so that any conection to a specific 
 jsp would create a new session. However, since the new 
 browser windows run on the same PID on the client, they 
 simply re-use the one the other window is using, causing a mess.
 
 Is there any way i can go around this feature?
 TIA
 Sérgio
 
 
 -
 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]



AW: Tomcat 5 and IIS

2004-03-09 Thread Bjoern . Andersen
No Apache at all.
Like described in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
You set up your IIS, then integrate the isapi_redirector into IIS (IIS-part
of JK).
This is then configured to communicate with the tomcat-instance(s) on that
machine or 
somewhere in the network.

So IIS serves normal content and ASP and stuff, and special Webs are beeing
redirect to the
Tomcat-workers to handle the Java-Content. With WLBS, this looks like ...

Client (Browser)
  ||
 WLBS
/\
IIS  JK IIS  JK
  |  \  /  |
  |   \/   |
  |   /\   |
  Tomcat 1  Tomcat 2

MfG Björn Andersen
_ 
Webservices
 

 -Ursprüngliche Nachricht-
 Von: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 9. März 2004 14:59
 An: Tomcat Users List
 Betreff: RE: Tomcat 5 and IIS
 
 Thanks for the reply
 
 So then would we need to configure an Apache entry for each 
 IIS site we are currently hosting?
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 09, 2004 2:03 AM
 To: [EMAIL PROTECTED]
 Subject: AW: Tomcat 5 and IIS
 
 
 Hi Dave,
 
 I'm not an expert, but we use your proposed environment.
 Tomcat normally runs with Apache, even in Windows. That's why 
 most How-To's Refere to that configuration. (e.g. 
 http://raibledesigns.com/tomcat/)  I've heared that it runs 
 better with Apache, but with out IIS's it does also well.
 We got a production environment with several IIS's clustered 
 with WLBS.
 These got
 JK-Plugins (isapi-redirectors) to redirect Java-Content. 
 Below that we got a
 
 Tomcat-Workers-Farm. Every component is redundant and it runs 
 quite smooth and fast.
 
 So even in bigger environments you can use Tomcat with IIS.
 
 --
 Björn Andersen
 _
 Webservices
  
 
  -Ursprüngliche Nachricht-
  Von: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] 
  Gesendet: Montag, 8. März 2004 21:11
  An: [EMAIL PROTECTED]
  Betreff: Tomcat 5 and IIS
  
  I am looking for an alternative to our current environment. 
  Currently we = are using JRun 3.0 for our Java needs and IIS 
  for our web configuration. = Our environment requires our use 
  of IIS. With regard to JRun, we = recently installed our 
  upgrade to version 4.0 only to find functionality = we 
  require has been removed and the configuration steps have 
  become more = complicated. We house multiple web applications 
  and have several JRun = server instances running concurrently 
  on our server. With the 4.0 = version we have been told by 
  Macromedia that we need to install a = separate JRE instance 
  for each JRun instance and copy and modify their = jvm.config 
  file as well plus several other steps.
  
  This was never the case with the 3.0 version, but the 3.0 
  version is no = longer capable of supporting our needs.
  
  I have been looking at Tomcat 5.0 and replacement but was 
  wondering how = difficult it is to configure with IIS and 
  support multiple web = applications. I did find an article 
  that talked about JK2.0 but it = mentioned the prerequisite 
  of configuring Apache. If this is true, isn't = that a bit 
  cumbersome since IIS has to be our web server?
  
  Any clarification would be greatly appreciated.
  
  Dave
  
  
 -
  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]
 
 
 -
 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]



AW: IIS + Tomcat 4.1.x + Load Balancing with session affinity (s ticky sessions) possible ? Yes !

2004-03-08 Thread Bjoern . Andersen
Thanks a lot, Ralph.
After some work on the jvmroute-attrib it works.
Didn't realize that the names must be exactly equal to the Worker names.
But now, thinking about it, it's the only way it makes sense.
--
MfG Björn Andersen
_ 
Webservices
 

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 8. März 2004 13:29
 An: Tomcat Users List
 Betreff: RE: IIS + Tomcat 4.1.x + Load Balancing with session 
 affinity (sticky sessions) possible ?
 
 
 I can just answer one question of yours:
 
 'How do these sticky sessions work anyway'
 
 Tomcat appends a engine specific postfix to the session id.
 (That's why you have to define a jvmroute in the engine tag)
 
 An incoming request is balanced depending on the included 
 postfix of the session id. (Under mod_jk there is a mapping 
 between jvmroute and the name of the worker)
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 08, 2004 1:16 PM
  To: [EMAIL PROTECTED]
  Subject: AW: IIS + Tomcat 4.1.x + Load Balancing with 
 session affinity 
  (sticky sessions) possible ?
  
  How do these sticky sessions work anyway ? Is there a docu 
 or will I 
  have to go through the source ?
  
 
 -
 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]



AW: JK contra JK2 with IIS-Authentification

2004-03-08 Thread Bjoern . Andersen
Hi Piccoli  Group,

Yes, it works (-ish) with request.tomcatAuthentication=false,
but despite of what the switch should do, the Tomcat is still
Requesting a full groups-list from the DC / AD every time, even if the
IIS has already done the auth. On big systems this creates a not bearable 
network load and delay.

Is this a known prob ?
Is my version/config wrong or is it meant to do that ?
If yes, why ?

--
Björn Andersen
_ 
Webservices
 

 -Ursprüngliche Nachricht-
 Von: Piccoli, Lucio [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 9. März 2004 00:06
 An: Tomcat Users List
 Betreff: RE: JK contra JK2 with IIS-Authentification
 
 Have you tried the setting in jk2.proprties
 
 #gets tomcat to obtain authentication from jk which gets from 
 IIS request.tomcatAuthentication=false
 
 
 -lp
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
  Sent: Monday, 8 March 2004 10:23 PM
  To: [EMAIL PROTECTED]
  Subject: JK contra JK2 with IIS-Authentification
  
  Hi Group,
  
  We used JK 1.2.5 isapi-redirector in our IIS. The IIS 
 authenticates the
  Users against the domain, and many applications take this info from
  request.getremoteuser and work with it.
  
  With JK2, this doesn't work any more. There is no Username passed to
  Tomcat.
  
  Why? Or anybody knows a workaround?
  
  Thanx for your braintime..
  --
  Björn Andersen
  
  
 -
  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]
 

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



IIS + Tomcat 4.1.x + Load Balancing with session affinity (stick y sessions) possible ?

2004-03-08 Thread Bjoern . Andersen
Hi Group,

We got a small webfarm with 2 IIS  JK on a WLBS balancer. Behind them are
two Tomcat workers on different machines. So we need Session affinity to
have the JK choose the right (same) Tomcat for the session.

Client (Browser)
  ||
 WLBS
/\
IIS  JK IIS  JK
  |  \  /  |
  |   \/   |
  |   /\   |
  Tomcat 1  Tomcat 2

It is possible and well described for Apache, like in
http://raibledesigns.com/tomcat/ , but I can't find a Howto for IIS.

Is this Possible for IIS ?
How ?

(Versions: IIS v.4, JK 1.2.5, Tomcat 4.1.24, j2sdk 1.4.2)

Thanx for your braintime..
--
Björn Andersen

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



AW: IIS + Tomcat 4.1.x + Load Balancing with session affinity (s ticky sessions) possible ?

2004-03-08 Thread Bjoern . Andersen
Thanks, but that is exactly what I need to know.
We can't replicate sessions coz our crap Framework can't serialize the
sessions.
So we depend on sticky sessions to get to the right worker.
I thought the code for mod_jk and isapi redirector is quite similar or
equal, apart from the interface bit, of cause. So why doesn't it work on IIS
?

How do these sticky sessions work anyway ? Is there a docu or will I have to
go through the source ?

--
Björn Andersen

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 8. März 2004 13:06
 An: Tomcat Users List
 Betreff: RE: IIS + Tomcat 4.1.x + Load Balancing with session 
 affinity (sticky sessions) possible ?
 
 
 I don't know if your suggested solution works with IIS.
 
 But what should work is a solution without sticky sessions.
 (If that works for you depends on your application)
 
 You can use tomcat with session replication:
 http://www.apache.org/~fhanik/
 
 I'm not aware of the current state of the backport.
 (The codebase of tc5 had some changes in the last weeks)
 
  -Original Message-
  From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 08, 2004 12:49 PM
  To: [EMAIL PROTECTED]
  Subject: IIS + Tomcat 4.1.x + Load Balancing with session affinity 
  (sticky sessions) possible ?
  
  
  We got a small webfarm with 2 IIS  JK on a WLBS balancer. 
  Behind them are two Tomcat workers on different machines.
  So we need Session affinity to
  have the JK choose the right (same) Tomcat for the session.
  
  Client (Browser)
||
   WLBS
  /\
  IIS  JK IIS  JK
|  \  /  |
|   \/   |
|   /\   |
Tomcat 1  Tomcat 2
  
  It is possible and well described for Apache, like in 
  http://raibledesigns.com/tomcat/ , but I can't find a Howto for IIS.
  
  Is this Possible for IIS ?
  How ?
  
  (Versions: IIS v.4, JK 1.2.5, Tomcat 4.1.24, j2sdk 1.4.2)
  
 
 -
 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]



JK contra JK2 with IIS-Authentification

2004-03-08 Thread Bjoern . Andersen
Hi Group,

We used JK 1.2.5 isapi-redirector in our IIS. The IIS authenticates the
Users against the domain, and many applications take this info from
request.getremoteuser and work with it.

With JK2, this doesn't work any more. There is no Username passed to Tomcat.

Why? Or anybody knows a workaround?

Thanx for your braintime..
--
Björn Andersen

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