Re: JSTL

2005-11-28 Thread Lists

Try this.

download : http://cvs.apache.org/builds/jakarta-taglibs/nightly/

In unix

gzip -c ~/dls/jakarta-taglibs-20051122.tar.gz | tar xvf -

mv  jstl.jar and standard.jar (from jakarta-taglibs/standard/lib/) to  
$CATALINA_HOME/shared/lib


Now its available to all your webapps..

This would resolve the WEB-INF/lib issue you pointed out.

Does that help?


On Nov 22, 2005, at 20:04, Behrang Saeedzadeh wrote:


Hi,

Isn't JSTL a standard part of the J2EE 1.4 Web containers? Shouldn't
it be available to Web apps out of the box with no need to include the
JAR files in the WEB-INF/lib and referencing to their tlds in the
web.xml?

Thanks in advance,
Behi

--
"Science is a differential equation. Religion is a boundary limit"  
- Alan Turing


Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa



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



Re: JDBC/MySQL user login goes stale

2005-11-29 Thread Lists
This is an interesting problem.   But first try setting   
autoReconnect=true in your connections string.


If you continue to experience a timeout..  Check the logs, and see  
what specifically is happening.  You may be experiencing an  
exhaustion of connections not being released properly.


If it is a true timeout and autoReconnect does not solve it... try  
writing a  heart beat (1/hour) to test if this keeps it up and running.


Be cognizant of connections NOT being returned back to the pool by a  
proper close.  Which does not mean that you're not closing correctly  
from your code, you maybe experiencing a close issue with JDBC.  So,  
the version of JDBC is certainly another item to check. :-)


Hope that helps!
jes

On Nov 29, 2005, at 2:21, David W. Brown wrote:

Hello TC dev and Gurus, I have a webapp comprised of several  
Servlets and JSP pages. The webapp is functioning very well but  
after a few hours of no connections or interaction the TC webapp  
loses its connection with the MySQL DB. We are using the server.xml  
defined JDBC/MySQL security model using the users and user_roles  
tables DB structure. The logins work perfectly until a few hours of  
(like overnight) in attendance. Even thought the TC Servlet server  
is still up and running logins all fail. After restarting TC the  
login mechanism works perfectly. Particulars follow. Please advise.


TC Servlet server 5.5.7
MySQL 4.1

OS Windows XP (whistler).

David Brown
IT/Systems
USM-I KBR-Central
APO AE 09316

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



Re: JSP on apache

2005-11-29 Thread Lists

Mukesh,

I would use tomcat with Apache to accomplish this...

Or jetty.


the links are below:


To integrate the Tomcat server processes with the Apache HTTP server  
we need the mod_jk module, which implements the interface between  
Tomcat and Apache, combined with some small steps to configure Apache  
and Tomcat to our needs.


found here :
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html

Jetty Rox:  its raw baby!! But it roCKS
http://jetty.mortbay.org/jetty/




On Nov 29, 2005, at 8:56, mukesh wrote:


Hi friends,



How can I run JSPs on apache server? My apache server  
is running
on Linux. In fact I have developed some web services in Java (and  
JSP) and
want to deploy on the same server. Is it possible to deploy them  
directly or

is there some other way around?



Please advice.



Regards

Mukesh










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



RE: Coyote connector and documentation..

2008-07-29 Thread Lists
Ok thats great, I think i came across the 4.1 connector docs by googling and
wasnt able to navigate to that page easily! Thanks.

Dan

- Original Message 
From: Tomcat Users List 
To: Tomcat Users List 
Subject: RE: Coyote connector and documentation..
Date: 28/07/08 16:52

> > From: Dan Keeley [mailto:[EMAIL PROTECTED]
> > Subject: Coyote connector and documentation..
> >
> > The tomcat documentation talks about parameters such as
> > maxProcessors rather than maxThreads which seems to
> > be the term used everywhere else.
> 
> Which Tomcat doc still talks about maxProcessors?  This is the link to the
http connector doc for 5.5:
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
> 
> > Also; The documentation on the http connector is linked in
> > with the tomcat 4.1 docs.
> 
> Again, where do see that?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Does the http connector have any kind of debug logging?

2008-08-01 Thread lists
Hi,

I've been trying to enable debug logging on my http connector, but it
never seems to go anywhere. ( Tomcat 5.5 )

I tried debug="4" in the connector but that didnt seem to generate
something.  Is there a full class name for the connector i can use, and
set that to DEBUG in the log4j perhaps?

Indeed, doesnt the connector actually have any debug logging as part of it?

Thanks!
Dan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat - threads / throughput limits?

2007-11-08 Thread lists
Hi,

We have an architecture where we have many tomcat app servers load
balanced by apache at the front.

In resolving our current bottleneck i used JProfiler to see what the
tomcat applications were doing and when under high load there are a lot of
threads which are blocked on this:

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()

This suggests that they are spending all their time waiting for tomcat to
run them, either way they're not runnable anyway.

Our app pushes through huge quantites of very quick requests - typically
each request takes a total of 50ms.  We have a limit of 300 connections on
our AJP connector.

The point of blocked threads occurs way before we hit that limit.  At the
same time neither the machine is busy, nor are there any obvious problems
with memory usage for the instance.

And indeed; Adding more app servers keeps the load to each one down and
does resolve the problem - i.e. we can increase throughput.

So; My question is, is there a reccomended limit to how many threads
tomcat can handle before it spends more time managing threads than it does
doing real work?

Thanks!
Dan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat - threads / throughput limits?

2007-11-08 Thread lists

>
> Have you tried running your profiler against a tomcat not doing ANY
> requests?
>
> I agree with Jim on this one - These are threads WAITING on a
> connection...
> and not doing anything.
>
> Have a look in tomcat manager, and then you can see how many 'free'
> connections
> you have.
>
>

We only see the blocked threads when the instance is under heavy load. 
When the instances is "clean" and newly started most threads are idel. 
when it's under medium load you see a few are processing and the vast
majority of the rest are all in "net i/o"

Then under very heavy load you start to see the blocking...

Well thats what we see anyway!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CPU usage quirk with multiple tomcat instances

2008-05-02 Thread Lists
Hi,

We have a Tomcat app that is loadbalanced by hardware.  I have 4 boxes
available in our test env, all of which vary slightly but not massively in
spec.

Anyway I moved from 2 tomcat instances on each machine ( listening on
different ports ) down to 1 and I noticed for the same load the cpu
utilisation dropped by 20%.  Interesting, how can this be explained?  Is
this the extra effort in tomcat or something?  Or is it memory related? the
2 instances had 1gb each, and the single one has been given 4gb.  However I
have jprofiled the instance and it has never seemed memory hungry.  Anyway I
suspect even at 2gb for 1 instance it would still be 20% less cpu - i can
always do a run to prove this if people think that necessary..

Another thing i've found is that on one server I have abnormally high CPU
utilisation for the same load.  I've checked the logging levels are all the
same as are the java VM and the VM config settings.  I wonder what else
could cause this?  All i can think is some sort of OS or hardware
malfunction! maybe the CPU cache is duff or something.

Many thanks to any input to my Friday weird-ness!
Dan


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CPU usage quirk with multiple tomcat instances

2008-05-02 Thread Lists
> My guess (and that's all it is) is that you have eliminated much of the 
> context-switching overhead that two instances would have compared to one.

Ah I see.  I guess i can look at that with mpstat and look at things like
thread migrations etc.  Important because if we install more CPU's i guess
that may mitigate the context switching overhead.  Or maybe we can gain
performance by tying zones to one or two cpu's.
 
> What is this cpu (type and speed) compared to the others?  If it's a 
> slower or less-capable (no numeric coprocessor, etc) cpu, the same load 
> would be a high percentage of its capability.

Opteron 254 vs 252.  So 0.2ghz less but afaik no other difference.  Not
enough of a difference to account for the additional cpu.  so this box uses
80% cpu vs 30% on the other one for the same load.  the only other diff in
the box is that the better one is a Sun M2 X4100 rather than just a plain
X4100 - the only difference between those seem to be DDR2.
 
> > Many thanks to any input to my Friday weird-ness!
> > Dan
> >   
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CPU usage quirk with multiple tomcat instances

2008-05-06 Thread Lists
Yes, same webapp load - i.e. they're both handling the same number of
transactions per second.

I guess the only advantage of multiple JVM's is reliability - if one
instance goes down the other can still handle load on that machine.

Also; I guess someone thought originally that 2 instances doing less work
would be easier for the VM to handle and therefore more performant than one
instance doing it all - clearly not!  ( I didnt set this architecture up -
If it's best practice to use one VM on each app server then fair enough -
i'd like to read up why tho! )

Thanks!
Dan

- Original Message 
From: Tomcat Users List 
To: Tomcat Users List 
Subject: Re: CPU usage quirk with multiple tomcat instances
Date: 04/05/08 12:49

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Da,
> 
> Lists wrote:
> |> My guess (and that's all it is) is that you have eliminated much of
the
> |> context-switching overhead that two instances would have compared to
one.
> |
> | Ah I see.  I guess i can look at that with mpstat and look at things
like
> | thread migrations etc.  Important because if we install more CPU's i
guess
> | that may mitigate the context switching overhead.  Or maybe we can gain
> | performance by tying zones to one or two cpu's.
> 
> Is there any advantage to running multiple JVMs on a single machine? Why
> not just give your single JVM a big chunk of memory and let it do its
thing?
> 
> | Opteron 254 vs 252.  So 0.2ghz less but afaik no other difference.  Not
> | enough of a difference to account for the additional cpu.  so this box
> uses
> | 80% cpu vs 30% on the other one for the same load.
> 
> Do you mean "same webapp load"? Obviously, that addition load is
coming
> from /somewhere/. What about other services running on the same machine?
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkgdrqkACgkQ9CaO5/Lv0PCgqACfRxKediPbJyxkYpcBA0z1Qslt
> 5M8An1t6VYvyOh3+tMThcXqIZcHQFGVc
> =y2AR
> -END PGP SIGNATURE-
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CPU usage quirk with multiple tomcat instances

2008-05-08 Thread Lists
we use sar and look at cpu utilisation..

- Original Message 
From: Tomcat Users List 
To: Tomcat Users List 
Subject: Re: CPU usage quirk with multiple tomcat instances
Date: 07/05/08 08:13

> btw, how do you measure it? vmstats? top?
> 
> On Wed, May 7, 2008 at 9:40 AM, Dan Keeley <[EMAIL PROTECTED]>
wrote:
> > We dont have synchronisation issues - I've already profiled
extensively with
> > jprofiler..  Well we did, but after using jprofiler we dont :)
> >
> >  Err, I think our app is the same as yours :) What im saying is that
for the
> > same load the machine uses more cpu with 2 tomcat instances...  So i
guess
> > that is correct, i was just looking for why!
> >
> >  Dan
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CPU usage quirk with multiple tomcat instances

2008-05-12 Thread Lists
no; We run sar and capture data every 5 seconds.

- Original Message 
From: Tomcat Users List 
To: Tomcat Users List , Lists
<[EMAIL PROTECTED]>
Subject: Re: CPU usage quirk with multiple tomcat instances
Date: 08/05/08 10:21

> but sar only shows you 10 minute averages ,right?
> It would never show you any peaks.
> 
> leon
> 
> On Thu, May 8, 2008 at 12:09 PM, Lists <[EMAIL PROTECTED]>
wrote:
> > we use sar and look at cpu utilisation..
> >
> > - Original Message 
> > From: Tomcat Users List <users@tomcat.apache.org>
> > To: Tomcat Users List <users@tomcat.apache.org>
> > Subject: Re: CPU usage quirk with multiple tomcat instances
> > Date: 07/05/08 08:13
> >
> >> btw, how do you measure it? vmstats? top?
> >>
> >> On Wed, May 7, 2008 at 9:40 AM, Dan Keeley
&lt;[EMAIL PROTECTED]&gt;
> > wrote:
> >> &gt; We dont have synchronisation issues - I've already
profiled
> > extensively with
> >> &gt; jprofiler..  Well we did, but after using jprofiler we
dont :)
> >> &gt;
> >> &gt;  Err, I think our app is the same as yours :) What im
saying is that
> > for the
> >> &gt; same load the machine uses more cpu with 2 tomcat
instances...  So i
> > guess
> >> &gt; that is correct, i was just looking for why!
> >> &gt;
> >> &gt;  Dan
> >>
> >>
-
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > 
> > Message sent using UebiMiau 2.7.10
> >
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Message sent using UebiMiau 2.7.10



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring second tomcat instance on same box

2009-09-17 Thread lists
before yo go lambasting about the inner workings of email, read the RFC.

Now we've all made the mistake of changing subject lines. So can we please move 
on now

Thanx

Sent via BlackBerry from T-Mobile

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat hangs on Startup

2009-09-22 Thread lists
Path perhaps ?
What's defined for java_home ?
Sent via BlackBerry from T-Mobile

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Keepalives with tomcat 5.5 http connector?

2010-06-09 Thread lists
Hi,

Having done some packet tracing with tomcat6 vs tomcat5.5 it seems that
the 5.5 http connector doesnt support keepalives.  Is that right?

The doco is unclear, however i did read somewhere, that the
"connectionTimeout" in tomcat5.5 is used for the keepalive timeout?
However I cant get this to work.

Thanks,
Dan


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Keepalives with tomcat 5.5 http connector?

2010-06-09 Thread lists
Sure:

java version "1.5.0_08"
Solaris 10 x86
Servlet Engine: Apache Tomcat/5.5.17

The connector is setup like so:



I'm testing with a JMeter SOAP request, which has keepalive turned on,
then using wireshark to count packets, and comparing 5.5 to 6.

Thanks,
Dan

>> From: li...@dankeeley.co.uk [mailto:li...@dankeeley.co.uk]
>> Subject: Keepalives with tomcat 5.5 http connector?
>>
>> Having done some packet tracing with tomcat6 vs tomcat5.5
>
> Care to provide exact versions?
>
>> it seems that the 5.5 http connector doesnt support keepalives.
>> Is that right?
>
> Works fine for me.
>
>> The doco is unclear
>
> What "doco" are you referring to?  The real documentation is here:
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
>
> (Look for the maxKeepAliveRequests attribute).
>
> Seems to be quite explicit.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat logging

2022-06-09 Thread tomcat-lists
Hi Alan,

On 09.06.22 12:56, Alan F wrote:
> Tomcat logging
> 
> I would like to add a delimiter or characters " "  around {user-agent} for 
> logging,  I wanted it in double quotes for example "Mozilla 5.0.."  but can't 
> seem to make it work. Or even adding a # symbol before would help any ideas?

I assume, you refer to access logging. Recent Tomcat has a proper example 
already in the standard server.xml (IIRC for a long time), just use the " 
XML
entity, where you need it (taken from 9.0.64):




If you are happy with a standard combined pattern, just use pattern="combined", 
it contains user agent in double quotes.

See https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Log_Valve 
for complete pattern information.

hth,
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Archive or package install

2021-06-18 Thread tomcat-lists
Hi Onno,

On 18.06.21 07:07, Sugar Moose wrote:
> I am using Ansible role robertdebock.tomcat to install Tomcat. This role uses 
> archives from the Tomcat site to install Tomcat. I have always thought that 
> this is a fine approach but the customer has pointed out that a package 
> install is preferred because it makes installing security updates easier. 
> This customer uses Ubuntu 18.04 and the position of the InfraOps engineers is 
> that installing Tomcat from the official Ubuntu repository is always 
> preferred. 

Installing Tomcat directly from the archives is easy and straight forward, in 
my opinion it should be perfectly fine using upstream as source (you should at 
least verify the download).
Especially, if Tomcat plays a major role of the system (i.e. running some 
business critical applications), I would always stick to the version from 
Tomcat archives. You will end up with a more
recent version of Tomcat, as it is actively developed, those versions will 
contain all security fixes (directly from the team and without possible 
backporting of security fixes). If you use
CATALINA_HOME and CATALINA_BASE variables you can easily switch between 
different Tomcat versions, making it very easy to manage updates and possible 
necessary rollbacks.

I would only stick to the distro-provided packages, if it is a small (in other 
words not that important) application running in Tomcat. Just for reference: 
With Ubuntu 18.04, you would end up
with 9.0.16 vs. 9.0.48 (Tomcat project) or 8.5.39 vs. 8.5.68 (Tomcat project), 
which is about 2 years old software. For any errors you might get on distro 
packages, first hint would most
likely be to update to a recent Tomcat version. Even if security fixed are 
backported by the distro, you would end up with versions missing a lot of fixes 
and improvements.

> I don't know how exactly using apt packages makes life a lot easier when it 
> comes to security updates. I think it depends. If Ansible manages the version 
> it looks more or less the same to me. The Ansible role would have an var for 
> example tomcat_version and the value would determine the what version is on 
> the system. Updating Tomcat using Ansible would be same proces: update 
> tomcat_version var and provision the node. When Ansible is not managing the 
> version but is used for example only for the initial install using Ansible 
> package module it becomes a bit of a puzzle to figure out how this would 
> work. And also would have some drawbacks. Ansible is good at configuration 
> management and orchestration for example. Apt not really. 

Yes, Ansible is much more flexible for managing the configuration and 
deployment-parts. You will need something for that task, even if you use the 
distro-provided packages.

> What is the position / what are the thoughts on this in the Tomcat community? 
> On the Tomcat website I could find no information on package install. I don't 
> think a recommended installation approach is mentioned there. 

In short: If your application in Tomcat is important, use the Tomcat archive up 
to date versions, if not distro packages might be sufficient. This might be 
challenging, if Tomcat is managed by
the infrastructure team (from my experience, there is always a trend towards 
the distro packages, sometimes with the argument support by the distro). It 
might help, if managing the Tomcat can
be done by the applications support/devops team (however, that might depend on 
the organisation constraints).

hth,
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Archive or package install

2021-06-18 Thread tomcat-lists
Hi Christopher,

On 18.06.21 20:54, Christopher Schultz wrote:
>> I would only stick to the distro-provided packages, if it is a small
>> (in other words not that important) application running in Tomcat. Just
>> for reference: With Ubuntu 18.04, you would end up
>> with 9.0.16 vs. 9.0.48 (Tomcat project) or 8.5.39 vs. 8.5.68 (Tomcat
>> project), which is about 2 years old software.

> The above statement is *very* misleading.
> 
> To understand why it's misleading, you have to understand the Debian "way" of 
> package-management. Ubuntu is Debian-derived and, although they have their 
> own package repositories, etc., they do
> inherit from upstream and do make some changes on their own separate from 
> upstream.

Thanks for picking that up, I was not clear enough by just referencing the 
security back ports in one sentence. It is right, that those distro packages 
get updates. My main point is, that due
to the update policy of Ubuntu (and Debian as well), not all changes and 
updates will get into the distro packages. This might be an issue, especially 
if IT organisation stick to a specific
distros version for a long time. This is not an issue with the distro policy or 
updates (never wanted to blame anyone from the Debian or Ubuntu team for that), 
but with the update policies of
the running org. I was focusing on *Ubuntu 18.04* (which was mentioned by 
Onno), for that change log [1] mentions Wed, 11 Sep 2019 as last update.

> All that junk at the end (-4~bpo9+1_all) indicates the various updates that 
> have been applied after the original 9.0.16. If you read the changelog[1] for 
> Buster, you'll see that it was last
> updated as recently as 2021-04-12 to apply fixes for CVE-2021-25122 and 
> CVE-2021-25329 (thanks, Emmanuel!). In fact, in Buster, you are getting 
> 9.0.31. I'll bet if you look at the Ubuntu
> changelog for your package, you'll find something similar.

You are right, if you manage your base system and keep it updated to recent 
version (not my experience though), this will be fine. However if you stick as 
long as possible to a distros version
(there is already a new Ubuntu LTS out for over a year, some time to update), 
you will have a gap to more recent Tomcat versions. Comparing Ubuntu 18.04 
Tomcat versions to current Ubuntu or
Debian versions, is not what was asked by the Onno. My experience is that some 
organisations try to stay on a specific distro version as long as possible.

> If you are getting 9.0.16 from your Ubuntu repository, I think you may be 
> getting "left behind" by something. The current Ubuntu package should 
> actually be a base version of 9.0.43. Older
> versions of Ubuntu have older base Tomcat versions.

Again current vs. Ubuntu 18.04 is a different story. My apologies, I should 
have been clearer in my first post.

[1] 
https://changelogs.ubuntu.com/changelogs/pool/universe/t/tomcat9/tomcat9_9.0.16-3ubuntu0.18.04.1/changelog

regards,
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP error response payload

2020-02-08 Thread tomcat-lists
Hi Saurav,

On 08.02.20 07:47, Saurav Sarkar wrote:
> Through tomcat access valve i can view the HTTP request url ,response code
> etc.
> 
> But i can not view the error response being sent in the form of JSON
> payload.
> 
> Is their any valve/filter/ any other setting on tomcat level which can
> enable this or applications (server and clients) themselves have to log it.

Logging HTTP request or response bodies in access logs (or similar) is not 
common as this can
be anything from a simple (short) string to long binary data. If you need 
specific errors, I
would suggest to log it in your application specific logs (you can add session 
id "%S" or other
identifiers to your access log for easier mapping, see 
https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Log_Valve
for details).

If you do not have a chance to add this to your logs you can implement a 
ServletFilter which logs
the body of requests for certain requests.

hth,
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Getting Tomcat to display a web page hosted by HTTPD

2006-06-15 Thread Filip Hanik - Dev Lists

how are you redirecting to

http://localhost/Dir1/serverMessage.html

Filip



Mann, Bradley wrote:

Hello,

I have Tomcat running a web application behind HTTPD using the Jakarta
connector. Here is my scenario:

I navigate to http://localhost/Dir1/

This is essentially a login page for my web application. The login link
directs to

http://localhost/webapps/MyApp/servlet/Login?Tool=X

And HTTPD uses this context path to start my web application.

The problem I am having is getting my web application to display a web
page that is located in a folder in the document_root of HTTPD, namely

http://localhost/Dir1/serverMessage.html

Every time the web application attempts to display this page I instead
get a 404 error, stating Dir1/serverMessage.html cannot be found. How
can I get my web application to display this page?

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292


  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 6/14/2006
  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists

have you set jvmRoute in your engine element (server.xml)?
this is how mod_jk does session affinity

filipp



Sharma, Siddharth wrote:
I have IBM HttpServer 2.0 (it is an apache essentially) fronting two 
tomcat instances (version 5.5.16) using mod_jk over ajp13. 
I have configured a load balancer worker to spray load across two workers
representing these two tomcat instances. 
And it works. 
The problem is I do not see a session id cookie in the response, so I am not
sure if it is maintaining session affinity. 
I have configured the load balancer worker for session affinity with this
directive in worker.properties: 
worker.lb_worker.sticky_session=True 

What am I missing? 
What is the exact name of the cookie that mod_jk injects?


I apologize if this is not the right mailing list for connector questions
and will appreciate if someone could point me to it.

Thanks in advance
-Sidd 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_proxy a risk?

2006-06-16 Thread Filip Hanik - Dev Lists

you should turn off your proxyrequests

ProxyRequests Off

first line in the documentation
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

you can still use ProxyPass without using proxyrequests

Christoph Kukulies wrote:

I wonder whether mod_proxy can be a security risk in Apache2.0.54,
when being enabled in conjunction with tomcat (5.5).

A machine which is open to the world (on port 80 only) is blacklisted
at cbl.abuseat.org and I wonder how come.

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat configuration error

2006-06-16 Thread Filip Hanik - Dev Lists

Fredrik Andersson wrote:

Hi all

Ok so heres the deal. I want my tomcat installation (5.5.17) to load
pages from /var/www/webapps/R2M/SMC

I´m also running a virtual host setup so I edit my server.xml file and
point the appBase for the directory to /var/www/webapps and then I have
the context part of the configuration inside
$CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase
  

ok, this path is $CATALINA_HOME//

are you saying you renamed your engine element in server.xml to appserve?


variabel to "R2M/SMC"
  
this is a weird setup, by setting appBase to /var/www/webapps, tomcat 
would want webapps in that directory

so you would have the app in /var/www/webapps/SMC
and tomcat would auto deploy it


Now when I point my webbrowser to a jsp file in my directory I recieve a
404 error.. :(

What went wrong in my configuration?

Any tip/help is greatly appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat configuration error

2006-06-16 Thread Filip Hanik - Dev Lists

the more logical setup would be (assuming the SMC is a webapp)



   

   



I changed three things
1. Host.appBase
2. Context.path
3. Context.docBase

Filip



Fredrik Andersson wrote:

Hi, thanks for answering=)
I´m still a little confused so I will try to describe what kind of setup
I want and we will se if it becomes clearer.

I want my internet files to reside inside of
/var/www/webapps/R2M/SMC

Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
servlets thats are mapped through ip/servlets/* to tomcat.

As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
SMC folder and apache finds them both and the .jsp file gets forwarded
to tomcat (it says that tomcat can´t find the file). Now where is tomcat
looking for the files?

$CATALINA_HOME/conf/server.xml (engine part)
 





then I read that it was good to seperate the context part into a
different file for every host and I understood that they were supposed
to reside inside of $CATALINA_HOME/conf//.xml

So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds


Did I set this up wrong?


Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

  

Fredrik Andersson wrote:


Hi all

Ok so heres the deal. I want my tomcat installation (5.5.17) to load
pages from /var/www/webapps/R2M/SMC

I´m also running a virtual host setup so I edit my server.xml file and
point the appBase for the directory to /var/www/webapps and then I have
the context part of the configuration inside
$CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase

  

ok, this path is $CATALINA_HOME//

are you saying you renamed your engine element in server.xml to appserve?



variabel to "R2M/SMC"

  

this is a weird setup, by setting appBase to /var/www/webapps, tomcat
would want webapps in that directory
so you would have the app in /var/www/webapps/SMC
and tomcat would auto deploy it



Now when I point my webbrowser to a jsp file in my directory I recieve a
404 error.. :(

What went wrong in my configuration?

Any tip/help is greatly appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: flushing system.out

2006-06-16 Thread Filip Hanik - Dev Lists
System.out.println is a synchronized call, and will become a performance 
bottleneck on highly concurrent applications,

the ideal is to use a logging framework, and setup an async logger

Filip


Glenn Holliday wrote:
I frequently see it used for debugging.  It's an easy place to log to. 
That's also when you most want unbuffered output.  Is that practice 
discommended for other reasons?


--
Glenn Holliday
Computer Sciences Corporation
[EMAIL PROTECTED] 540-644-6636



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Tim Funk <[EMAIL PROTECTED]> 
06/16/2006 07:14 AM

Please respond to
"Tomcat Users List" 


To
Tomcat Users List 
cc

Subject
Re: flushing system.out






I doubt you want to print to system.out in a servlet (or jsp).






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat configuration error

2006-06-16 Thread Filip Hanik - Dev Lists
R2M.xml? where did that come from? it should be SCM.xml, although the 
name isn't important.


Your original setup was confusing, cause you have RM2/SCM (inside of 
webapps)

so which one is the webapp, RM2 directory, or the SCM directory?

They key to your problem though, is probably the  
instead of 


Filip


Fredrik Andersson wrote:

ok, and my R2M.xml configuration file should reside inside of
$CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
Will try it out, thanks a million. Really nice of you taking youre time
explaining this to me :)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

  

the more logical setup would be (assuming the SMC is a webapp)



   

   



I changed three things
1. Host.appBase
2. Context.path
3. Context.docBase

Filip



Fredrik Andersson wrote:


Hi, thanks for answering=)
I´m still a little confused so I will try to describe what kind of setup
I want and we will se if it becomes clearer.

I want my internet files to reside inside of
/var/www/webapps/R2M/SMC

Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
servlets thats are mapped through ip/servlets/* to tomcat.

As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
SMC folder and apache finds them both and the .jsp file gets forwarded
to tomcat (it says that tomcat can´t find the file). Now where is tomcat
looking for the files?

$CATALINA_HOME/conf/server.xml (engine part)
 





then I read that it was good to seperate the context part into a
different file for every host and I understood that they were supposed
to reside inside of $CATALINA_HOME/conf//.xml

So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds


Did I set this up wrong?


Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:


  

Fredrik Andersson wrote:



Hi all

Ok so heres the deal. I want my tomcat installation (5.5.17) to load
pages from /var/www/webapps/R2M/SMC

I´m also running a virtual host setup so I edit my server.xml file and
point the appBase for the directory to /var/www/webapps and then I have
the context part of the configuration inside
$CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase


  

ok, this path is $CATALINA_HOME//

are you saying you renamed your engine element in server.xml to appserve?




variabel to "R2M/SMC"


  

this is a weird setup, by setting appBase to /var/www/webapps, tomcat
would want webapps in that directory
so you would have the app in /var/www/webapps/SMC
and tomcat would auto deploy it




Now when I point my webbrowser to a jsp file in my directory I recieve a
404 error.. :(

What went wrong in my configuration?

Any tip/help is greatly appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  

--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists

how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:

Yes I did
jvmRoute is set to the worker name.
still, no jsessionid cookie.





-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 7:18 AM

To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

have you set jvmRoute in your engine element (server.xml)?
this is how mod_jk does session affinity

filipp



Sharma, Siddharth wrote:
  
I have IBM HttpServer 2.0 (it is an apache essentially) fronting two 
tomcat instances (version 5.5.16) using mod_jk over ajp13. 
I have configured a load balancer worker to spray load across two workers
representing these two tomcat instances. 
And it works. 
The problem is I do not see a session id cookie in the response, so I am


not
  
sure if it is maintaining session affinity. 
I have configured the load balancer worker for session affinity with this
directive in worker.properties: 
worker.lb_worker.sticky_session=True 

What am I missing? 
What is the exact name of the cookie that mod_jk injects?


I apologize if this is not the right mailing list for connector questions
and will appreciate if someone could point me to it.

Thanks in advance
-Sidd 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  




  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat configuration error

2006-06-16 Thread Filip Hanik - Dev Lists
no worries, lets start from the beginning, after that I will send you 
off to take a tomcat and/or servlet tutorial




The appbase is where tomcat will autodeploy applications from, an 
application, or webapp is defined by two means

1. A directory
2. A war file

So in your case, the directory SMC is your webapp, hence the path to the 
application would be:

/var/www/webapps/SMC (with subdirectories and files like below)
 - WEB-INF
   - web.xml
 - index.jsp

You have four choices to deploy this webapp

1. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
  The app will get deployed as /SCM

2. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
  and put SCM.xml inside TC_HOME/conf/appserver/RM2/
  The app will get deployed twice, /SCM and /

3. put the SCM directory inside Host.appBase, ie, /var/www/webapps/SCM
  Create a file named context.xml ie 
/var/www/webapps/SCM/META-INF/context.xml
  The app will get deployed once as "/", tomcat will automatically 
create SCM.xml inside TC_HOME/conf/appserver/RM2/


4. Put the SCM directory anywhere on the file system, for example /tmp/SCM
  and put SCM.xml inside TC_HOME/conf/appserver/RM2/
  and inside SCM.xml do 
  The app will get deployed once as "/"

Filip


Fredrik Andersson wrote:

ok, the application I want to launch is SMC so where should I place the
SMC.xml file?

I´m really confused, not because I dont know what I want to do, but there
are tons of different sources telling me different things and none
works.. :(

I understand that I must be anoying and it´s really nice of you to help
me. =)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:

  

R2M.xml? where did that come from? it should be SCM.xml, although the
name isn't important.

Your original setup was confusing, cause you have RM2/SCM (inside of
webapps)
so which one is the webapp, RM2 directory, or the SCM directory?

They key to your problem though, is probably the 
instead of 

Filip


Fredrik Andersson wrote:


ok, and my R2M.xml configuration file should reside inside of
$CATALINA_HOME/appserver/R2M ? or did I missunderstand you on that part?
Will try it out, thanks a million. Really nice of you taking youre time
explaining this to me :)

Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:


  

the more logical setup would be (assuming the SMC is a webapp)



   

   



I changed three things
1. Host.appBase
2. Context.path
3. Context.docBase

Filip



Fredrik Andersson wrote:



Hi, thanks for answering=)
I´m still a little confused so I will try to describe what kind of setup
I want and we will se if it becomes clearer.

I want my internet files to reside inside of
/var/www/webapps/R2M/SMC

Now I wan´t apache to forward all pages that are jsp (*.jsp) and all
servlets thats are mapped through ip/servlets/* to tomcat.

As it is right now I have HelloWorld.html and HelloWorld.jsp inside the
SMC folder and apache finds them both and the .jsp file gets forwarded
to tomcat (it says that tomcat can´t find the file). Now where is tomcat
looking for the files?

$CATALINA_HOME/conf/server.xml (engine part)
 





then I read that it was good to seperate the context part into a
different file for every host and I understood that they were supposed
to reside inside of $CATALINA_HOME/conf//.xml

So I have the file $CATALINA_HOME/appserve/R2M/SMC.xml and it holds


Did I set this up wrong?


Den 6/16/2006, skrev "Filip Hanik - Dev Lists" <[EMAIL PROTECTED]>:



  

Fredrik Andersson wrote:




Hi all

Ok so heres the deal. I want my tomcat installation (5.5.17) to load
pages from /var/www/webapps/R2M/SMC

I´m also running a virtual host setup so I edit my server.xml file and
point the appBase for the directory to /var/www/webapps and then I have
the context part of the configuration inside
$CATALINA_HOME/conf/appserve/R2M/SMC.xml in which I point the docBase



  

ok, this path is $CATALINA_HOME//

are you saying you renamed your engine element in server.xml to appserve?





variabel to "R2M/SMC"



  

this is a weird setup, by setting appBase to /var/www/webapps, tomcat
would want webapps in that directory
so you would have the app in /var/www/webapps/SMC
and tomcat would auto deploy it





Now when I point my webbrowser to a jsp file in my directory I recieve a
404 error.. :(

What went wrong in my configuration?

Any tip/help is greatly appreciated.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  

--


Filip Hanik

-
To start a new t

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
is your webapplication creating a session? if not, then there wont be a 
cookie, and mod_jk uses this cookie to determine server affinity.


and if you dont have sessions, you don't need session affinity

Filip


Sharma, Siddharth wrote:

I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:15 AM

To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox. 
In Firefox go to Tools->Options, Options Popup appears.

Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node "Cookies" and click on button View Cookies.
You can see the cookie JSESSIONID with its value.
 
If you don't see the cookie, then definitely there is some issue.
 


____

From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
  

Yes I did
jvmRoute is set to the worker name.
still, no jsessionid cookie.





-Original Message-----
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 7:18 AM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

have you set jvmRoute in your engine element (server.xml)?
this is how mod_jk does session affinity

filipp



Sharma, Siddharth wrote:
 


I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
tomcat instances (version 5.5.16) using mod_jk over ajp13.
I have configured a load balancer worker to spray load across two workers
representing these two tomcat instances.
And it works.
The problem is I do not see a session id cookie in the response, so I am
   
  

not
 


sure if it is maintaining session affinity.
I have configured the load balancer worker for session affinity with this
directive in worker.properties:
worker.lb_worker.sticky_session=True

What am I missing?
What is the exact name of the cookie that mod_jk injects?

I apologize if this is not the right mailing list for connector questions
and will appreciate if someone could point me to it.

Thanks in advance
-Sidd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
   
  
 




--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER:

---
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. Before opening any mail and 
attachments please check them for viruses and defect.


---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
yes, JSESSIONID will only get set if you have a HttpSession, so create a 
HttpSession, store the Id of your C++ session in the HttpSession so that 
you can associate back


Filip


Sharma, Siddharth wrote:

It is slightly more complicated that that.
We are creating a session but not an HttpSession, a C++ session.
The Tomcat web app essentially has a servlet that delegates to the C++
component using JNI.

Should we create an HttpSession before delegating?
Is that the missing link?

Thanks
Sidd

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:59 AM

To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

is your webapplication creating a session? if not, then there wont be a 
cookie, and mod_jk uses this cookie to determine server affinity.


and if you dont have sessions, you don't need session affinity

Filip


Sharma, Siddharth wrote:
  

I have an http packet sniffer and it is reporting that there are no


cookies
  

returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat


workers
  

over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:15 AM

To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence


easily
  
using a Netscape Navigator or FireFox. 
In Firefox go to Tools->Options, Options Popup appears.

Select Privacy in the left section, to get the privacy options on the


right
  

side of the popup
Expand the Node "Cookies" and click on button View Cookies.
You can see the cookie JSESSIONID with its value.
 
If you don't see the cookie, then definitely there is some issue.
 


____

From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
  


Yes I did
jvmRoute is set to the worker name.
still, no jsessionid cookie.





-Original Message-----
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 7:18 AM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

have you set jvmRoute in your engine element (server.xml)?
this is how mod_jk does session affinity

filipp



Sharma, Siddharth wrote:
 

  

I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
tomcat instances (version 5.5.16) using mod_jk over ajp13.
I have configured a load balancer worker to spray load across two


workers
  

representing these two tomcat instances.
And it works.
The problem is I do not see a session id cookie in the response, so I am
   
  


not
 

  

sure if it is maintaining session affinity.
I have configured the load balancer worker for session affinity with


this
  

directive in worker.properties:
worker.lb_worker.sticky_session=True

What am I missing?
What is the exact name of the cookie that mod_jk injects?

I apologize if this is not the right mailing list for connector


questions
  

and will appreciate if someone could point me to it.

Thanks in advance
-Sidd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
   
  

 

  

--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER:




  

---
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure,


modification,
  
distribution and / or publication o

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists

so if you create a jsp(or servlet) that looks like

<%=request.getSession(true).getId()%>

and run it, you get nothing?

Filip


Sharma, Siddharth wrote:
Ok, the httpsession is enabled with the code 
request.getSession(true);


but I still do not see a jsessionid cookie, even if tomcat is hit directly.
Same if hit via apache.

Do I have to enable sessions in Tomcat? How do I do that?
I do not want to enable session persistence.

Thanks
Sidd


-Original Message-
From: Sharma, Siddharth 
Sent: Friday, June 16, 2006 1:28 PM

To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

My bad. Did not read documentation.

Thanks


-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 12:31 PM

To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


 
The names of your workers are not correct. It should be alphanumeric only.

Refer to http://tomcat.apache.org/connectors-doc/config/workers.html
 
Sanjeev




From: Sharma, Siddharth [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 8:23 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem



Ok here's a little confusion:

In server.xml, there are two Engine tags, one of them is commented out by
default.
As can be seen I left the commented out 'standalone' engine as is and added
jvmRoute to engine named 'Catalina'.
Is that the problem?
Should I add it to the 'standalone' engine and uncomment it and comment out
the 'Catalina' engine?
Or should I have both uncommented?

I will try the permutations but if someone knows, it will save me some time
;)







-Original Message-
From: Sharma, Siddharth
Sent: Friday, June 16, 2006 10:40 AM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 10:15 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox.
In Firefox go to Tools->Options, Options Popup appears.
Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node "Cookies" and click on button View Cookies.
You can see the cookie JSESSIONID with its value.

If you don't see the cookie, then definitely there is some issue.




From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
  

Yes I did
jvmRoute is set to the worker name.
still, no jsessionid cookie.





-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 7:18 AM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

have you set jvmRoute in your engine element (server.xml)?
this is how mod_jk does session affinity

filipp



Sharma, Siddharth wrote:



I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
tomcat instances (version 5.5.16) using mod_jk over ajp13.
I have configured a load balancer worker to spray load across two workers
representing these two tomcat instances.
And it works.
The problem is I do not see a session id cookie in the response, so I am
  
  

not



sure if it is maintaining session affinity.
I have configured the load balancer worker for session affinity with this
directive in worker.properties:
worker.lb_worker.sticky_session=True

What am I missing?
What is the exact name of the cookie that mod_jk injects?

I apologize if this is not the right mailing list for connector questions
and will appreciate if someone could point me to it.

Thanks in advance
-Sidd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio

Re: org.apache.catalina.valves.RemoteHostValve issue

2006-06-16 Thread Filip Hanik - Dev Lists




Hi Lars,
my guess is that it looks at 127.0.0.1, so adding 127\.0\.0\.1 to the
list would solve it
or, you can add enableLookups="true" to your  element,

although, I'm not sure why it just wouldn't look at the Host header

Filip



Lars Huttar wrote:
On the
tomcat-user list
  
(http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg158910.html):
  
  
  
  

  Re: org.apache.catalina.valves.RemoteHostValve issue


Mark Thomas

Tue, 20 Sep 2005 14:09:45 -0700


Tony Tomcat wrote:

 

>   ok. got off my lazy butt and looked at the code. RemoteHostValve

>   uses request.getRequest().getRemoteHost() so just the javadoc

>   needs updating for RemoteHostValve.java. I'm sure this was just
a

>   copy of RemoteAddrValve. ;-)

Looks like it. I have just committed a fix to CVS.


 

>   Now i just need to figure out how to configure my tomcat to
return

>   values for getRemoteHost calls.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

Look for enableLookups


Mark


  
  
I have been trying to do this, namely, use a RemoteHostValve to
restrict
  
Tomcat to accept connections from only certain hosts.
  
My  looks like this:
  
  
 
  
  
className="org.apache.catalina.valves.RemoteHostValve"
  
  
allow="localhost,massah,massah\.sil\.org,massah\.dallas\.sil\.org,isaiah\.wycliffe\.org,it-huttar1\.sil\.org,it-huttar-d820\.sil\.org"/>
  
  
  
 
  
  
I also put enableLookups="true" in my connector, as instructed by the
  
documentation link you gave:
  
  
 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
  
 enableLookups="true" redirectPort="8443" acceptCount="100"
  
 connectionTimeout="2" disableUploadTimeout="true"
  
allowTrace="true"/>
  
  
But Tomcat forbids me to connect, even from localhost. (Localhost is
  
massah.dallas.sil.org.)
  
  
Earlier I tried the RemoteAddrValve with IP addresses, and was able to
  
get it to work fine. However that won't meet our needs very well, as
our
  
various dev machines change IP addresses now and then.
  
  
Any ideas? Can I somehow trace what hostname Tomcat thinks the request
  
is coming from? I turned on allowTrace in the http connector, as you
can
  
see, but I can't find a log file that traces connection attempts. I've
  
looked in all those in Tomcat 5.5\logs.
  
  
If it matters, I'm on a Windows 2000 Server machine, and running Cocoon
  
as the servlet. I'm running Tomcat 5.5.9.
  
  
Thanks for your help,
  
  
Lars
  
  
  
  
  
  
-
  
To start a new topic, e-mail: users@tomcat.apache.org
  
To unsubscribe, e-mail: [EMAIL PROTECTED]
  
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  



-- 


Filip Hanik






Re: tomcat5.5.17 cluster(using jdk1.5) error - OutOfMemoryError in starting up on AS4

2006-06-18 Thread Filip Hanik - Dev Lists
the only risk would be if you are running two environments, maybe QA and 
production, you don't want the cluster membership to cross over
another option is to just change address and port in server.xml from the 
default

Filip

Peter Rossbach wrote:

HI,

I see no risk with the default membership config.

Peter



Am 18.06.2006 um 19:29 schrieb Dilan Kelanibandara:


Hi Peter,

No. No service is up and running on 4564. I did only commenting the 
member
and restarted both the servers. So far it is working fine. I have a 
doubt in

future weather there is any effect on my server?

Can you please explain me the risk. Or is it ok to run the server 
with this

configuration?.
Thanks and best regards,
Dilan

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 18, 2006 8:14 PM
To: Tomcat Users List
Subject: Re: tomcat5.5.17 cluster(using jdk1.5) error - 
OutOfMemoryError in

starting up on AS4

OK!

As you comment the Membership service out, following default is used:

   McastService mService= new McastService();
 mService.setMcastAddr("228.0.0.4");
 mService.setMcastPort(8012);
 mService.setMcastFrequency(1000);
 mService.setMcastDropTime(3);
 transferProperty("service",mService);
 setMembershipService(mService);
 }

Have you start another service at 45564 ?

Regards



Am 18.06.2006 um 16:54 schrieb Dilan Kelanibandara:


Hi Peter,

I was having the memory problem when cluster manager trying to
multicast the
request when tomcat startup.
As a trial I commented multicast element of cluster configuration in
server.xml and restarted both tomcats

This is the multicast element which I commented.
==


==

Then tomcat started without an outofmemoryerror. Also replication
members
are added to each other. I ran both of servers with my applicaiton
for some
time. It is working fine. Session replication is happening as
usual. Can you
let me know can I proceed with this setup or is there any effect of my
commenting on session replication ?

Can you kindly let me know?

Thanks and best regards,
Dilan


-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 18, 2006 9:50 AM
To: Tomcat Users List
Subject: Re: tomcat5.5.17 cluster(using jdk1.5) error -
OutOfMemoryError in
starting up on AS4

Use more JVM Options to analyse the mem usage

Work with more faster mem allocation

-XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=8
-Xverbosegc

Or better use a Memory Profiler...

But the membership not allocate much memory, very strange effect :-(

Peter


Am 18.06.2006 um 08:01 schrieb Dilan Kelanibandara:


Hi Peter,
I am using default JVM parameters coming with tomcat5.5.17. In the
tomcat
server.xml file it says tcpThreadCount is normally equal to no.of
nodes  (ie
2 in this case).That is why I changed that to 2.

I tried increasing JVM parameters for heap size in tomcat
Min=1024m
Max=1024m
also.I tried with both 512m also. But in both the occasion it is
the same
result.
Thank you for your kind attention.
I want further clarifications.
Best regards,
Dilan
-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 18, 2006 7:37 AM
To: Tomcat Users List
Subject: Re: tomcat5.5.17 cluster(using jdk1.5) error -
OutOfMemoryError in
starting up on AS4

Hi,

Which JVM memory parameter you use?
At pooled mode use more receiver worker set tcpThreadCount="6"!
You really need deployer? Deployer generate at every startup a large
cluster message.

Regards
Peter


Am 18.06.2006 um 06:22 schrieb Dilan Kelanibandara:




Hello ,



I am getting OutOfMemoryError continuously when starting up two
cluster
nodes of tomcat5.5.17 (jdk1.5 on Advanced server 4). Any way it was
working
fine for 3 weeks time. This error occurs previously only one time
and when
restarted the tomcat, it worked.





Following is a part of catalina.out  relevent to that error for
node 1.






INFO: Start ClusterSender at cluster
Catalina:type=Cluster,host=localhost

with name Catalina:type=ClusterSender,host=localhost

Jun 17, 2006 8:44:15 PM
org.apache.catalina.cluster.mcast.McastService start

INFO: Sleeping for 2000 milliseconds to establish cluster membership
Exception in thread "Cluster-MembershipReceiver"
java.lang.OutOfMemoryError:


Java heap space

Jun 17, 2006 8:44:17 PM
org.apache.catalina.cluster.mcast.McastService

registerMBean

INFO: membership mbean registered

(Catalina:type=ClusterMembership,host=localhost)

Jun 17, 2006 8:44:17 PM
org.apache.catalina.cluster.deploy.FarmWarDeployer

start

INFO: Cluster FarmWarDeployer started.

Jun 17, 2006 8:44:19 PM
org.apache.catalina.cluster.session.DeltaManager

start

INFO: Register manager /StockTradingServer to cluster element Host
with name
localhost Jun 17, 2006 8:44:19 PM
org.apache.catalina.cluster.session.DeltaManager

Re: tomcat in-memory session replication

2006-06-21 Thread Filip Hanik - Dev Lists
you have two issues and would be better off trying to isolate them 
separately.


1. Session replication not working
To Troubleshoot: Isolate the problem, so in this case, get rid of 
apache/mod_jk

Follow these steps:
1. Get a small load balancer like http://siag.nu/pen/
If you are on windows, download http://siag.nu/pub/pen/pen.exe

2. Stop all your apache instances

3. Change the HTTP connector in your server.xml to not have keep alive
maxKeepAliveRequests="1"

4. Start your load balancer
pen.exe -r -f 80 localhost:8080 localhost:8081 localhost:8082

5. Hit your server, http://localhost/yourtestapp
and see round robin working.

6. Is your session data replicating?

If not follow these steps:
1. Have you give each tomcat a unique TCP listen port for replication
  see tcpListenPort in the Cluster config, should be a unique value for 
each tomcat


2. Are your tomcat instances discovering each other
  Should show up in the logs

Filip



Sean O'Reilly wrote:

Hi,

I am trying to get in-memory session replication working and am testing
running 3 seperate tomcat instances on the same server.

I am using tomcat-5.5.15 and apache-2.0.54 with jk2.

Whenever i run my test app although it should be doing round-robin load
balancing it doesn't switch to another instance of tomcat until the
eighth request and does not appear to have sent the session information
across as the session ID changes.

Here are my server.xml and workers2.properties files

server.xml



  

  
  
  
  

  
  







  

  

  
  












   enableLookups="false" redirectPort="8443"

protocol="AJP/1.3" />








jvmRoute="Tomcat5A"> 
 
 


  
  

  

  
  

  
  

  

  

  

  

  
  

 






className="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>




   

className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
  tempDir="/tmp/war-temp/"
  deployDir="/tmp/war-deploy/"
  watchDir="/tmp/war-listen/"
  watchEnabled="false"/>
  

className="org.apache.catalina.cluster.session.ClusterSessionListener"/>

   















  



  




workers2.properties

[logger.apache2]
file="/etc/httpd/conf/logs/error.log"
level=INFO
debug=1

# Config settings
[config]
file=/etc/httpd/conf/workers2.properties
debug=0

# Shared memory file settings
[shm]
file=/etc/httpd/conf/jk2.shm
size=10

# Communcation channel settings for "Tomcat5A"
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat5A
group=balanced
lb_factor=1
route=Tomcat5A


# Declare a Tomcat5A worker
[ajp13:localhost:8009]
channel=channel.socket:Tomcat5A


# Communcation channel settings for "Tomcat5B"
[channel.socket:localhost:8010]
host=localhost
port=8010
tomcatId=Tomcat5B
group=balanced
lb_factor=1
route=Tomcat5B


# Declare a Tomcat5B worker
[ajp13:localhost:8010]
channel=channel.socket:Tomcat5B


# Communcation channel settings for "Tomcat5C"
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat5C
group=balanced
lb_factor=1
route=Tomcat5C


# Declare a Tomcat5C worker
[ajp13:localhost:8011]
channel=channel.socket:Tomcat5C

# Load balanced Worker
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8010
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=30
stickySession=0
noWorkerMsg=Server Busy please retry later.
noWorkerCodeMsg=503

# URI mappings for the tomcat worker
# Map the "jsp-examples" web application context to the web server URI
space
[uri:/jsp-examples/*]
info= Mapping for jsp-examples context for tomcat
context=/jsp-examples
group=balanced

[shm]
file=/etc/httpd/conf/jk2.shm
size=100

[uri:/servlets-examples/*]
context=/servlets-examples
group=balanced

# Define a status worker
[status:]

# Status URI mapping
[uri:/jkstatus/*]
group=status


obviously the server.xml files on the other 2 instances of tomcat are
the same except the ports and jvmRoute have been changed.


can anyone see where i am going wrong ?

Thanks



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands

Re: tomcat in-memory session replication

2006-06-21 Thread Filip Hanik - Dev Lists

also, use Tomcat 5.5.17

Sean O'Reilly wrote:

Hi,

I am trying to get in-memory session replication working and am testing
running 3 seperate tomcat instances on the same server.

I am using tomcat-5.5.15 and apache-2.0.54 with jk2.

Whenever i run my test app although it should be doing round-robin load
balancing it doesn't switch to another instance of tomcat until the
eighth request and does not appear to have sent the session information
across as the session ID changes.

Here are my server.xml and workers2.properties files

server.xml



  

  
  
  
  

  
  







  

  

  
  












   enableLookups="false" redirectPort="8443"

protocol="AJP/1.3" />








jvmRoute="Tomcat5A"> 
 
 


  
  

  

  
  

  
  

  

  

  

  

  
  

 






className="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>




   

className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
  tempDir="/tmp/war-temp/"
  deployDir="/tmp/war-deploy/"
  watchDir="/tmp/war-listen/"
  watchEnabled="false"/>
  

className="org.apache.catalina.cluster.session.ClusterSessionListener"/>

   















  



  




workers2.properties

[logger.apache2]
file="/etc/httpd/conf/logs/error.log"
level=INFO
debug=1

# Config settings
[config]
file=/etc/httpd/conf/workers2.properties
debug=0

# Shared memory file settings
[shm]
file=/etc/httpd/conf/jk2.shm
size=10

# Communcation channel settings for "Tomcat5A"
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat5A
group=balanced
lb_factor=1
route=Tomcat5A


# Declare a Tomcat5A worker
[ajp13:localhost:8009]
channel=channel.socket:Tomcat5A


# Communcation channel settings for "Tomcat5B"
[channel.socket:localhost:8010]
host=localhost
port=8010
tomcatId=Tomcat5B
group=balanced
lb_factor=1
route=Tomcat5B


# Declare a Tomcat5B worker
[ajp13:localhost:8010]
channel=channel.socket:Tomcat5B


# Communcation channel settings for "Tomcat5C"
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat5C
group=balanced
lb_factor=1
route=Tomcat5C


# Declare a Tomcat5C worker
[ajp13:localhost:8011]
channel=channel.socket:Tomcat5C

# Load balanced Worker
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8010
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=30
stickySession=0
noWorkerMsg=Server Busy please retry later.
noWorkerCodeMsg=503

# URI mappings for the tomcat worker
# Map the "jsp-examples" web application context to the web server URI
space
[uri:/jsp-examples/*]
info= Mapping for jsp-examples context for tomcat
context=/jsp-examples
group=balanced

[shm]
file=/etc/httpd/conf/jk2.shm
size=100

[uri:/servlets-examples/*]
context=/servlets-examples
group=balanced

# Define a status worker
[status:]

# Status URI mapping
[uri:/jkstatus/*]
group=status


obviously the server.xml files on the other 2 instances of tomcat are
the same except the ports and jvmRoute have been changed.


can anyone see where i am going wrong ?

Thanks



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about StandardSession and ApplicationContext

2006-06-21 Thread Filip Hanik - Dev Lists
the StandardSession is not big, I would go back and guess it is your 
application.

The key is to read the profiling data correctly, that's where I would start.
Tomcat has been optimized for memory and cpu usage, so 11MB session 
objects would have been discovered early on.


John McClain wrote:

I am profiling our application in jprofiler. I have noticed that the deep
size of StandardSession object for each user is VERY large - ~ 11+mb. Yet I
know that we are not adding that much data. Where is all that memory coming
from? Is it truly non static data that is overhead for each session, or is
it static data that each session points to?

Does anyone out there have a strategy for finding memory leaks in a Tomcat
application? I am not finding ours.

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Skepticism is the first step toward truth"


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat session replication/cluster

2006-06-21 Thread Filip Hanik - Dev Lists
if the cluster is put in the engine element, the context names are 
prefixed with the engine name, since you can have multiple contexts with 
the same name in different host
when reloading a context, you'll get these errors cause the context is 
not available during the reload

this will be fixed with the new Apache Tribes module
Filip

Pid wrote:

I'm seeing an issue on 5.5.17 with a 2 node cluster config.
When a context is reloaded, it sends the context node name incorrectly
to the cluster.
E.g. context is called "website1"

SEVERE: Context manager doesn't exist:website1website1

The config I'm using is exactly the same as the default from server.xml,
except the cluster is defined in Engine, rather than each Host.




Filip Hanik - Dev Lists wrote:
  

also, use Tomcat 5.5.17

Sean O'Reilly wrote:


Hi,

I am trying to get in-memory session replication working and am testing
running 3 seperate tomcat instances on the same server.

I am using tomcat-5.5.15 and apache-2.0.54 with jk2.

Whenever i run my test app although it should be doing round-robin load
balancing it doesn't switch to another instance of tomcat until the
eighth request and does not appear to have sent the session information
across as the session ID changes.

Here are my server.xml and workers2.properties files

server.xml



  
  
  
  
  


  
  







  

  

  
  





















jvmRoute="Tomcat5A">  
 

  
  

  

  
  

  
  

  

  

  

  

  
  

 
   

className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"

 expireSessionsOnShutdown="false"
 useDirtyFlag="true"
 notifyListenersOnReplication="true">

className="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

   
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"

replicationMode="pooled"
ackTimeout="15000"/>

  
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>


   
  

  














  



  




workers2.properties

[logger.apache2]
file="/etc/httpd/conf/logs/error.log"
level=INFO
debug=1

# Config settings
[config]
file=/etc/httpd/conf/workers2.properties
debug=0

# Shared memory file settings
[shm]
file=/etc/httpd/conf/jk2.shm
size=10

# Communcation channel settings for "Tomcat5A"
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat5A
group=balanced
lb_factor=1
route=Tomcat5A


# Declare a Tomcat5A worker
[ajp13:localhost:8009]
channel=channel.socket:Tomcat5A


# Communcation channel settings for "Tomcat5B"
[channel.socket:localhost:8010]
host=localhost
port=8010
tomcatId=Tomcat5B
group=balanced
lb_factor=1
route=Tomcat5B


# Declare a Tomcat5B worker
[ajp13:localhost:8010]
channel=channel.socket:Tomcat5B


# Communcation channel settings for "Tomcat5C"
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat5C
group=balanced
lb_factor=1
route=Tomcat5C


# Declare a Tomcat5C worker
[ajp13:localhost:8011]
channel=channel.socket:Tomcat5C

# Load balanced Worker
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8010
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=30
stickySession=0
noWorkerMsg=Server Busy please retry later.
noWorkerCodeMsg=503

# URI mappings for the tomcat worker
# Map the "jsp-examples" web application context to the web server URI
space
[uri:/jsp-examples/*]
info= Mapping for jsp-examples context for tomcat
context=/jsp-examples
group=balanced

[shm]
file=/etc/httpd/conf/jk2.shm
size=100

[uri:/servlets-examples/*]
context=/servlets-examples
group=balanced

# Define a status worker
[status:]

# Status URI mapping
[uri:/jkstatus/*]
group=status


obviously the server.xml files on the other 2 instances of tomcat are
the same except the ports and jvmRoute have been changed.


c

Re: mod_jk failover and preferring localhost

2006-06-21 Thread Filip Hanik - Dev Lists
you've setup sticky_sessions to be false, (btw, I thought that only took 
0/1 values) so how can you expect session affinity from that?


Filip


thuss2 wrote:

We have 10 web servers with Tomcat's running on them and a mod_jk
configuration to prefer the tomcat on localhost and only failover to another
machine if the local one fails. This worked fine under our older mod_jk,
however, we just upgraded to 1.2.15 and now it that the local_worker
properties are no longer supported, it's load balancing every request.

So I checked out the workers.properties options page:
http://tomcat.apache.org/connectors-doc/config/workers.html and noticed the
new distance option so that I can give localhost a distance of 0 and
everything else a greater distance so that the load balancer should always
prefer localhost. However, it seems to be ignoring the distance property
completely and load balancing every request. Can anyone suggest what I might
try to get it to always use the local tomcat for requests unless it fails:

worker.list=tomcat
worker.tomcat.type=lb
worker.tomcat.socket_timeout=195
worker.tomcat.balance_workers=localhost,latin1,latin2,...
worker.tomcat.sticky_session=False

worker.localhost.port=8009
worker.localhost.host=localhost
worker.localhost.type=ajp13
worker.localhost.lbfactor=1
worker.localhost.distance=0

worker.latin1.port=8009
worker.latin1.host=latin1
worker.latin1.type=ajp13
worker.latin1.lbfactor=1
worker.latin1.distance=1

worker.latin2.port=8009
worker.latin2.host=latin2
worker.latin2.type=ajp13
worker.latin2.lbfactor=1
worker.latin2.distance=1

Thanks,
Todd

--
View this message in context: 
http://www.nabble.com/mod_jk-failover-and-preferring-localhost-t1825380.html#a4979143
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk failover and preferring localhost

2006-06-21 Thread Filip Hanik - Dev Lists

Mladen Turk wrote:

Filip Hanik - Dev Lists wrote:
you've setup sticky_sessions to be false, (btw, I thought that only 
took 0/1 values) so how can you expect session affinity from that?




Recent mod_jk versions can take True/False instead 1/0 just
as an convenience method.

instead or "as well", the latter right?

Filip






--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat session replication/cluster

2006-06-22 Thread Filip Hanik - Dev Lists

Makes sense, can we please ask you to open up a bug for us,
http://issues.apache.org/bugzilla/

thanks
Filip


Pid wrote:

OK,

I'm probably being dense here.

(There's only 1 context in each host, the ROOT context)
If I take the Host/Context offline in one node and restart it, the logs
on that node start showing the following:

 SEVERE: Context manager doesn't exist:host1

As the Context doesn't exist, which is the same message that appears
briefly in the logs during a restart, until that particular Host is
loaded (under normal circumstances).

This much I understand, and provides no problems for me.


With all Hosts available on each node of the cluster, I then update the
Context on one Host, (by adding a new jar, say).  The Context has
reloadable="true", so it does just that.

Once that context has updated, the other nodes start seeing:

 SEVERE: Context manager doesn't exist:host1host1

If I reload the context again, (without restarting the server), I see this:

 SEVERE: Context manager doesn't exist:host1host1host1

I could go on, but I think you can see where this is going...



Peter Rossbach wrote:
  

Hmm,

look at o.a.c.cluster.tcp.SimpleTcpCluster

L 626ff
private String getManagerName(String name, Manager manager) {
String clusterName = name ;
if(getContainer() instanceof Engine) {
Container context = manager.getContainer() ;
if(context != null && context instanceof Context) {
Container host = ((Context)context).getParent();
if(host != null && host instanceof Host)
clusterName = host.getName()  + name ;
}
}
return clusterName;
}


You see we append "hostname + context" as cluster engine container.

Peter



Am 22.06.2006 um 10:32 schrieb Pid:



Filip Hanik - Dev Lists wrote:
  

if the cluster is put in the engine element, the context names are
prefixed with the engine name, since you can have multiple contexts with
the same name in different host
when reloading a context, you'll get these errors cause the context is
not available during the reload
this will be fixed with the new Apache Tribes module
Filip


I understand that the context is not available during reload. After
reload has completed, the error persists.

My Engine name is Catalina, it looks like the cluster isn't sending the
engine name, but the context name, appended to itself.

You're implying that it should send Catalina+website1, but it's sending
website1+website1 instead.

After startup:
Node1 sees Node2 send "website2"
Node2 sees Node1 send "website1"

After context on Node1 is finished reloading:
Node1 sees Node2 send "website2"
Node2 sees Node1 send "website1website1"

I think that the context name is being appended to itself.


  

Pid wrote:


I'm seeing an issue on 5.5.17 with a 2 node cluster config.
When a context is reloaded, it sends the context node name incorrectly
to the cluster.
E.g. context is called "website1"

SEVERE: Context manager doesn't exist:website1website1

The config I'm using is exactly the same as the default from
server.xml,
except the cluster is defined in Engine, rather than each Host.




Filip Hanik - Dev Lists wrote:

  

also, use Tomcat 5.5.17

Sean O'Reilly wrote:



Hi,

I am trying to get in-memory session replication working and am
testing
running 3 seperate tomcat instances on the same server.

I am using tomcat-5.5.15 and apache-2.0.54 with jk2.

Whenever i run my test app although it should be doing round-robin
load
balancing it doesn't switch to another instance of tomcat until the
eighth request and does not appear to have sent the session
information
across as the session ID changes.

Here are my server.xml and workers2.properties files

server.xml



  
  
  
  
  




  
  







  

  

  
  




















   

  
  

  

  
  

  
  

  

  

  

  

  
  

 
   











   
  
















  



  




workers2.properties

[logger.apache2]
file="/etc/httpd/conf/logs/error.log"
level=INFO
debug=1

# Config settings
[config]
file=/etc/httpd/conf/workers2.properties
debug=0

# Shared memory file settings
[shm]
file=/etc/httpd/conf/jk2.shm
size=10

# Communcation channel settings for "Tomcat5A"
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat5A
group=balanced
lb_factor=1
route=Tomcat5A


# Declare a Tomcat5A worker
[aj

Re: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists



Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting up my
tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has been
received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager waitForSendAllSessions
SEVERE: Manager [/jsp-examples]: No session state send at 23/06/06
13:26 received, timing out after 60,140 ms. 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO: ContextListener:
contextInitialized() 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006 13:27:38
org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry
server-registry.xml at classpath resource 23-Jun-2006 13:27:39
org.apache.catalina.startup.Catalina start INFO: Server startup in
67102 ms

Can anyone point me in the right direction as to why the session state
is not being replicated ?
  

Two things to check:
1. What does the other server log say, maybe there is an error there, 
does the other server know of this server?

2. your server.xml, you would need to provide us with a little bit more info

Filip

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: one filter for all webapps?

2006-06-23 Thread Filip Hanik - Dev Lists




in tomcat you can write a Valve

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

this is tomcat specific, so it wouldn't be portable across containers.
Filip


Dean Hiller wrote:
Is there any way to install a ServletFilter that is run
before all
  
webapps(including the default servlet as well)?
  
  
thanks,
  
dean
  
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006
  



-- 


Filip Hanik






Re: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists

Sean O'Reilly wrote:

On Fri, 23 Jun 2006 09:05:18 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  

Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting up
my tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has
been received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 13:26 received, timing out after 60,140 ms.
23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
log INFO: ContextListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO:
SessionListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
Find registry server-registry.xml at classpath resource 23-Jun-2006
13:27:39 org.apache.catalina.startup.Catalina start INFO: Server
startup in 67102 ms

Can anyone point me in the right direction as to why the session
state is not being replicated ?
  
  

Two things to check:
1. What does the other server log say, maybe there is an error there, 
does the other server know of this server?

2. your server.xml, you would need to provide us with a little bit
more info

Filip

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I might be being a bit thick here !!!

I have 3 servers !

One is running apache2, mod_jk2 and tomcat-5.5.17, the other two just
have tomcat-5.5.17. Do i need to have apache and mod_jk2 running on all
servers ?

I am sure it would be easier to use mod_proxy_balancer and
mod_proxy_ajp but can't find any documentation anywhere.

Thanks for the help so far guys.
  
your problem is not related to Apache or mod_jk, its strictly Tomcat. 
Session state transfer fails.

and that's the path you need to persue.
1. Check all your tomcat logs
2. Make sure that node discovery is working, you should have in each of 
your tomcat nodes, a info log statement saying it detected the other two 
nodes.


Filip


--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists

Sean O'Reilly wrote:

On Fri, 23 Jun 2006 10:00:36 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  

Sean O'Reilly wrote:


On Fri, 23 Jun 2006 09:05:18 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  
  

Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting
up my tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has
been received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 13:26 received, timing out after 60,140 ms.
23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
log INFO: ContextListener: contextInitialized() 23-Jun-2006
13:27:38 org.apache.catalina.core.ApplicationContext log INFO:
SessionListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
Find registry server-registry.xml at classpath resource
23-Jun-2006 13:27:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 67102 ms

Can anyone point me in the right direction as to why the session
state is not being replicated ?
  
  
  

Two things to check:
1. What does the other server log say, maybe there is an error
there, does the other server know of this server?
2. your server.xml, you would need to provide us with a little bit
more info

Filip

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I might be being a bit thick here !!!

I have 3 servers !

One is running apache2, mod_jk2 and tomcat-5.5.17, the other two
just have tomcat-5.5.17. Do i need to have apache and mod_jk2
running on all servers ?

I am sure it would be easier to use mod_proxy_balancer and
mod_proxy_ajp but can't find any documentation anywhere.

Thanks for the help so far guys.
  
  
your problem is not related to Apache or mod_jk, its strictly Tomcat. 
Session state transfer fails.

and that's the path you need to persue.
1. Check all your tomcat logs
2. Make sure that node discovery is working, you should have in each
of your tomcat nodes, a info log statement saying it detected the
other two nodes.

Filip





Here is what is written to my logs

23-Jun-2006 16:26:38 org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 16:25 received, timing out after 60,121 ms.
23-Jun-2006 16:26:38 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized() 23-Jun-2006 16:26:38
org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
contextInitialized() 23-Jun-2006 16:26:39
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 16:26:39 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/230  config=null
23-Jun-2006 16:26:39 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
23-Jun-2006 16:26:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 67074 ms
  


I'm sure the is plenty more in the log earlier that you are kindfully 
omitting and that is vital


Filip



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: one filter for all webapps?

2006-06-23 Thread Filip Hanik - Dev Lists
didn't even think about that, yes, and put the compiled filter into 
common/lib or common/classes


Filip

Jon Wingfield wrote:
Can't you add the filter to conf/web.xml? I think tomcat 
(conceptually) folds all of conf.xml into each webapp's web.xml.


Again, this behaviour is tomcat specific but at least the filter isn't.

Jon

Filip Hanik - Dev Lists wrote:

  in tomcat you can write a Valve

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

this is tomcat specific, so it wouldn't be portable across containers.
Filip


Dean Hiller wrote:

Is there any way to install a ServletFilter that is run before all
webapps(including the default servlet as well)?

thanks,
dean

 
No virus found in this incoming message.

Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
6/21/2006
  



--


Filip Hanik




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-13 Thread Filip Hanik - Dev Lists
redirection, as the name tells you, doesn't balance, it redirects, and 
there is nothing transparent about a redirection.
what you are looking for is called proxying, and the best example for 
that, would be mod_proxy in the Apache httpd web server.



Filip

Madhur K Tanwani wrote:

Hi,
I'm separating this question from my earlier thread on load balancing 
rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from Tomcat 
5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's site. 
However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly 
served by the
server (so what happens if the server is down - the LB has support for 
fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: starting with windows service

2006-07-13 Thread Filip Hanik - Dev Lists

http://people.apache.org/~fhanik/wrapper.html

Vinu Varghese wrote:

Hi Sk,
Have u tried with the windows binary of tomcat ?

- regards
Vinu

Shinya Koizumi wrote:

Any word on this problem.
SK.

- Original Message - From: "Shinya Koizumi" 
<[EMAIL PROTECTED]>

To: 
Sent: Monday, July 10, 2006 3:22 PM
Subject: starting with windows service


Recently i take over project developed by servlet.
Currently whenever start the web server I have to
click on the mycompany.bat file in CATALINA_HOME/bin folder

mycompany.bat===
@echo off
rem set CATALINA_OPTS=-Djava.security.debug=all

cd %CATALINA_HOME%\bin\
catalina start -security
pause
===

This way is different from how the tomcat starts up when starting
tomcat from windows menu? How can I change the configuration so that
the tomcat is going to start up just like when i click on mycompany.bat
file?

SK





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-13 Thread Filip Hanik - Dev Lists

Madhur K Tanwani wrote:

Thanks Filip.
I understand now that Tomcat performs redirection - which implies that 
the

URL must change.
Then, I suppose I must ask
- Is something like mod_proxy available in Tomcat?
- Is it possible to emulate the same behavior in Tomcat?
not really, Tomcat isn't really built for any of that kind of stuff 
either, even the "tomcat balancer" is not a real load balancer, its just 
an example app, but you would never use it in the real world due to 
blocking IO and thread dependencies in Tomcat/Java


After my discussion on the Tomcat 5.5 load balancing thread and this 
one, I'm

thinking of a setup like

|
   V
Apache 2.0 httpd Webserver
(LB with sticky sessions, weighted round robin, mod_jk2)
mod_jk2 is obsolete and longer used nor developed. You would need to go 
with mod_jk 1.2.15

   |
   |> Tomcat Worker 1 (ajp13)
   |> Tomcat Worker 2 (ajp13)
   |> Tomcat Worker 3 (ajp13)

The session management will be done using either JDBCStore or in-memory
replication amongst the Tomcat servers.

Can you suggest something in the design that is wither wrong or can be 
improved?
Is there something that the LB gurus find obviously wrong here and 
would want to

tell me (or would you want me to encounter it as it comes :) )?
looks good, if you only have one httpd, is that a single point of 
failure for you?





Awaiting your valuable comments,
Madhur.

Filip Hanik - Dev Lists wrote:
redirection, as the name tells you, doesn't balance, it redirects, 
and there is nothing transparent about a redirection.
what you are looking for is called proxying, and the best example for 
that, would be mod_proxy in the Apache httpd web server.



Filip

Madhur K Tanwani wrote:

Hi,
I'm separating this question from my earlier thread on load 
balancing rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from 
Tomcat 5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's 
site. However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly 
served by the
server (so what happens if the server is down - the LB has support 
for fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering

2006-07-20 Thread Filip Hanik - Dev Lists

http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html


Konstantina wrote:

Hello,

I have read that in Tomcat5 there is a way to  multicast session data to a
group of servers, so that each has the same  information and the client can
contact any server. How can I multicast information saved  in application
context? How this information can be pushed to tomcats that join the  group
of servers much later that the others have started and have already data
stored in application context?

 


Thank you in advance,

Konstantina

 



  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 7/18/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cluster SimpleTcpCluster in 5.5.17

2006-07-21 Thread Filip Hanik - Dev Lists
Are you saying that the message below keeps repeating itself? over and 
over again?

what does your full log say?

Filip


Jean-frederic Clere wrote:

Hi,

I have trying to get the SimpleTcpCluster running but I only get:
+++
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.88:4001,catalina,192.168.4.88,4001, 
alive=5006428]
Jul 20, 2006 6:50:46 PM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared
INFO: Received member 
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.88:4001,catalina,192.168.4.88,4001, 
alive=5006428]
Jul 20, 2006 6:52:48 PM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded

+++

Any hints?

Cheers

Jean-Frederic









  

  
  
  
  

  
  







  

  

  
  













   enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />








 
 




  
  

  

  
  

  
  

  

  

  

  

  
  

  

 



 
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
 expireSessionsOnShutdown="false"
 useDirtyFlag="true"
 notifyListenersOnReplication="true">

className="org.apache.catalina.cluster.mcast.McastService"

mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

className="org.apache.catalina.cluster.tcp.ReplicationListener"

tcpListenAddress="192.168.4.43"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>




   

  tempDir="/tmp/war-temp/"
  deployDir="/tmp/war-deploy/"
  watchDir="/tmp/war-listen/"
  watchEnabled="false"/>
  















  



  



  



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


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 7/19/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting heap once the tomcat JVM is started

2006-07-21 Thread Filip Hanik - Dev Lists
since the heap is a Java VM configuration, not a Tomcat setting, you 
would have to consult your VM vendors documentation.

The short answer would be no.

Filip

sajid khan wrote:

Hi All,

Can we set the JVM heap size after the Tomcat has started ? I mean to say
configure heap at runtime

Thanks



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 7/21/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet/session becoming null

2006-07-31 Thread Filip Hanik - Dev Lists

if you are saying the tomcat session is dropped then, two reasons could be:

1. the session cookie is dropped
2. the session has expired (been idle longer than your timeout setting)

but your stack trace show TransactionSession, and it could be that your 
TransactionSession is holding a reference to the Tomcat session,
but the reference it is actually holding is a facade object, and the 
facade loses it connection to the delegate, hence the facade method.


Make sure you always get your reference to the session using the servlet 
API, and do NOT store a reference to it, as it is not the real session, 
just a facade object.


Filip


rache wrote:

I have this error occuring when loading a jsp:

2006-07-28 17:33:01 StandardWrapperValve[debugjsp]: Servlet.service() for
servlet debugjsp threw exception
java.lang.NullPointerException
at
com.premier.ofa.core.TransactionSession.getAttribute(TransactionSession.java:34)
at
com.premier.ofa.core.TransactionRequest.getConfigurationAttribute(TransactionRequest.java:125)
at
com.premier.SignOn.UserInqAuthTaskBean.isFeatureConfigured(UserInqAuthTaskBean.java:366)
at org.apache.jsp.jsp.security_jsp._jspService(security_jsp.java:1264)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This happens on and off. In tracking the error, sometimes the session can be
null. Why is this happening?

Anyone familiar with this kind of exception?
Thanks!


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-07-31 Thread Filip Hanik - Dev Lists

looks like your context XML file is not a valid XML format

Filip


Aynalem, Seblewengel (Trawick) wrote:

Yes I do have SQL JDBC driver in common/lib as sqljdbc.jar and did drop 
 from context.xml file.  Another error comes ups as follows:

Jul 31, 2006 3:01:05 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
C:\Java\jdk1.5.0_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Common Files\Roxio 
Shared\DLLShared;C:\Java\jdk1.5.0_07\bin;%CATALINA_BASE%\bin;C:\Program 
Files\Microsoft SQL Server\80\Tools\BINN
Jul 31, 2006 3:01:05 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 31, 2006 3:01:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1732 ms
Jul 31, 2006 3:01:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 31, 2006 3:01:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jul 31, 2006 3:01:05 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 31, 2006 3:01:08 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 11 column 79: Element type "Resource" must be followed by either 
attribute specifications, ">" or "/>".
org.xml.sax.SAXParseException: Element type "Resource" must be followed by either attribute 
specifications, ">" or "/>".
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:845)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at 
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781)
at 
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721)
at 
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5130)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3945)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.star

Re: Tomcat Cluster

2006-08-01 Thread Filip Hanik - Dev Lists
it means that server-A has the webapp /edac but server-B doesn't. and 
server B is receiving messages, and ignoring them
doesn't mean its an error, only if you expect both servers to have the 
webapp. This is not the case if one server is starting up and has not 
deployed the app yet

Filip

Ralf Schneider wrote:

Hi,

I started some experiments with a cluster of 2 Tomcats (5.5.16). I configured 
the two Tomcats nearly identically (except the ports). I think the cluster 
works as I see messages in the console saying that a new cluster member was 
recognized when the second Tomcat starts.


The only confusing messages are the following:
27.07.2006 13:27:17 org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

WARNUNG: Context manager doesn't exist:/edac
27.07.2006 13:27:18 org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

WARNUNG: Context manager doesn't exist:/edac
27.07.2006 13:27:18 org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

WARNUNG: Context manager doesn't exist:/edac

edac in my application under webapps. What do these messages mean? Did I miss 
anything with my configuration? Is this a problem for the session 
replication? And what do I have to configure?


Best regards,
Ralf.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 5.0 maintenance

2006-08-02 Thread Filip Hanik - Dev Lists
There is an interest and willingness to maintain, to my best knowledge 
we haven't received any complaints on fixes needed for 5.0.30-beta
but once we have a list of required bug fixes, we can start working on 
it and issue a release

Filip


Frank Peters wrote:

Hi,

can someone give me a hint, if tomcat 5.0.x is still a maintained version? The 
most recent version 5.0.30-beta was published in Nov 2004 and I found no fix 
branch in the links to the svn repository on the homepage.

Regards
Frank
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ant Build Problem Undeploying Struts App from Tomcat

2006-08-02 Thread Filip Hanik - Dev Lists

since 5.5.x is currently at .17, what don't you upgrade to that,
before you call deploy, make sure you call remove/undeploy
if the problem persists, post what is going wrong

Warren wrote:

I am running Tomcat 5.5.3 on a Windows XP box. When I run my Ant build task
to "undeploy" my webapp, it deletes everything except the struts.jar file.
When I run my Ant "deploy" task it fails stating that an "Application
already exists at path /...". I just updated to Tomcat 5.5.3 from 5.5.1.
Everything worked correctly with 5.5.1, I just can't remember what I had
set-up differently.













Thanks,

Warren


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL does not work on work.

2006-08-02 Thread Filip Hanik - Dev Lists

try using https for secure transport,
ie,
https://localhost:8443
   ^


Chandra Muppavarapu wrote:

Folks,

  I am trying to turn on SSL on my tomcat running as a webserver. I have
followed the steps in the following  link but my SSL still does not work.

http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html


When I type in http://localhost:8443 I get a blank screen. I tried to 
begug

it by turn on tracing in tomcat but don't see any error messages. Here is
the entry for ssl connector in  my server.xml file. Any help will be 
greatly

appreciated.


   
keystoreFile="c:\j2sdk1.4.2_10\jre\lib\security\keystore.jks"

  keystorePass="changeit"
  clientAuth="false" sslProtocol="TLS" />

Thanks



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date: 8/1/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Query regarding tomcat cluster

2006-08-03 Thread Filip Hanik - Dev Lists
that link contains all the necessary steps, when installing on the same 
machine, you must avoid port conflicts, the two instances aren't allowed 
to share ports like 8080,8009,4001 etc


Filip


Vinod Devarajan wrote:

Hi
I tried installing Tomcat 5.0.28 on Solaris 10. I then installed one more
instance and followed the steps in the website below.
http://tomcat.apache.org/tomcat-5.0-doc/cluster-howto.html
I am basically installing both instances on same machine.
I was able to start both the instances.
The problem I have is only the instance I start first is responding. 
So, if
I kill / shutdown the instance which was not started first, then it is 
not

acting as a backup.
Its saying connection was refused when attempting contact local host 
8080.
Please provide me with necessary steps for installing the Tomcat 
clusters.

Thank You.
Vinod



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date: 8/1/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multiple instances of tomcat

2006-08-03 Thread Filip Hanik - Dev Lists

it could be easier to just

cp -r TC_HOME_1 TC_HOME_2

and voila, two instances, just remember to change the ports in 
TC_HOME_2/conf/server.xml to be different from server_1


Filip


Chris Lear wrote:

* Pratap Parne wrote (03/08/06 15:50):

how to setup and deploy applications on multiple
instances of tomcat on a single box.can anyone give me
the steps to do that


You need to use different CATALINA_BASE variables for the different 
instances. It's badly documented (in my opinion), but you can try here:


http://www.google.co.uk/search?q=+site%3Atomcat.apache.org+tomcat+catalina_base 



And read the comments in catalina.sh (or catalina.bat)

Basically, you need to set CATALINA_BASE to a directory that contains 
directories called conf, logs, temp, and webapps. A work directory 
will be created there as well. You can have several of these.
The bin, common, server, and shared directories should all be in the 
directory that CATALINA_HOME points to. You need only one of these.


Then make sure your different tomcats don't try to bind to the same 
ports, and you're away.


Chris

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Query regarding tomcat cluster

2006-08-03 Thread Filip Hanik - Dev Lists
search the docs for iplanet and see if it has any load balancing 
capabilities,


here are some resources, if you want a software balancer to play around with
http://www.linux.com/article.pl?sid=05/07/27/1729229
http://www.inlab.de/balance.html
http://siag.nu/pen


Vinod Devarajan wrote:

Thank you very much.
I have to also use Iplanet (sun one) web server version 4.1 and integrate
all these.
Any suggestions  this.
Vinod

On 8/3/06, Tim Lucia <[EMAIL PROTECTED]> wrote:



> -Original Message-
> From: Vinod Devarajan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 03, 2006 9:46 AM
> To: Tomcat Users List
> Subject: Re: Query regarding tomcat cluster
>
> Yes. I changed all the post numbers. I used the next different for the
> second instance.
> So should I run two different instances in two different browers
> initially.
> Like 1 will be http://localhost:8080
> and other will be http://localhost:8081
> Then if one fails will it automatically connect to other one.
> Will my test case work for this.
> Thank You.
> Vinod

You will not be automatically redirected from :8080 to :8081 if the
instance
on :8080 is not available.  To do this, you should front-end the cluster
with a load balancer (mod_jk, mod_proxy both are frequently-used.)

Tim

>
> On 8/3/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> >
> > that link contains all the necessary steps, when installing on the
same
> > machine, you must avoid port conflicts, the two instances aren't
allowed
> > to share ports like 8080,8009,4001 etc
> >
> > Filip
> >
> >
> > Vinod Devarajan wrote:
> > > Hi
> > > I tried installing Tomcat 5.0.28 on Solaris 10. I then 
installed one

> > more
> > > instance and followed the steps in the website below.
> > > http://tomcat.apache.org/tomcat-5.0-doc/cluster-howto.html
> > > I am basically installing both instances on same machine.
> > > I was able to start both the instances.
> > > The problem I have is only the instance I start first is 
responding.

> > > So, if
> > > I kill / shutdown the instance which was not started first, 
then it

is
> > > not
> > > acting as a backup.
> > > Its saying connection was refused when attempting contact local 
host

> > > 8080.
> > > Please provide me with necessary steps for installing the Tomcat
> > > clusters.
> > > Thank You.
> > > Vinod
> > >
> > >
--
> --
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date:
> 8/1/2006
> > >
> >
> >
> > 
-

> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with redirection from http to https

2006-08-03 Thread Filip Hanik - Dev Lists

yes, web.xml for your web-application

http://e-docs.bea.com/wls/docs61/webapp/web_xml.html#1019727

user-data-constraint & CONFIDENTIAL

Filip

Chandra Muppavarapu wrote:

Folks,

I have a packaged software that uses tomcat as the webserver. I would 
like
the users to be automatically redirected to  https even when the type 
in an

URL starting with http.

1) Is there any way this could be acheived through a tomcat configuration
change?

2) If not what are the alternatives?

Thanks
Chandra



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use jsvc to stop the tomcat service

2006-08-03 Thread Filip Hanik - Dev Lists
if you want a more complete Tomcat service, that lets you do thread 
dumps etc, take a look at:


http://people.apache.org/~fhanik/wrapper.html

Filip

Patrick Wang wrote:

Hi All:

I am using TOMCAT 5.0.28, I found the following command to start a tomcat
instance on the documentation page, however it did not mention how to stop the
tomcat, I am currently using kill <> and wondering if there is a more
elegant solution.

Thanks

Pat
===

./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \
-outfile ./logs/catalina.out -errfile ./logs/catalina.err \
org.apache.catalina.startup.Bootstrap



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use jsvc to stop the tomcat service

2006-08-03 Thread Filip Hanik - Dev Lists

of course, stopping a service is used using the Windows "Services" GUI.

Control Panel -> Administrative Tools -> Services

Filip


Patrick Wang wrote:

Hi All:

I am using TOMCAT 5.0.28, I found the following command to start a tomcat
instance on the documentation page, however it did not mention how to stop the
tomcat, I am currently using kill <> and wondering if there is a more
elegant solution.

Thanks

Pat
===

./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \
-outfile ./logs/catalina.out -errfile ./logs/catalina.err \
org.apache.catalina.startup.Bootstrap



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: steps multiple instances of tomcat

2006-08-04 Thread Filip Hanik - Dev Lists
if you don't install it as a service, it is as easy on windows as on 
linux, there is no requirement for it to run as a service.


but if you want the simple way of creating two tomcats running as 
services, don't use the tomcat provided wrapper, use:

http://people.apache.org/~fhanik/wrapper.html

this wrapper also allows for threads dumps, something the existing 
wrapper is missing.


Filip


[EMAIL PROTECTED] wrote:

It depends on the environment you're running on...

In my experience, it is easier to get multiple Tomcat instances running
on Linux than it is on Windows.

For Linux, I just gzuniped the Tomcat installation package twice; once
in /usr/local/tomcat_01 and again in /usr/local/tomcat_02.  I modified
the server.xml in the 2nd tomcat instance to use port :9090 and :943
instead of :8080 and :843 and that was it.

On Windows, I couldn't get two completely separate instances to install
and live together as services.  The second installation overwrote all of
the magic in the Windows registry that had been configured by the first
tomcat installation so that after I installed both, only the 2nd tomcat
instance would start as a service.  To get around this, I uninstalled
the 2nd tomcat instance and modified the server.xml in the first tomcat
instance to contain 2 separate  blocks; each  block
has its own , so you can configure the ports again to look as if
there are 2 separate tomcat installations running on that box.

Good luck,
Tom

-Original Message-
From: Pratap Parne [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 04, 2006 10:47 AM

To: users@tomcat.apache.org
Subject: steps multiple instances of tomcat


how to setup and deploy applications on multiple
instances of tomcat on a single box.can anyone give me
the steps to do that.plz make it clear.ow to run
application using any particular tomcat


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat SSL question

2006-08-04 Thread Filip Hanik - Dev Lists

set "redirectPort" on your AJP(port 8009) connector to 443

http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

using mod_jk, you will not use port 8080 and 8443, only 8009.

Filip


David Miller wrote:

I can't do that because the web server uses those ports.

Perhaps someone can just verify the following; will tomcat with mod_jk 
allow

me to access encrypted pages without seeing the port in the URL?
Example: we want to see this https://localhost/my-secured-webapp and NOT
this https://localhost:8443/my-secured-webapp

David




On 8/3/06, Mark Thomas <[EMAIL PROTECTED]> wrote:


David Miller wrote:
> When I run my app using Tomcat only (without apache httpd) I 
specify the

> ports for secure and non-secure pages; http://localhost:8080/my-app or
> https://localhost:8443/my-app for example.
>
> I've installed mod_jk hoping that Apache httpd would handle
> the connection allowing me to omit the port numbers. Is that what 
should

be
> happening?

Or you could just change the ports in server.xml to 80 and 443 Don't
forget to change the redirect port as well.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Restarting Tomcat causes application to be displayed across all instances

2006-08-04 Thread Filip Hanik - Dev Lists
could be several reasons, one common one is that somewhere in your 
restart script, you are setting the classpath manually to include the 
classes.

another would be that your classes are in shared/classes or shared/lib

if not, you'd need to dig deeper.

Ryan O'Hara wrote:
Currently, we have a few three development instances of the "same" 
application being run - webapps/A, webapps/B, and webapps/C.  By same 
I mean the same application, although each instance is usually a bit 
different, as the developers work on their individual instance.  The 
problem we are facing is that when a user restarts Tomcat, their Java 
code (and not their jsp or html code) is displayed on their web 
instance as well as all other web instances.  So, for example, if user 
A restarts Tomcat, their Java code is seen also on the web instances 
of user B and user C.  It is important to note that the actual code is 
not copied over to each of the users directory when a restart occurs, 
yet the code is viewed across all instances.  Anyone have any idea why 
this behavior could be taking place?  I recently created a Listener 
class to precompute a few variables.  This may or may not be related 
(don't think it is).  Thanks.


Ryan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/407 - Release Date: 8/3/2006





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I direct all http requests to Https

2006-08-04 Thread Filip Hanik - Dev Lists

I just responded to this yesterday,

web.xml for your web-application

http://e-docs.bea.com/wls/docs61/webapp/web_xml.html#1019727

user-data-constraint & CONFIDENTIAL

Filip

William Chu wrote:

How do I direct a user to the https url when they use the http url?

i.e. http:// is directed to https://

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I direct all http requests to Https

2006-08-04 Thread Filip Hanik - Dev Lists

what?

the reference to weblogic is not to the weblogic server, simply to their 
excellent documentation of the standard web.xml file.
you don't need more than one web.xml file, all you need to do is set the 
 element correctly,

and tomcat will automatically redirect all HTTP to HTTPS for you.

the documentation link is so that you can spend some time reading about it:)

the  setting is a servlet spec standard, and will 
work on any servlet container.


Filip


MC Moisei wrote:

Is there a why to set you my context to use a different web.xml file ?
I use tomcat to speedup my Weblogic developement and that would 
require to have two web.xml files. Is there a way to set the context 
to user for example web_tomcat.xml file instead ?


I work in exploded format.
Thanks,
MC






From: Filip Hanik - Dev Lists <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: How do I direct all http requests to Https
Date: Fri, 04 Aug 2006 13:22:57 -0500

I just responded to this yesterday,

web.xml for your web-application

http://e-docs.bea.com/wls/docs61/webapp/web_xml.html#1019727

user-data-constraint & CONFIDENTIAL

Filip

William Chu wrote:

How do I direct a user to the https url when they use the http url?

i.e. http:// is directed to https://

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I direct all http requests to Https

2006-08-04 Thread Filip Hanik - Dev Lists

something like

   
   Automatic SSL Forwarding
   *
   -->
   
 
   CONFIDENTIAL
 
   
   

but you might have to hit the docs

Filip

William Chu wrote:

Hi Filip,

Thank you for the help. Much appreciated. However, when I add the
security constraint to my web.xml, I do not get redirected to the
https url. I get the http url. Any ideas?

Thank you,
Will




   

   
   
   
   


 
  CONFIDENTIAL
 




On 8/4/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

I just responded to this yesterday,

web.xml for your web-application

http://e-docs.bea.com/wls/docs61/webapp/web_xml.html#1019727

user-data-constraint & CONFIDENTIAL

Filip

William Chu wrote:
> How do I direct a user to the https url when they use the http url?
>
> i.e. http:// is directed to https://
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: logging url of page

2006-08-05 Thread Filip Hanik - Dev Lists

Almir Kazazic wrote:

Hi ,

I am using tomcat 5.5 with log4j to log my errors, and it works great,
but it would be of great help if I could get information about URL of
errror, this way I could reproduce it and remove much faster,  I want
to have this code on a single place and not for every exception in
application


Using errorpage wont work anyhow (as it throws invalidStateExeption or
something similar).


using error page will work, as you can specify Exception error pages, 
not just codes, take a look at a web.xml

tutorial




I have my own exceptions which are used through whole application as
well a single place to call log.fatal and other logger methods, and
this is only place where I could  put code  in single place and use it
through whole application. What I would like to have is something like
tomcat.Context.getCurrentContext().getUrl, or something like that,
where I could, by using some static methods get to context or similar
objects which could tell me about my location.


thanks
almir

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pointing domain to your application - Source Code is appearing

2006-08-07 Thread Filip Hanik - Dev Lists

Gamefaqs Philippines wrote:

Hmmm.. I didn't have any choice but to search for more docs... I followed the 
instructions from the following sites...

http://johnturner.com/howto/mod_jk_conf.html
http://www.devside.net/web/server/windows/tomcat
http://www.ccl.net/cca/software/UNIX/apache/debian-tomcat/node10.html

and now, editing the  entry in my httpd.conf 


and thats your problem,  is in Tomcat's server.xml file, not in 
Apache's httpd.conf file

in apache, you use 


I think I was at least able to take one step further. However, when I access my 
domain through www.mydomain.com/webapp, the source code for index.jsp appears 
instead of its HTML output. I appreciate any help... Thanks!


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Book Recommendation?

2006-08-09 Thread Filip Hanik - Dev Lists
I would say you don't need a book. The tomcat reference and usage docs 
are excellent, and then you have a gazillion tutorials online


Filip


M. Goodell wrote:

Hello,
   
  Are there any text books / reference information about Tomcat on the maket that are considered to be the must haves ??? Years ago, I owned James Goodwills book and that was great, however that is old information now days. 
   
  In particular, what I am looking for is a systematic approach to Apache / Tomcat development with the emphasis on Tomcat of course.
   
  Thanks,
   
  M Goodell
   



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.
  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk 1.2.15 connectivity failing errorcode =13

2006-08-09 Thread Filip Hanik - Dev Lists

hari168 wrote:

I am using Tomcat 5.5 , Apache 1.3.27 and Mod_JK 1.2.15..

Connectivity is failing with following error message in mod_jk.log file

[error] jk_init::mod_jk.c (2039): Initializing
shm:${APACHE_HOME}/logs/jk-runtime-status errno=13

Please any one suggest, how i can dig this issue..



  

replace ${APACHE_HOME} with the actual path in your config file

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JDBCReal drivers

2006-08-10 Thread Filip Hanik - Dev Lists

common/lib

Zohar wrote:

When using JDBCRealm, where should I put my driver jars?
  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.8/415 - Release Date: 8/9/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.17 not displaying jsp page???

2006-08-14 Thread Filip Hanik - Dev Lists

look in your tomcat log files, the answer will be in there

Filip


Patrick Wang wrote:

One more thing, I am invoking Tomcat only, no apache involved here by using URL
like

http://169.229.141.108:8080/



-Original Message-
From: Patrick Wang [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 3:00 PM

To: users@tomcat.apache.org
Subject: Tomcat 5.5.17 not displaying jsp page???

Hi,

 


I recently upgrade the TOMCAT from 5.0.28 to 5.5.17 and suddenly found out all
the .JSP page turns out blank page for my application.

 

So I did some investigation and found out 

 


1)   jsp-examples folders come with the TOMCAT 5.5 works perfect.

2)   A simple page test.jsp not working, here is  

 








TEST PAGE SHOULD COME UP



 


3)   After I copy the test.jsp to test.html, the contents showed up
correctly.

4)   I make sure every user has execute/read rights on the whole webapp
folder.

 


Can anyone shed some light?

 


Thanks

pat

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Clustering in Tomcat-4.x

2006-08-16 Thread Filip Hanik - Dev Lists

clustering in 4.x was only experimental, and probably has a load of bugs
http://people.apache.org/~fhanik/index.html.old

Filip


jaikiran pai wrote:

Hi,
  Can someone point me to a step by step setup process for Clustering 
Tomcat4.x? The Tomcat documentations that i saw, only talk about Tomcat5.x 
clustering configurations

Thank you.
  regards,
  -Jaikiran


-
 Here's a new way to find what you're looking for - Yahoo! Answers 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JMS Alternative

2006-08-17 Thread Filip Hanik - Dev Lists
use qmail or one of those email frameworks, yes, you can access it using 
the JavaMail API
you'd still need logic to handle bounces etc, so you do have some work 
ahead of you


Feris Thia wrote:

Hi All,

Is there any alternative JMS api in Tomcat ? And how can I implement 
multi
threading in JMS, let's say to send mass email (at about 100.000) with 
Java

Mail API with customized attachment ?



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/418 - Release Date: 8/14/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable a web application

2006-08-17 Thread Filip Hanik - Dev Lists

yes,
1. remove it from webapps directory
2. set autoDeploy to false, but then you have to manually deploy all the 
others

3. you can stop it once its been deployed


Ralf Schneider wrote:

Hi,

is there a way do disable a web application that is located in the webapps 
directory so that it will not be started during startup of Tomcat?


Best regards,
Ralf.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying web app over cluster.

2006-08-23 Thread Filip Hanik - Dev Lists
a recent change in 5.5, deploy dir must be your webapps directory, we'll 
revise this again in 6.0


[EMAIL PROTECTED] wrote:

Hello,

I am having some trouble getting a web app to deploy over a cluster.
Node 1 is a Linux box, with /tmp/war-listen, /tmp/war-deploy, /tmp/war-temp
Node 2 is a Windows box, with c:/tomcat5.5/tmp/war-listen etc.. 

The log file shows "...org.apache.catalina.cluster.deploy.FarmWarDeployer - Installing webapp[/appName] From /tmp/war-deploy/appName.war" 
The next line shows " ...org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster wide remove of of web app /appName


The web app has the  tag in web.xml, and bother cluster node 
server.xml files have:
Linux Version:

Windows Version:


Any suggestions or resources would be greatly appreciated.

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running Tomcat from Bootstrap.main

2006-08-23 Thread Filip Hanik - Dev Lists

your missing commons-logging from your classpath

Zach Calvert wrote:

I am running an Eclipse java application that makes a call to the
Bootstrap.main function.  I am using Log4J as my logger.
 
I set the catalina.home, catalina.base, java.endorsed.dirs, and

java.io.tempdir before I call Bootstrap.main with
 
Bootstrap.main(new String[] {"start"});
 
I get the error

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
when I make this call.  What is really weird, is that I can do
 
Log log = LogFactory.getFactory().getLog(Logger.class);

log.debug("got log");
 
right before the Bootstrap.main and see 
0 [main] DEBUG org.apache.log4j.Logger  - got log
 
on my command line.  
 
Does anyone have any idea as to what causes this failure?  Do I have to

set some environment variable that I am not aware of?
 
 
 
Thanks,

Zach Calvert

  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/2006
  




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JK 1.2.18 win32 dll not working

2006-08-25 Thread Filip Hanik - Dev Lists

its a known bug, the developers are pushing for 1.2.19 to get released

Filip


Jessica wrote:

Hi Julie,
I`m facing exactly the same problem as you described.
Have you found any solution yet?

Has anyone else succeded in getting jk-1.2.18 to run under IIS? 
An answer would help in isolating the problem to IIS or JK.

When googling for IIS isapi filters I came across this link:
http://blogs.msdn.com/david.wang/archive/2005/06/21/HOWTO_Diagnose_and_Fix_Common_ISAPI_Filter_Installation_Failures.aspx

which basicly tell us that the error code means that the ISAPI Filter
specified an ISAPI Filter DLL that does not exist.
But if for any reason GetFilterVersion(), HttpFilterProc() or
GetFilterVersion() returns FALSE when IIS tries loadLibrary, then you will
get the same error with WHATEVER value GetLastError() returns.

Any help preciated!
/* Jessica



Julie Szmyd wrote:
  

Hi,

I tried to upgrade an older version of the win32 JK isapi_redirect.dll 
to the jk-1.2.18 version that I downloaded from 
http://mirrors.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.18. 
For some reason, IIS is not able to load the ISAPI filter.  It errors 
out with the following message when I start IIS:


-

The HTTP Filter DLL C:\java\Tomcat\Jakarta Isapi 
Redirector\bin\isapi_redirect.dll failed to load.  The data is the error.


data in bytes: : 02 00 00 00   

-

I was able to successfully upgrade to the jk-1.2.15 version, which makes 
me think my setup is correct, and there could be  a problem with the 
binary for jk-1.2.18.  Has anyone else gotten the 1.2.18 version working 
on Windows XP IIS version 5.1?  Are there any differences in 
configuration from 1.2.15 to 1.2.18?


Thanks,
Julie Szmyd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cluster serialization issue

2006-08-25 Thread Filip Hanik - Dev Lists
Mark's assessment is correct, how did you end up storing your request 
object in the session?


Mark Hagger wrote:

My best guess is that you've somehow stored the request object itself on
the session, and thus the replication is trying to replicate that to the
other nodes.  


If this is the case then this is almost certainly a bad idea.

Mark


On Thu, 2006-08-24 at 09:04 -0500, Bischoff, Mathew wrote:
  

Hi,
  I'm starting to get clustering running on Tomcat I think I've solved
most of my webapp's non-serialized object issues, but now I'm getting
the error below. From what I can see , the error is not originating from
my code in the webapp, and searching the web for this error message
hasn't turned up anything useful.  Any help would be appreciated ...

Tomcat 5.5.12 on Solaris

2006-08-23 15:22:48,096 DEBUG  DeltaManager -
Manager [/edjls]: Received SessionMessage of type=(SESSION-DELTA) from
[org.apache.catalina.cluster.mcast.McastMember[...]]
2006-08-23 15:22:48,097 DEBUG  DeltaManager -
Manager [/edjls]: received session [4F2C1D4583B74B19E35243B76B2A35AF.a1]
delta.
2006-08-23 15:22:57,837 ERROR  DeltaManager - Unable
to serialize delta request for sessionid
[4F2C1D4583B74B19E35243B76B2A35AF.a1]
java.io.NotSerializableException:
org.apache.catalina.connector.RequestFacade
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at
org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExte
rnal(DeltaRequest.java:346)
at
org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequ
est.java:263)
at
org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(Delt
aManager.java:695)
at
org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaM
anager.java:1249)
at
org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationM
essage(ReplicationValve.java:328)
at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve
.java:271)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
8)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)

Matt Bischoff
Software Developer - FDS External Systems
Merrill Corporation

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email has been scanned for all known viruses by the MessageLabs SkyScan 
service.





This email has been scanned for all known viruses by the MessageLabs SkyScan 
service.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource variables in replicated objects in a Tomcat cluster

2006-08-28 Thread Filip Hanik - Dev Lists

approach the problem from a different angle:
why do you need to store the data source in a replicated object? there 
are so many other places you can store them :)


Filip


Dag Bjerkeli wrote:
I have defined my datasource parameters in context.xml.  I've 
initialized the datasource objects

in the constructor where I need them.  I'm using Tomcat 5.5.17.

As I have experienced the constructor does not get activated when a 
object is replicated, so
my idea is to implement readObject() for initializing of the 
datasource in the replicated
object.  But I don't get access to what is defined in context.xml, 
only to what is defined
in server.xml.  It looks like this is not what I should expect.  So I 
wonder if there is a

different approach to initialize datasource in a replicated object.

One solution would be to put the contents of context.xml into 
server.xml, but I

don't quite like the sound of that.

I hope some can enlighten me on this.

Regards

Dag Bjerkeli

Here is some output to illustrate the problem:
Output in tomcat1 when a object is constructed:
DB:: DataLogDAO constructor
DB:: Got context java:
DB:: got name comp


Output in tomcat2 when object is replicated:
DB:: DataLogDAO readObject
DB:: Got context java:
DB:: got name UserDatabase
DB:: got name jdbc
DB:: got name simpleValue
DB:: Err with context Name comp is not bound in this Context
javax.naming.NameNotFoundException: Name comp is not bound in this 
Context



The relevant code in class DataLogDAO:
   private transient DataSource dsR = null;
   private transient DataSource dsW = null;

   public DataLogDAO()  throws Exception {
   System.out.println("DB:: DataLogDAO constructor ");
   this.generateConnections();
   }
 private void readObject(java.io.ObjectInputStream in) throws 
IOException, ClassNotFoundException {

   System.out.println("DB:: DataLogDAO readObject");
   in.defaultReadObject();
   try {
   this.generateConnections();
   } catch(Exception e) {
   System.out.println("DB:: Err with context " + e.getMessage());
   e.printStackTrace();
   }
   }

   private void generateConnections() throws Exception {
   if( dsR == null) {
   Context ctx = new InitialContext();
   if(ctx == null )
   throw new Exception("Boom - No Context");

   String ctxname = ctx.getNameInNamespace();
   System.out.println("DB:: Got context " + ctxname);
   NamingEnumeration en = ctx.listBindings(ctxname);
   while ( en.hasMore()) {
   Binding b = (Binding) en.next();
   System.out.println("DB:: got name " + b.getName());
   }
   dsR = (DataSource) ctx.lookup(IConstants.DATASOURCE_READER);
   dsW = (DataSource) ctx.lookup(IConstants.DATASOURCE_WRITER);
   }
   }




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 8/23/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is mcastBindAddr for??

2006-08-29 Thread Filip Hanik - Dev Lists
on a multihomed machine, you might only want to bind your multicast 
socket to one interface, hence you use the bind address


Filip

Patrick Wang wrote:

Hi,

 


I am currently setting up 2 linux server and enabled the clustering and
multicast for these 2 servers.

 


I verified using the cat /proc/net/igmp command and found out once I started the
tomcat, machine will subscribe to the 228.0.0.4 group, multicast address.

 


I also used the ethereal to see the network traffic, both machine 1 and machine
2 send out UDP packet to address 228.0.0.4. Since from machine1, it can see both
the traffic

>From machine1 and machine2 to 228.0.0.4, I assume it can receive the message on
group 228.0.0.4.

 


However I did not find any tcp replication traffic come between machine1 and
machine2, the traffic between machine 1 and 2 seems all MySQL database request.

 


Can anyone shed some light on? I did not figure out what's the mcastBIndAddr
inside the server.xml. Documentation indicate it is for binding the multicast
socket to an address?

 


I donot understand what this is for.

 


Thanks

Pat


  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 8/18/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Filip Hanik - Dev Lists

Leon Rosenberg wrote:

I thought Filip coded something similar, a pooling NIO connector in java.
Leon


thats correct, it will be included in 6.0, in terms of performance it 
ranks like this


HTTP Nr Of Connections < maxThreads
1. Blocking IO Connector
2. Java NIO connector and APR connector are fairly similar

HTTP Nr Of Connections > maxThreads
1. Java NIO connector and APR connector are fairly similar
2. Blocking IO Connector

HTTPS
1. The APR connector due to built in with native OpenSSL
2. NIO connector
3. Blocking IO connector

Filip




On 8/30/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Subject: Re: Tool for monitoring Tomcat from the client side
>
> This slightly besser performance, is it achieved by C or by
> using epoll?

Good question, and I don't know the answer.  It would be interesting to
see if there's any performance difference by recoding the pure Java
request handler in Tomcat to use NIO and its polling capability.  Any
volunteers?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Filip Hanik - Dev Lists

Leon Rosenberg wrote:

Very interesting.
So if you have a typical large-app production environment with a
hardware ssl (for example by the load balancer) you don't need the
APR?
you'd need APR or NIO to be able to sustain a large number of keep 
alives. If you don't use keep alives, then it wont matter
Tomcat Native -> APR lib -> C is no difference than NIO -> VM -> C, 
hence the performance shouldn't be very different.


Filip
Hence another evidence that java's performance are equal or better 
than c?


leon

On 8/30/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

Leon Rosenberg wrote:
> I thought Filip coded something similar, a pooling NIO connector in 
java.

> Leon

thats correct, it will be included in 6.0, in terms of performance it
ranks like this

HTTP Nr Of Connections < maxThreads
1. Blocking IO Connector
2. Java NIO connector and APR connector are fairly similar

HTTP Nr Of Connections > maxThreads
1. Java NIO connector and APR connector are fairly similar
2. Blocking IO Connector

HTTPS
1. The APR connector due to built in with native OpenSSL
2. NIO connector
3. Blocking IO connector

Filip


>
> On 8/30/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>> > From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
>> > Subject: Re: Tool for monitoring Tomcat from the client side
>> >
>> > This slightly besser performance, is it achieved by C or by
>> > using epoll?
>>
>> Good question, and I don't know the answer.  It would be 
interesting to

>> see if there's any performance difference by recoding the pure Java
>> request handler in Tomcat to use NIO and its polling capability.  Any
>> volunteers?
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
PROPRIETARY

>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the 
e-mail

>> and its attachments from all computers.
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat not finding servlet....

2006-08-31 Thread Filip Hanik - Dev Lists



WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\second inside the host appBase has been specified, and will be
ignored



try correcting the above error first, then continue your troubleshooting

[EMAIL PROTECTED] wrote:

The only entries that look abnormal in the logs are as follows:

>From catalina.xxx

NFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Apache Software Foundation\Tomcat
5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem


WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\second inside the host appBase has been specified, and will be
ignored


Aug 31, 2006 5:27:41 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null



Other than that I do not see any SAX related errors...



  

are you getting any kind of SAX error when you start up tomcat?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 4:19 PM
To: users@tomcat.apache.org
Subject: tomcat not finding servlet


Hello everyone

I am running windows xp, tomcat 5.5.17, java jdk1.5.0_08.

I have created an webapp called "second"

have created the file:
C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\Catalina\localhost\second

which contains:



In /webapps/second I have a index.jsp file which works fine.

In /webapps/second/WEB-INF/classes I have a "three.class" file which I
compiled in Eclipse 3.2 without error.

In /webapps/second/WEB-INF/ I have a "web.xml" file which contains...


three
three
  

  
three
/three
  

As I said when I go to localhost/second the .jsp file shows up perfectly.
When I try localhost/second/three I am getting a 404 error.  I have tried
everything and am starting to get frustrated.


Any ideas?? Thanks in advance...


Jim




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem moving from HTTP to HTTPS

2006-08-31 Thread Filip Hanik - Dev Lists

*  

the "*" means all the roles that you have defined in web.xml, since you 
haven't defined any roles in web.xml, there is nothing to authenticate, 
hence its gonna deny the request


Filip


Glen Mazza wrote:

Hello,

I have developed a simple web application running on Tomcat that asks 
for a database username and password and then returns a report in PDF. 
I'm *not* using any of Tomcat's security features for this--no roles 
for example.


In testing it has been running fine on HTTP, but I would like it to be 
using HTTPS/SSL for production use, and ideally, be redirecting any 
user HTTP requests to HTTPS.  So I created a new keystore and 
activated the HTTPS/SSL connector in the server.xml file.  I also 
added the following security constraint to the web.xml of my web 
application in order to force a redirect from HTTP to HTTPS should the 
user enter the former:




thewholeapp
/*
GET
POST


*  



CONFIDENTIAL



The redirection to the HTTPS page is working, but the HTTPS page 
itself is failing--I keep getting 403 error messages:  "Access to the 
requested resource has been denied".  Note I am *not* doing any form 
of container authentication--that may be the problem, as I'm relying 
on the DB connection string within my web application to authenticate 
into the database.  I get the same message if I go to the https:// URL 
directly and not via redirection.


How can I get Tomcat to let every user access the HTTPS URL login page 
(letting the database continue to handle the subsequent authentication 
into the DB), preferably while still allowing for the automatic 
redirection from HTTP to HTTPS as listed in the above 
?


Thanks,
Glen

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat not finding servlet....

2006-08-31 Thread Filip Hanik - Dev Lists
hmm, have you tried putting the servlet in a package, to see if that 
makes a difference? it shouldn't, but you can easily rule it out.


after that, it would have to come down to some debugging.

Filip


[EMAIL PROTECTED] wrote:

OK i fixed the warning.  The second.xml file located in the >>> C:\Program
Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\second

needed to be changed to just say:



Restarted Tomcat (no error message) but I am still getting a 404 on my
servlets.

I also wanted to mention that my example servlets that came with tomcat
work fine in their example context.

THanks


Jim


  

WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\second inside the host appBase has been specified, and will
be
ignored
  

try correcting the above error first, then continue your troubleshooting

[EMAIL PROTECTED] wrote:


The only entries that look abnormal in the logs are as follows:

>From catalina.xxx

NFO: The Apache Tomcat Native library which allows optimal performance
in
production environments was not found on the java.library.path:
C:\Program
Files\Apache Software Foundation\Tomcat
5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem


WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\second inside the host appBase has been specified, and will
be
ignored


Aug 31, 2006 5:27:41 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null



Other than that I do not see any SAX related errors...




  

are you getting any kind of SAX error when you start up tomcat?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 4:19 PM
To: users@tomcat.apache.org
Subject: tomcat not finding servlet


Hello everyone

I am running windows xp, tomcat 5.5.17, java jdk1.5.0_08.

I have created an webapp called "second"

have created the file:
C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\Catalina\localhost\second

which contains:



In /webapps/second I have a index.jsp file which works fine.

In /webapps/second/WEB-INF/classes I have a "three.class" file which I
compiled in Eclipse 3.2 without error.

In /webapps/second/WEB-INF/ I have a "web.xml" file which contains...


three
three
  

  
three
/three
  

As I said when I go to localhost/second the .jsp file shows up
perfectly.
When I try localhost/second/three I am getting a 404 error.  I have
tried
everything and am starting to get frustrated.


Any ideas?? Thanks in advance...


Jim




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Startup Error

2006-09-01 Thread Filip Hanik - Dev Lists

Class not found problem

java.lang.ClassNotFoundException: org.apache.catalina.Container

you're probably missing some environment variable that is used to setup class 
loaders, such as CATALINA_BASE or CATALINA_HOME etc

Filip




Zach Calvert wrote:

I have a problem with Tomcat and I cannot figure out what is going on.
I am using Tomcat 4.1.31.  When running bootstrap.jar's main, I get 


Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Catalina.start: LifecycleException:  Context startup failed due to
previous errors
LifecycleException:  Context startup failed due to previous errors
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3578
)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
...
 
In reviewing the logs, I have 
 
2006-09-01 09:33:58 WebappLoader[]: Deploying class repositories to work

directory U:\...\work\Standalone\localhost\_
2006-09-01 09:33:58 ContextConfig[] Parse error in default web.xml
java.lang.ClassNotFoundException: org.apache.catalina.Container
   at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
40)
...
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
2006-09-01 09:33:58 ContextConfig[]: Occurred at line 58 column 15

2006-09-01 09:33:58 ContextConfig[]: Missing application web.xml, using
defaults only
2006-09-01 09:33:58 ContextConfig[]: Marking this application
unavailable due to previous error(s)
2006-09-01 09:33:58 StandardManager[]: Seeding random number generator
class java.security.SecureRandom
2006-09-01 09:33:58 StandardManager[]: Seeding of random number
generator has been completed
2006-09-01 09:33:58 StandardContext[]: Context startup failed due to
previous errors
 
I reviewed the web.xml and it passed a validator.  Does anyone have any

suggestions?  This web used to run just fine, so I'm wondering if maybe
a dtd is out of place or if I'm missing something simple.  
 
The error in the web.xml is:


http://java.sun.com/dtd/web-app_2_3.dtd";>

 
  
  
  
  
  
  
  
  
  
 


  
 


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 


default

  org.apache.catalina.servlets.DefaultServlet


debug
0


listings
true

1
   < ERROR POINTS TO THE END OF THIS TAG

  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 8/31/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a Service

2006-09-01 Thread Filip Hanik - Dev Lists

I would suggest you use
http://people.apache.org/~fhanik/wrapper.html

with that kit, comes a script called TomcatService.bat, this is the same 
as you would have started it as a service and you can troubleshoot.
This also lets you control a few more options and settings, as well as 
generate thread dumps


Filip

Anca Barbuc wrote:
 

Hi, 

I am having a problem with starting Tomcat as a service. 

Here are some of the details of the environment: 
   Tomcat 5 
OS: MS Windows Server 2003 SP 1 
Ram: 960 
JDK: jdk1.5.0_07 

If i start it manually with the starttom.bat it works. 
If I go and try service install and then go to Administrative Tools and 
services and try to start the servic it  will not work. 

I get the following error: 
Could not start Apache Tomcat Service on local computer 

  
  Error 1053: The service did not respond to start or control request 
  in a timely manner. 
  


Any help would be great. 
Thanks 
ab


 



  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 8/31/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Clustering with mod_jk

2006-09-01 Thread Filip Hanik - Dev Lists
since you are using prefork, you must set cachesize=1 for your 
workers.properties file.
However, you have 4096 MaxClients, in order to serve this up in tomcat, 
your JK connector should have maxProcessors="4096".
An alternative, and safe solution, although much less performance, is to 
set "MaxRequestsPerChild 1", this way you can get away with MaxClients 
4096 and still have a much less maxProcessor value on Tomcat


Filip


Edoardo Causarano wrote:

Hello List,

scenario:

- 4 node tc 5.0.28 vertical cluster ( :-| same server... still 
testing, but it could have been 8) listening on ajp

protocol="AJP/1.3" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"

redirectPort="8443">

- 1 httpd 2.0.52 with mod_ajp 1.2.15 and prefork config on RH AS4, 
kernel 2.6.9-5.EL
sticky sessions are disabled to avoid stress scripts hitting only 
one node



StartServers   40
MinSpareServers80
MaxSpareServers280
ServerLimit4096
MaxClients 4096
MaxRequestsPerChild  4096


- 1 application where a couple of thousand users should hammer the app 
deployed on the webapp


What happens is the app takes the stresser for a ride until 240 circa 
users then starts to die; jkmonitor sees linear increase on busy and 
max requests on only one node and pages hang; disabling the node moves 
the hung request handling to the next node.


Where's the bottleneck? Any known bug in mod_jk? Should I increase 
threads on the tomcat nodes?


Tnx,
e





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 8/31/2006





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Clustering with mod_jk

2006-09-01 Thread Filip Hanik - Dev Lists
it is a mod_jk issue, it uses permanent connections, that is how it was 
designed. setting MaxRequestsPerClient to 1, will kill the child, hence 
kill the mod_jk connection, this way, you can have 
maxProcessors

Filip


Edoardo Causarano wrote:
Using mpm_worker gave less impressive results; I'd say about 1/2, a 
much worse load average (way more than 5), and lots of swap. Seems 
like prefork works better on linux and I'm surprised. Anyway, assuming 
that I got the maxProcessors wrong I should have seen queues building 
up @ 150*4 instead they start < 50% that value.


The thing that makes me think it's a mod_jk issue is the fact that 
suddenly all request flow locks onto a node and stays busy until I 
restart apache.


e

On 01/set/06, at 21:21GMT+02:00, Filip Hanik - Dev Lists wrote:

since you are using prefork, you must set cachesize=1 for your 
workers.properties file.
However, you have 4096 MaxClients, in order to serve this up in 
tomcat, your JK connector should have maxProcessors="4096".
An alternative, and safe solution, although much less performance, is 
to set "MaxRequestsPerChild 1", this way you can get away with 
MaxClients 4096 and still have a much less maxProcessor value on Tomcat


Filip


Edoardo Causarano wrote:

Hello List,

scenario:

- 4 node tc 5.0.28 vertical cluster ( :-| same server... still 
testing, but it could have been 8) listening on ajp

protocol="AJP/1.3" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"

redirectPort="8443">

- 1 httpd 2.0.52 with mod_ajp 1.2.15 and prefork config on RH AS4, 
kernel 2.6.9-5.EL
sticky sessions are disabled to avoid stress scripts hitting 
only one node



StartServers   40
MinSpareServers80
MaxSpareServers280
ServerLimit4096
MaxClients 4096
MaxRequestsPerChild  4096


- 1 application where a couple of thousand users should hammer the 
app deployed on the webapp


What happens is the app takes the stresser for a ride until 240 
circa users then starts to die; jkmonitor sees linear increase on 
busy and max requests on only one node and pages hang; disabling the 
node moves the hung request handling to the next node.


Where's the bottleneck? Any known bug in mod_jk? Should I increase 
threads on the tomcat nodes?


Tnx,
e





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 
8/31/2006






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 8/31/2006





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Low performance with Tomcat APR

2006-09-05 Thread Filip Hanik - Dev Lists

if (your max nr of open connections) < Connector.maxThreads ) then
 the regular connector is better, and will always be as it is using 
blocking IO

else
 APR will scale better, as it can keep a larger set of keep alive 
connections open

end

Your biggest gain on the APR connector is if you are using Tomcat SSL, 
its probably 20 times faster (if not more) than the java blocking connector.
There is a bug in APR SSL handshaking that was fixed recently and is 
available in

http://people.apache.org/~fhanik/v5.5.18-beta-1/

Filip



José Manuel Molina Pascual wrote:

Hello, I just installed Tomcat APR on a SUSE 9 and found that the
performance has fallen dramatically (I fact, performance with APR it's
half than without it).

I followed the instructions of the Tomcat Documentation.

I suppose that this must be some configuration issue.

I'm using Apache APR 1.2.7, OpenSSL 0.9.7d and Tomcat 5.5.17.

Thanks in advance.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 5.5.17 cluster doesn't sync sessions on startup

2006-09-06 Thread Filip Hanik - Dev Lists
are the nodes starting up simultanously, there is the risk of syncing 
not working if two nodes are starting at the same time as the cluster 
starts before the actual webapps are deployed.


Filip


Ronald Klop wrote:

Hello,

We are running a 4-node cluster of 5.5.17. Sometimes java or tomcat 
crashes and we restart it automaticly. With 5.0.x this was ok, but 
with 5.5.x it doesn't sync session on startup often.
When this happened on 5.0.x I got an ClassCastException, which 
explained why syncing failed. But on 5.5.17 I just get a timeout of 60 
seconds.


This is the start of the catalina.out.

Sep 5, 2006 9:41:04 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 5, 2006 9:41:04 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1399 ms
Sep 5, 2006 9:41:04 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 5, 2006 9:41:04 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Sep 5, 2006 9:41:04 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster start

INFO: Cluster is about to start
Sep 5, 2006 9:41:04 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster 
createDefaultClusterValves

INFO: Add Default ClusterValves at cluster Catalina
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster 
createDefaultClusterListener

INFO: Add Default ClusterListener at cluster Catalina
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster 
createDefaultClusterReceiver

INFO: Add Default ClusterReceiver at cluster Catalina
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster 
createDefaultClusterSender

INFO: Add Default ClusterSender at cluster Catalina
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SocketReplicationListener 
createServerSocket

INFO: Open Socket at [10.0.10.55:8015]
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.ReplicationTransmitter start
INFO: Start ClusterSender at cluster Catalina:type=Cluster with name 
Catalina:type=ClusterSender
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster 
createDefaultMembershipService

INFO: Add Default Membership Service at cluster Catalina
Sep 5, 2006 9:41:05 AM org.apache.catalina.cluster.mcast.McastService 
start

INFO: Sleeping for 4000 milliseconds to establish cluster membership
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.52:8015,catalina,10.0.10.52,8015, 
alive=67855063]
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
INFO: Create sender [/10.0.10.52:8,015] queue thread to tcp background 
replication
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.73:8015,catalina,10.0.10.73,8015, 
alive=61675989]
Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
INFO: Create sender [/10.0.10.73:8,015] queue thread to tcp background 
replication
Sep 5, 2006 9:41:06 AM 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.53:8015,catalina,10.0.10.53,8015, 
alive=62452004]
Sep 5, 2006 9:41:06 AM 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
INFO: Create sender [/10.0.10.53:8,015] queue thread to tcp background 
replication
Sep 5, 2006 9:41:09 AM org.apache.catalina.cluster.mcast.McastService 
registerMBean

INFO: membership mbean registered (Catalina:type=ClusterMembership)
Sep 5, 2006 9:41:09 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 5, 2006 9:41:09 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

SEVERE: Context manager doesn't exist:localhost
Sep 5, 2006 9:41:10 AM 
org.apache.catalina.cluster.session.ClusterSessionListener 
messageReceived

S

Re: 5.5.17 cluster doesn't sync sessions on startup

2006-09-07 Thread Filip Hanik - Dev Lists
ok, in that case, there could so much session data that it takes longer 
than 60 seconds to retrive.

you have two options
1. increase the transfer timeout
2. transfer data in chunks

 
manager.className="org.apache.catalina.cluster.session.DeltaManager"
 manager.stateTransferTimeout="120"   
 manager.sendAllSessions="false"

 manager.sendAllSessionsSize="500"
 manager.sendAllSessionsWaitTime="20">

I believe this is documented on the website

Filip

Ronald Klop wrote:

No, one node is restarting, while the other three keep running.

Ronald.




On Wed Sep 06 19:18:14 CEST 2006 Tomcat Users List 
 wrote:
are the nodes starting up simultanously, there is the risk of syncing 
not working if two nodes are starting at the same time as the cluster 
starts before the actual webapps are deployed.


Filip


Ronald Klop wrote:
> Hello,
>
> We are running a 4-node cluster of 5.5.17. Sometimes java or tomcat 
> crashes and we restart it automaticly. With 5.0.x this was ok, but 
> with 5.5.x it doesn't sync session on startup often.
> When this happened on 5.0.x I got an ClassCastException, which > 
explained why syncing failed. But on 5.5.17 I just get a timeout of 
60 > seconds.

>
> This is the start of the catalina.out.
>
> Sep 5, 2006 9:41:04 AM org.apache.coyote.http11.Http11BaseProtocol 
init

> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Sep 5, 2006 9:41:04 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1399 ms
> Sep 5, 2006 9:41:04 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Sep 5, 2006 9:41:04 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> Sep 5, 2006 9:41:04 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster start

> INFO: Cluster is about to start
> Sep 5, 2006 9:41:04 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster > 
createDefaultClusterValves

> INFO: Add Default ClusterValves at cluster Catalina
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster > 
createDefaultClusterListener

> INFO: Add Default ClusterListener at cluster Catalina
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster > 
createDefaultClusterReceiver

> INFO: Add Default ClusterReceiver at cluster Catalina
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster > 
createDefaultClusterSender

> INFO: Add Default ClusterSender at cluster Catalina
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SocketReplicationListener > 
createServerSocket

> INFO: Open Socket at [10.0.10.55:8015]
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.ReplicationTransmitter start
> INFO: Start ClusterSender at cluster Catalina:type=Cluster with 
name > Catalina:type=ClusterSender
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster > 
createDefaultMembershipService

> INFO: Add Default Membership Service at cluster Catalina
> Sep 5, 2006 9:41:05 AM 
org.apache.catalina.cluster.mcast.McastService > start

> INFO: Sleeping for 4000 milliseconds to establish cluster membership
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
> INFO: Replication member > 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.52:8015,catalina,10.0.10.52,8015, 
> alive=67855063]
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
> INFO: Create sender [/10.0.10.52:8,015] queue thread to tcp 
background > replication
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
> INFO: Replication member > 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.73:8015,catalina,10.0.10.73,8015, 
> alive=61675989]
> Sep 5, 2006 9:41:05 AM > 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
> INFO: Create sender [/10.0.10.73:8,015] queue thread to tcp 
background > replication
> Sep 5, 2006 9:41:06 AM > 
org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
> INFO: Replication member > 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.10.53:8015,catalina,10.0.10.53,8015, 
> alive=62452004]
> Sep 5, 2006 9:41:06 AM > 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender checkThread
> INFO: Create sender [/10.0.10.53:8,015] queue thread to tcp 
background > replication
> Sep 5, 2006 9:41:09 AM 
org.apache.catalina.cluster.mcast.McastService > registerMBean

> INFO: membership mbean registered (Catalina:type=ClusterMembership)
> Sep 5, 2006 9:41:09 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Sep 5, 2006 9:41:09 AM org.apache.catalina.startup.HostConfig 
deployWAR

> INFO: Deploying web application archive ROOT.war
> Sep 5, 2006 9:41:09 AM > 
org.apache.catalina.cluster.session.ClusterSessionListener > 
messageReceived

> SEVERE: Context manager doesn't exist

Re: decompiling classes

2006-09-07 Thread Filip Hanik - Dev Lists


gee, this is so BS, you don't have to go through all that effort.
download all the source in a single package from
http://tomcat.apache.org/download-55.cgi

don't pay anyone for decompilation instructions, for open source, you 
can always get the source, for closed source its illegal anyway.


Filip

Nicholas Irving wrote:
That is too much hard work, whenever I want to look @ the source for a 
class

I just decompile and it gte me a 100% accurate copy, no need to hit the
Internet to get the source I already have on my desktop. For an extra 
$5 I

will throw in the "How to view Java Source within Eclispe" PDF.

NIrving

On 07/09/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


Umm, the "command" to decompile Tomcat's classes is this:

http://tomcat.apache.org/svn.html

;)

Frank

Nicholas Irving wrote:
> I know the software you mean, it is completely free, but I have a 
guide

> that
> I can sell to you for $19.95 that tells you where to download it from
and
> contains commonly available documentation convert into a PDF for 
you to

> read.
>
> So you want my PayPal account so that you can deposit the money and 
then

> enjoy the world of decompiling java classes.
>
> NIrving
>
> On 08/09/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>>
>> what's the command again for decompiling Tomcat's classes? Or was 
there

>> special software needed to do so?
>>
>>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: decompiling classes

2006-09-08 Thread Filip Hanik - Dev Lists
if you are trying to connect to Oracle, why do you use the JDBC-ODBC 
bridge, its filled with problems.
Download Oracles JDBC driver, they have a type 4 driver (pure Java), and 
use that


Filip


Propes, Barry L wrote:

maybe I didn't look in the right places, but I didn't exactly find what I was 
looking for.

I'm getting an error of the following, connecting to Oracle.

java.sql.SQLException: [Oracle][ODBC]Syntax error or access violation.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(JdbcOdbc.java:4229)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
550)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
519)
at chngctrl.ChangeControlUserAcctServletSPCall.doGet(ChangeControlUserAc
ctServletSPCall.java:86)
at chngctrl.ChangeControlUserAcctServletSPCall.doPost(ChangeControlUserA
cctServletSPCall.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Seemed like it was on the JdbcOdbcConnection class where the problem was, but 
how could I verify that?

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 6:36 PM
To: Tomcat Users List
Subject: Re: decompiling classes


Propes, Barry L wrote:
  

what's the command again for decompiling Tomcat's classes? Or was there special 
software needed to do so?



Why not just browse the source?
http://tomcat.apache.org/svn.html

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat CLustering listening address

2006-09-14 Thread Filip Hanik - Dev Lists

cause your `hostname` resolves to 127.0.0.1 in /etc/hosts

Filip


Patrick Wang wrote:

Hi all:

 


I setup the TCPListner's IP address to be "auto" on 2 separate machines.

 


Then I used the command netstat -nlp to verify what's listed and found out one
actually bound to 127.0.0.1,

 


The other bound to the real IP address. What is going on?

 


Actually these 2 machines have the exact same Fedora Core 4 and tomcat 5.0.28
installed.

 


Thanks

Pat


  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/447 - Release Date: 9/13/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   4   5   6   7   8   9   10   >