RE: Urgent: Issue with Tomcat Clustering

2004-05-24 Thread Filip Hanik \(lists\)
not an issue with clustering, the stack trace is in the mod_jk code,
Filip


-Original Message-
From: Vikas Gupta [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 12:08 PM
To: Tomcat Users List
Subject: Urgent: Issue with Tomcat Clustering



Hi All,
I am trying to do tomcat clustering using tomcat 5.0.19 using mod_jk
connector for Apache 2.
I am stuck up in a problem for quite some time.
I am able to run the sample application in my setup and the clustering and
session replication works fine.

But when I run my application in the cluster it bombs. The test scenarios is
like this,
We hvve tried using poolable and synchronous mode.

The session object in is not getting replicated and is
request.getSession(false) gives null value. The same scenario is working
fine on the sample application. 
I think Cluster setup is fine because sample application

Can you please tell us the reason of exception 

Is there any adverse impact of the following on session replication in
clustering scenario: 

1. usage of encodeURL (URL rewriting)
2. usage of large objects in session
3. usage of cookies

I have attached the server.xml, web.xml and workers.properties.

Please advise
Regards
Vikas

May 23, 2004 8:51:11 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:580)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:518)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:638)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:688)
at java.lang.Thread.run(Thread.java:536)
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:55:53 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberD





---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004
 


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



API for authenticating user

2004-05-24 Thread Koji Sekiguchi
Hi,
(B
(BI'd like to know how to authenticate a new user when
(Bhe/she subscribe his/herself so that he/she can
(Bavoid login procedure.
(B
(BI've successfully set up Form Authentication
(Band JDBC Realm on Tomcat 5.0.24. But now, new users
(Bmust visit login page to authenticate themselves
(Bafter subscribing. I'd like to reduce the login step
(Bfor subscribers if session continues.
(B
(BI think I have to use a couple of Tomcat API
(Band save principal information into the user session, right?
(B
(Bregards,
(B
(BKoji
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: session data in Tomcat 5

2004-05-24 Thread M.Hockings
Ben Souther wrote:
Ah Ben, I don't know if you have kids or not.  But y'know how a kid can
kinda look at the floor and shuffle their feet when caught doing
something stupid.  Well, keep that in mind as you read what I figured
out...
   

Believe me, you've nothing to feel stupid about.  We've all been there.
One thing to bear in mind, and I've had to tell myself this at least a dozen 
times over the last year, is that there are thousands of people developing 
commercial applications with Tomcat right now.   If something fundamental, 
like session handling, were ever to stop working, there would be hundreds of 
posts to this list, all of them complaining about the same thing.  Within a 
day, there would be a fix for it.  Over the next few days, you would see 
hundreds more complaining about the same bug accompanied by hundreds of posts 
from the likes of Yoav Shapira, Tim Funk, Philip Hanik, (and several others) 
answering the same question over and over again, telling people exactly what 
version to download to fix it.  If you don't see that scenerio on this list, 
keep looking at your own setup.

I'm glad it's working for you.
-Ben
PS: Did the put the Zone Labs product on the server, or just on your desktop?
Thanks Ben.  I kept telling myself that it should work just fine, 
particularly since Tomcat has been one of those things that for me just 
works with little or no tinkering (I like that kinda thing).

The Zone Labs thing is installed on the desktop, when I open it's config 
window it's called Zone Labs Integrity Desktop.  When I click on the 
help/about link it sends me here 
http://www.zonelabs.com/store/content/company/corpsales/zapidOverview.jsp

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


Re: java.lang.ClassCircularityError

2004-05-24 Thread Viktor Matic
 This is probably related to the subject configuration. Can you create a 
 small test case that reproduce the problem? I will be able to better see 
 what's happening.

I have tried to compose a simple test which simulates the real thing,
but I did not succeed to reproduce the error. For simplicity reason of
the test code all my classes, except the servlet class which was in the
webapps, are placed in the {$CATALINA_HOME}/shared/classes. All code in 
the shared/classes has AllPermissions according to the catalina.policy. 

When I was sure that everything works fine with the tests I tried same
approach on the original code (as Filip Hanik already suggested but not
server/classes because ClassNotFound error). I have moved all code
concerning security  (implementations of Policy, Permissions, User
groups, Log. Module, etc.) to the {$CATALINA_HOME}/shared/classes and
gave AllPermissions to this code source through my security system. In
webapps I have left only servlet class that use security. Now it works
perfectly. Maybe problem is in the class loader (/shared/classes is
served with different class loader than /webapps ?!)


Best regards

Viktor

  


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



Re: java.lang.ClassCircularityError

2004-05-24 Thread Viktor Matic
 This is probably related to the subject configuration. Can you create
a 
 small test case that reproduce the problem? I will be able to better
see 
 what's happening.

I have tried to compose a simple test which simulates the real thing,
but I did not succeed to reproduce the error. For simplicity reason of
the test code all my classes, except the servlet class which was in the
webapps, are placed in the {$CATALINA_HOME}/shared/classes. All code in 
the shared/classes has AllPermissions according to the catalina.policy. 

When I was sure that everything works fine with the tests I tried same
approach on the original code (as Filip Hanik already suggested but not
server/classes because ClassNotFound error). I have moved all code
concerning security  (implementations of Policy, Permissions, User
groups, Log. Module, etc.) to the {$CATALINA_HOME}/shared/classes and
gave AllPermissions to this code source through my security system. In
webapps I have left only servlet class that use security. Now it works
perfectly. Maybe problem is in the class loader (/shared/classes is
served with different class loader than /webapps ?!)


Best regards

Viktor




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



RE: session data in Tomcat 5

2004-05-24 Thread Shane Linley
I am a ZoneAlarm Pro user and when I first ran Tomcat on my desktop (with
ZapPro) it sabotaged the cookies that TC was using, and from memory TC
started to encode the session id in the URL. I would recommend looking at
the privacy settings in zonelabs to see what it is doing with user
identifiable information and particularly cookies.

I havn't used Integrity before but it does have the forever troublesome
Privacy and Productivity Features found in ZapPro. Start with downgrading
the level of security for cookies (or set up your local PC to be trusted
when it comes to cookies and things might just get better for you.

Regards,
Shane.

-Original Message-
From: M.Hockings [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 May 2004 11:40 AM
To: Tomcat Users List
Subject: Re: session data in Tomcat 5


Ben Souther wrote:

Ah Ben, I don't know if you have kids or not.  But y'know how a kid can
kinda look at the floor and shuffle their feet when caught doing
something stupid.  Well, keep that in mind as you read what I figured
out...



Believe me, you've nothing to feel stupid about.  We've all been there.

One thing to bear in mind, and I've had to tell myself this at least a
dozen
times over the last year, is that there are thousands of people developing
commercial applications with Tomcat right now.   If something fundamental,
like session handling, were ever to stop working, there would be hundreds
of
posts to this list, all of them complaining about the same thing.  Within a
day, there would be a fix for it.  Over the next few days, you would see
hundreds more complaining about the same bug accompanied by hundreds of
posts
from the likes of Yoav Shapira, Tim Funk, Philip Hanik, (and several
others)
answering the same question over and over again, telling people exactly
what
version to download to fix it.  If you don't see that scenerio on this
list,
keep looking at your own setup.

I'm glad it's working for you.

-Ben

PS: Did the put the Zone Labs product on the server, or just on your
desktop?

Thanks Ben.  I kept telling myself that it should work just fine,
particularly since Tomcat has been one of those things that for me just
works with little or no tinkering (I like that kinda thing).

The Zone Labs thing is installed on the desktop, when I open it's config
window it's called Zone Labs Integrity Desktop.  When I click on the
help/about link it sends me here
http://www.zonelabs.com/store/content/company/corpsales/zapidOverview.jsp

Mike

-
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: problem with JSP - no data returned

2004-05-24 Thread Knight, Digby
It's not that tools.jar isn't on the path, and Tomcat can't compile the JSPs
at runtime, is it?

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: 23 May 2004 00:52
To: Tomcat Users List
Subject: Re: problem with JSP - no data returned


Just a few curious questions.

Are you running this as a service, from the console or from the shortcut?

Are you logged in as an administrator? Where you when you installed?

What are the permission setting on the directories that you installed to?

Just thinking of a far fetched idea. If the permissions are read-only on the
files you installed then you would not get any warnings in the logs or jsp
being compiled. Although it should kick back an error on the web page,
stranger things have happened.

Doug
www.parsonstechnical.com


- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, May 22, 2004 5:12 PM
Subject: Re: problem with JSP - no data returned


 Ondrej Sváb wrote:

  In fact, I have not installed servlets examples but my servlets run
well. So
  I do not think that it is CLASSPATH problem.
  That is also potential solution for this moment, that is rewrite all
JSP
  what I need into servlets :) (I have already started.)

 That's not a solution, it's a workaround, and an unfortunate one
 at that :-)  (Markup in servlets? yuck!)

  So I am really very wondering where is the problem. Have you now (after
your
  inquiry :)) any idea?

 Nope -- none whatsoever. If your JSP scriptlet code wasn't being
 evaluated, you'd see it returned as raw code; if it's failing to
 return any output due to throwing an exception, you should see a
 message in the console or server logs, assuming the context has
 logging enabled and a non-zero debug level...

 I can't imagine how an out-of-the-box installation could *not*
 just work; do you have another system you could try installing on
 for comparison?

 /*  the last sentence indicating we have now reached the
   *  grasping-at-straws portion of the exercise  :-)
   */
 -- 
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

dream.  code.




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





-
*
Confidentiality Note: The information contained in this 
message, and any attachments, may contain confidential 
and/or privileged material. It is intended solely for the 
person(s) or entity to which it is addressed. Any review, 
retransmission, dissemination, or taking of any action in 
reliance upon this information by persons or entities other 
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.
*


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



This is a test message

2004-05-24 Thread Viktor Matic
Apologies to everyone this is a test message. I'am trying to send replay
to list whole morning but I do not get back copy of my message. 



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



RE: CGIServlet -- tomcat

2004-05-24 Thread Alex

Mark, thanks for the reply.  Yes, it's still the only issue.  I'm trying
to cut everything down to make it very simple.  All i'm trying to get work
is the perl file 14all.cgi (google it).

It works through apache 1.3.x/2.x etc.  and I'm almost 100% i had it
working using tomcat 4.x a while ago.  however, since upgrading everything
across the board to 5.0.x i can't recall when it actually broke.  could be
my memory is failing.

the perl portion i believe it doesn't like is when it sets the header and
the expiration time.  if i remove that line, everything is printed to the
screen in html...but no png info.  in the logs i see it being generated
and spat out.

On Fri, 21 May 2004, Mark Thomas wrote:

 Date: Fri, 21 May 2004 19:14:41 +0100
 From: Mark Thomas [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: CGIServlet -- tomcat

 Alex,

 I have been looking after the CGI servlet for the last few months. If you look
 in CVS you'll see my name against most of the changes.

 Sorry I didn't see your early posts on the user list. I do keep my eyes open for
 anything CGI servlet related and must have missed it.

 Is the header issue the only one?

 I am no perl expert, so if you could post a complete (but as simple as possible)
 script test case that doesn't work that would be a big help.


 Mark


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



Can I change Tomcat's default character encoding?

2004-05-24 Thread Allistair Crossley
We are having a host of problems with character encoding at the moment. Somehow 
between the UI and the Struts Action our euro symbols are being turned into question 
marks. I have fiddled with the JVM file.encoding, using JSP page directives for 
content type and much else besides. I thought Java strings were UTF-8 by default.

Anyway, I stripped off the JSP page directive for encoding and it appears the tomcat 
default becomes Latin 1 ISO-8859-1. The euro character does not appear in this charset 
and I need Cp1252 to be default. 

Can I change Tomcat's default charset?

Thanks ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: apache -tomcat problem

2004-05-24 Thread Dirk Slootmaekers
hello,
 
an update on our findings. We had the same problem now with tomcat
3.3.1a after 4 hours of working.
So it is not related to the apache AJP connector but it is in tomcat.
 
any idea what the problem could be? (after a short term after logging in
the user is kicked out).
 
I included the jvm logfile of the tomcat.
could this be caused by the bug you mentioned in 3.3.1?
or is this a coding bug?
 
thanks
Dirk
 

-Oorspronkelijk bericht- 
Van: Bill Barker 
Verzonden: za 22/05/2004 23:50 
Aan: [EMAIL PROTECTED] 
CC: 
Onderwerp: Re: apache -tomcat problem



I think that this is the first time I've ever heard that the
3.3.1a
stand-alone connector worked better than the AJP13 connector
;-).

There is a session race-condition bug in 3.3.1a (BZ #15894) that
is fixed in
3.3.2.  It is possible that this is the real problem you are
seeing, and it
is only showing up with the AJP13 connector because you are
hitting Tomcat
harder in that configuration.  However, I'm just guessing here
:).

Otherwise, you'll need to provide more information for anyone to
have a shot
at figuring out the problem.  This would include things like:
1) are the broken requests reaching Apache? (from the Apache
access logs)
2) are the broken requests reaching Tomcat? (enable the acces
log on Tomcat,
mod_jk logs).
3) is the session cookie reaching Tomcat (set 'debug=1' on the
SessionID
element in server.xml).


Dirk Slootmaekers [EMAIL PROTECTED] wrote in message

news:[EMAIL PROTECTED]
 hello All,

 We've developped a J2EE web based application, using Tomcat as
a
 application container.
 When we only work on tomcat, the application works fine. If we
add the
 apache web server, for performance improvement, the
application becomes
 unstable.
 After a while the session is apparently thrown away, so what
ever action
 you do in the browser it is ignored ea not excuted. It is not
that all
 the users suffer from this at once, but some of the users
(after a while
 working with the application) are not responding anymore.

 We're using tomcat 3.3.1a, with Apache 2.0.46 (with the mod_jk
dll for
 2.0.46)

 with the following settings in the httpd.conf
 MaxKeepAliveRequest = 0
 KeepAliveTimeOut = 100
 ThreadsPerChild = 1024
 MaxRequestsPerChild = 0


 we also use pushlets to realtime publish events to our
toolbar.

 can somebody assist us in this issue? since we really have no
clue why
 the application is working perfectly with tomcat standalone,
but when we
 add the apache webserver it freezes sessions after a while?

 is it possible that this has anything to do with the
window.open command
 getting fired to often?

 if somebody could help me?

 thanks
 Dirk







-
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: Another source for MD5 encryption

2004-05-24 Thread Shapira, Yoav

Hi,
MD5 is not an encryption algorithm, by the way.  It's a digesting one
for us in conjunction with an encryption algorithm.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Saturday, May 22, 2004 5:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Another source for MD5 encryption

Tomcat is simply wrapping calls to java.security.MessageDigest.  It
doesn't
provide an implementation of the MD5 algorithm;  it just uses the one
provided by the installed security-provider.  It should also ship with
a
1.4
JDK.  Other than you JVM vendor, you could also look at cryptex if you
want
an open-source implementation.

Tim Penhey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have a web application that manages the usernames and passwords for
a
JDBCRealm.  The
 realm uses MD5 digest to encrypt the passwords for checking, and the
encrypted passwords
 are stored in the DB.

 The docs say to have TOMCAT_HOME/server/lib/catalina.jar in the
classpath
in order to use
 the RealmBase.Digest static method, but I was wondering if there is
another source around
 that will do the same MD5 digesting of passwords so I don't need
catalina.jar in
 WEB-INF/lib.

 I don't really want to move around any of the tomcat jars, like from
server to common, as
 I want the web app to be able to deploy on another vanilla install of
tomcat.

 Any ideas?

 Thanks,
 Tim




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Debug-Logger

2004-05-24 Thread Dotterweich Juergen
Hello,

I installed a log4j.properties - file and the performace suffers extreme
and I get much too much DEBUG entries.

The log4j.properties - file looks like:

log4j.rootLogger=ERROR, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

log4j.logger.org.apache=DEBUG

In what word can I change DEBUG to get only the normal statements?

Note:

If I set log4j.logger.org.apache=DEBUG into commentary I get a message:

ServerLifeCycleListener:Can't create mbean for realm
[EMAIL PROTECTED]

After this:

Starting server Tomcat - Standalone

I hope you can help me.

Thanks in advance.

Kind regards
Jürgen


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



Use of SNMP to monitor Tomcat

2004-05-24 Thread Hut Carspecken
Good Morning Everyone,

I need to incorporate Tomcat as the presentation layer of a larger system and in doing 
so, I want
to monitor it using SNMP.  I understand that Tomcat can incorporate JMX to monitor 
some of its
functions; however, my project calls for the use of SNMP.

Has anyone monitored Tomcat with SNMP or have any knowlege how to do so?

Thanks!

Hut

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



JK2 / Apache / JNI Inprocess

2004-05-24 Thread Dale, Matt
Title: JK2 / Apache / JNI Inprocess






Hi,


After being assured by someone on this list that JNI worked on the latest tomcat and JK2 versions I thought I'd give it another shot.

As far as I can tell there is no way its going to apart from possibly on windows.


Can anyone tell me authorititively that it can work at all?

and in particular on a non windows platform?


Ta

Matt





Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

logrotate and cronolog for log rotation

2004-05-24 Thread Simon Zeng
Hi,

Is there anyone here using cronolog and/or logrotate? I could use them for
access.log but could not make them work for mod_jk.log and haven't tried
error_log and all ssl logs yet.

Any experience and insights would be greatly appreciated.

Thanks,
-Simon
 

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



Re: Question?

2004-05-24 Thread Wade Chandler
mpforste wrote:
I want to use Tomcat as a major part of the server, can you set Tomcat to
also serve php so removing the need for apache?
I am currently running apache 1.3(patched) and would like to drop it and use
Tomcat 5 standalone to provide both port 80 and 443 but until I can convert
from php to jsp I want to switch to Tomcat and have tomcat provide the php,
With apache you can set that certain file extensions call external programs
can you do this with Tomcat so that if someone requests a php file from
tomcat it calls the php.exe (or php) program and pipes the result back to
the client?
Mike.
PS I have already looked at using jk jk2 and it is not feasible without a
complete upgrade of Apache (which I am trying to drop anyway)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.681 / Virus Database: 443 - Release Date: 10/05/2004
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

http://www.php.net/manual/en/ref.java.php#java.servlet
Wade
--
Wade Chandler
Red-e Set Grow, LLC
Phone: 336-777-0075 x1705
Email: [EMAIL PROTECTED]
www.redesetgrow.com

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


.

2004-05-24 Thread Ben Souther
.

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



Best Scheduler/Cron for Tomcat?

2004-05-24 Thread Steven J. Owens
Hi all,

 What's the best scheduler or cron for use with tomcat?  

 I've been googling and Quartz and Jcrontab seem to turn up often.
The Quartz website says it's used by some Jakarta projects, and I see
some references to Quarts in commons-beanutils documents in google.

 What we're doing specifically: scheduling out-going phone calls
from a VoiceXML system to automatically call users at their preferred
time.  I suspect we're going to see calls cluster at certain points
(e.g. 6:00, 6:30, 7:00) so the method that starts the call will have
to be multi-threaded, or queued.  If I can get some support for that
from the scheduler, so much the better.

 We're on tomcat 4.x at the moment.  I plan to move up to 5, but I
have a ton of things to do, and I've seen a few posts here that
suggest that moving to 5 might involve non-trivial time and
frustration.  Our app is pretty vanilla, so I'm not especially
worried, but I have twenty-seven priority-1 tasks on my plate, so...


Quartz- http://www.quartzscheduler.org/quartz/
Jcrontab  - http://jcrontab.sourceforge.net/index.shtml
SuperLite - http://www.acelet.com/super/SuperScheduler/index.html

-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - Me at http://darksleep.com


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



Re: Session Timeout and Direct Reference to login page

2004-05-24 Thread Jonathan Eric Miller
I found out about a few other functions that make it bit easier. I think I
have it working using the following,

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if(((HttpServletRequest)request).getRequestedSessionId() != null 
((HttpServletRequest)request).isRequestedSessionIdValid() == false) {
RequestDispatcher rd =
request.getRequestDispatcher(/WEB-INF/sessionexpired.jsp);
rd.forward(request, response);
}
else {
chain.doFilter(request, response);
}
}

The strange thing is that this page seems to only intermittently be
displayed. i.e. it is catching the case where the session expires, but, in
some cases since I'm using container based security, it is going back to the
login page. Sometimes it goes to this page first, and then brings up the
login page. Other times, it just goes straight to the login page. I need to
look into it further. I have SingleSignOn enabled, so, I'm not sure if that
might have something to do with it. I need to do more testing. In theory, I
think it should go to the login page each time. So, I'm thinking of putting
a check in my login page similar to the above that just shows optional text
stating that the session has expired.

Another thing that I'm wondering is if it is possible to use a servlet as
the login page for Tomcat rather than a .jsp file.

Jon

- Original Message - 
From: Veniamin Fichin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, May 21, 2004 7:15 AM
Subject: Re: Session Timeout and Direct Reference to login page


 Jonathan Eric Miller wrote:

  Yeah, that seems like it would work. I'm wondering if I could maybe use
a
  filter by itself though and not use the listener and do something like
the
  following.
 
  1. Intercept all requests with a filter.
  2. Get the HttpSession out of the request. Get the session ID by calling
  HttpSession.getId();
  3. Get the cookie array and see if there is a cookie named jsessionid.
If
  there is, compare the two session IDs. If they are different forward to
  sessionexpired.jsp to display error page. Otherwise, continue as normal.

 I've just tried this way, it works. Look at example .java file in
 attach for example, it's Filter implementation. Thanks for the
 suggestion, it's very useful.





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


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



JK2 / Apache / JNI Inprocess

2004-05-24 Thread Dale, Matt
Title: JK2 / Apache / JNI Inprocess






Apologies for the resend but I cant find this in the archive and i never received it back


Hi,


After being assured by someone on this list that JNI worked on the latest tomcat and JK2 versions I thought I'd give it another shot.

As far as I can tell there is no way its going to apart from possibly on windows.


Can anyone tell me authorititively that it can work at all?

and in particular on a non windows platform?


Ta

Matt





Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Re: This is a test message

2004-05-24 Thread Alex

I've been getting very or little or nothing from the list and well, I know
why.  Should get it off the rbl's

550 Service unavailable; Client host [209.237.227.199]
blocked using bl.spamcop.net; Blocked - see 
http://www.spamcop.net/bl.shtml?209.237.227.199

On Mon, 24 May 2004, Viktor Matic wrote:

 Date: Mon, 24 May 2004 11:30:01 +0200
 From: Viktor Matic [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: This is a test message

 Apologies to everyone this is a test message. I'am trying to send replay
 to list whole morning but I do not get back copy of my message.


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



Re: Can I change Tomcat's default character encoding?

2004-05-24 Thread M.Hockings
Allistair Crossley wrote:
We are having a host of problems with character encoding at the moment. Somehow 
between the UI and the Struts Action our euro symbols are being turned into question 
marks. I have fiddled with the JVM file.encoding, using JSP page directives for 
content type and much else besides. I thought Java strings were UTF-8 by default.
Anyway, I stripped off the JSP page directive for encoding and it appears the tomcat default becomes Latin 1 ISO-8859-1. The euro character does not appear in this charset and I need Cp1252 to be default. 

Can I change Tomcat's default charset?
Thanks ADC
 

Allistair,
I think that you might find that sicking with UTF-8 will give you the 
most long-term joy.

Here is a link to some info about i18n that may be of use to you.
http://www.anassina.com/struts/i18n/i18n.html
Mike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Debug-Logger

2004-05-24 Thread Shapira, Yoav

Hi,
Change DEBUG to WARN or ERROR depending on your preference.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Dotterweich Juergen [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 9:08 AM
To: '[EMAIL PROTECTED]'
Subject: Debug-Logger

Hello,

I installed a log4j.properties - file and the performace suffers extreme
and I get much too much DEBUG entries.

The log4j.properties - file looks like:

   log4j.rootLogger=ERROR, A1
   log4j.appender.A1=org.apache.log4j.ConsoleAppender
   log4j.appender.A1.layout=org.apache.log4j.PatternLayout

   # Print the date in ISO 8601 format
   log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

   log4j.logger.org.apache=DEBUG

In what word can I change DEBUG to get only the normal statements?

Note:

If I set log4j.logger.org.apache=DEBUG into commentary I get a message:

ServerLifeCycleListener:Can't create mbean for realm
[EMAIL PROTECTED]

After this:

Starting server Tomcat - Standalone

I hope you can help me.

Thanks in advance.

Kind regards
   Jürgen


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



How to setup keystoreFile in server.xml for Tomcat-5.19

2004-05-24 Thread Zsolt Koppany
Hi,

I would like to define the path of keystoreFile in server.xml with a
relative path but the example below throws a FileNotFoundException. It does
work when I use absolute path (that I don't want to).

As far as I understand the documentation, if I use relative path it must be
relative to catalina.base.

What is my mistake?

I use tomcat-5.19 under Windows-XP

keystoreFile=webapps/srv/keystore
keystorePass=mypass

Zsolt



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



RE: Another source for MD5 encryption

2004-05-24 Thread Tim Penhey
Thanks for all the comments.  I didn't realise that the RealmBase class was just 
wrapping
the java.security.MessageDigest.

I have just added my own simple class that wraps this method and returns a hex string 
to
store in the DB.

Tim

BTW what is the difference between an encryption algorithm and a digesting one?

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 24 May 2004 13:26
 To: Tomcat Users List
 Subject: RE: Another source for MD5 encryption



 Hi,
 MD5 is not an encryption algorithm, by the way.  It's a digesting one
 for us in conjunction with an encryption algorithm.

 Yoav Shapira
 Millennium Research Informatics





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



JSP Compiling - painted in a corner?

2004-05-24 Thread Jason Palmatier
Hello,

I'm trying to precompile JSPs and have run into some
trouble with the mappings.  First off I CANNOT use the
Ant build method as specified in
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/printer/jasper-howto.html#Web%20Application%20Compilation;
due to a lack of certain UNIX commands on the machine
I'm running on (An iSeries server running a QShell
interpreter in case you're interested).  I get
complaints about the which command and I am sure
other commands are missing as well.  So, I am
attempting to compile all the JSPs using jspc
directly.  The archives are full of references to this
but most come down to RTFM, Use this Ant script or
compile to your working directory all of which I've
either already tried, can't use, and don't want to use
in a released product.
   I've successfully created .class files, copied them
to the classes directory and integrated the generated
xml servlet mapping fragment into my web.xml.  I
received requested resource not found when I tried
to access the first compiled page.  I did some more
research, noted that all my classes were part of the
org.apache.jsp package and created an org/apache/jsp
directory under my classes directory and copied all my
classes over to it.  I left the web.xml alone and
restarted tomcat.  I still ran into the requested
resource not found error.  I then tried modifying the
web.xml servlet definitions and mappings to see if
fully qualified class names were a problem.  None of
these attempts worked. 
  So, my question is:  If my class files are part of
the org.apache.jsp package and exist in an
org/apache/jsp directory rooted in my applications
WEB-INF/classes directory shouldn't they be found if
my web.xml defines the servlet and servlet mapping as
below:

servlet
  
servlet-nameorg.apache.jsp.entry_jsp/servlet-name
  
servlet-classorg.apache.jsp.entry_jsp/servlet-class
/servlet

.
.
.

servlet-mapping
  
servlet-nameorg.apache.jsp.entry_jsp/servlet-name
   url-pattern/entry.jsp/url-pattern
/servlet-mapping

I have a feeling the subdirectories my jsps exist in
before they are compiled are the problem, as hinted at
in a few archive posts, but am at a loss as to what to
try next.  Is there a way to get jspc to include these
subdirectories in the package name?  Does it even
matter if they are?  Any help or pointers on this
would be greatly appreciated.

Jason




__
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

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



Re: Use of SNMP to monitor Tomcat

2004-05-24 Thread Robert F. Hall
Try Googling Java SNMP open source.
Which returned, among other hits:
http://netsnmpj.sourceforge.net/
http://edge.mcs.drexel.edu/GICL/people/sevy/snmp/snmp_package.html
Robert
Hut Carspecken wrote:
Good Morning Everyone,
I need to incorporate Tomcat as the presentation layer of a larger system and in doing 
so, I want
to monitor it using SNMP.  I understand that Tomcat can incorporate JMX to monitor 
some of its
functions; however, my project calls for the use of SNMP.
Has anyone monitored Tomcat with SNMP or have any knowlege how to do so?
Thanks!
Hut
-
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: This is a test message

2004-05-24 Thread Mark Thomas
I have just checked the status page:
http://www.spamcop.net/w3m?action=blcheckip=209.237.227.199 
and everything looks good apart from one 3 hour period in the last 14 days. I
have been receiving mail consistently from both the user and dev list. Looks
like you might be seeing some other (possibly unrelated) problem.

Mark

 -Original Message-
 From: Alex [mailto:[EMAIL PROTECTED] 
 Sent: Monday, May 24, 2004 5:12 PM
 To: Tomcat Users List
 Subject: Re: This is a test message
 
 
 I've been getting very or little or nothing from the list and 
 well, I know
 why.  Should get it off the rbl's
 
 550 Service unavailable; Client host [209.237.227.199]
 blocked using bl.spamcop.net; Blocked - see 
 http://www.spamcop.net/bl.shtml?209.237.227.199
 
 On Mon, 24 May 2004, Viktor Matic wrote:
 
  Date: Mon, 24 May 2004 11:30:01 +0200
  From: Viktor Matic [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: This is a test message
 
  Apologies to everyone this is a test message. I'am trying 
 to send replay
  to list whole morning but I do not get back copy of my message.
 
 
 -
 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: Urgent: Issue with Tomcat Clustering

2004-05-24 Thread Filip Hanik - Dev
try without mod_jk with another load balancer first,
pen (http://siag.nu/pen) or balance (http://balance.sourceforge.net)


- Original Message - 
From: Vikas Gupta [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 12:07 PM
Subject: Urgent: Issue with Tomcat Clustering



Hi All,
I am trying to do tomcat clustering using tomcat 5.0.19 using mod_jk
connector for Apache 2.
I am stuck up in a problem for quite some time.
I am able to run the sample application in my setup and the clustering and
session replication works fine.

But when I run my application in the cluster it bombs. The test scenarios is
like this,
We hvve tried using poolable and synchronous mode.

The session object in is not getting replicated and is
request.getSession(false) gives null value. The same scenario is working
fine on the sample application. 
I think Cluster setup is fine because sample application

Can you please tell us the reason of exception 

Is there any adverse impact of the following on session replication in
clustering scenario: 

1. usage of encodeURL (URL rewriting)
2. usage of large objects in session
3. usage of cookies

I have attached the server.xml, web.xml and workers.properties.

Please advise
Regards
Vikas

May 23, 2004 8:51:11 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:580)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:518)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:638)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:688)
at java.lang.Thread.run(Thread.java:536)
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:55:53 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberD










-
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: java.lang.ClassCircularityError

2004-05-24 Thread Filip Hanik - Dev
glad you got it working!!
the class loaders were referencing each other in a cirular way.

Filip

- Original Message - 
From: Viktor Matic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 24, 2004 1:48 AM
Subject: Re: java.lang.ClassCircularityError


 This is probably related to the subject configuration. Can you create
a 
 small test case that reproduce the problem? I will be able to better
see 
 what's happening.

I have tried to compose a simple test which simulates the real thing,
but I did not succeed to reproduce the error. For simplicity reason of
the test code all my classes, except the servlet class which was in the
webapps, are placed in the {$CATALINA_HOME}/shared/classes. All code in 
the shared/classes has AllPermissions according to the catalina.policy. 

When I was sure that everything works fine with the tests I tried same
approach on the original code (as Filip Hanik already suggested but not
server/classes because ClassNotFound error). I have moved all code
concerning security  (implementations of Policy, Permissions, User
groups, Log. Module, etc.) to the {$CATALINA_HOME}/shared/classes and
gave AllPermissions to this code source through my security system. In
webapps I have left only servlet class that use security. Now it works
perfectly. Maybe problem is in the class loader (/shared/classes is
served with different class loader than /webapps ?!)


Best regards

Viktor




-
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: Another source for MD5 encryption

2004-05-24 Thread Shapira, Yoav

Hi,

BTW what is the difference between an encryption algorithm and a
digesting
one?

See http://www.webopedia.com/TERM/M/message_digest.html for a good
definition of the relationship.

Specifically for MD5:

MD5 was developed by Professor Ronald L. Rivest of MIT. What it does, to
quote the executive summary of rfc1321, is:
[The MD5 algorithm] takes as input a message of arbitrary length and
produces as output a 128-bit fingerprint or message digest of the
input. It is conjectured that it is computationally infeasible to
produce two messages having the same message digest, or to produce any
message having a given prespecified target message digest. The MD5
algorithm is intended for digital signature applications, where a large
file must be compressed in a secure manner before being encrypted with
a private (secret) key under a public-key cryptosystem such as RSA.
In essence, MD5 is a way to verify data integrity, and is much more
reliable than checksum and many other commonly used methods.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Fw: Urgent: Issue with Tomcat Clustering

2004-05-24 Thread Filip Hanik - Dev

try without mod_jk with another load balancer first,
pen (http://siag.nu/pen) or balance (http://balance.sourceforge.net)


- Original Message - 
From: Vikas Gupta [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 12:07 PM
Subject: Urgent: Issue with Tomcat Clustering



Hi All,
I am trying to do tomcat clustering using tomcat 5.0.19 using mod_jk
connector for Apache 2.
I am stuck up in a problem for quite some time.
I am able to run the sample application in my setup and the clustering and
session replication works fine.

But when I run my application in the cluster it bombs. The test scenarios is
like this,
We hvve tried using poolable and synchronous mode.

The session object in is not getting replicated and is
request.getSession(false) gives null value. The same scenario is working
fine on the sample application. 
I think Cluster setup is fine because sample application

Can you please tell us the reason of exception 

Is there any adverse impact of the following on session replication in
clustering scenario: 

1. usage of encodeURL (URL rewriting)
2. usage of large objects in session
3. usage of cookies

I have attached the server.xml, web.xml and workers.properties.

Please advise
Regards
Vikas

May 23, 2004 8:51:11 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:580)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:518)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:638)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:688)
at java.lang.Thread.run(Thread.java:536)
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:51:11 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
May 23, 2004 8:55:53 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberD










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



ssl, verisign, no common encryption algorithm

2004-05-24 Thread Michael E. Allen
Greetings!
I am running tomcat 4.1.27 and having trouble importing a global id 
certificate from Verisign.  My server works fine with a self-generated 
certificate, but as soon as I replace my self signed certificate with 
the one from Verisign, I get a message from firefox that it is unable to 
communicate with the server securely because they have no common 
encryption algorithm.  Tomcat 5 exhibits similar behavior.

I have carefully followed the instructions at both:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
-and-
http://www.verisign.com/support/csr/tomcat/v00.html
Any ideas?
Thanks,
Michael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Use of SNMP to monitor Tomcat

2004-05-24 Thread disposablehero3000-jakarta
Hello Hut Carspecken,

Another thing you can try is to monitor Tomcat by
using  a custom plugin with OpenNMS
(http://www.opennms.org); OpenNMS can then talk with
the JMX part of Tomcat in order to poll the health
status (without SNMP).

There is an article at the IBM site about how to do
this:

http://www-106.ibm.com/developerworks/java/library/j-jmx3/

You could also write a small SNMP agent that could
talk also JMX directly with Jakarta. The agent will
talk back SNMP with your NMS (you will have to write a
bridge).

Another thing you could try is to write a Servlet that
also can talk JMX with Tomcat; This servlet could send
SNMP traps to your NMS in case of problems. The NMS
(OpenNMS for example) will then redirect this trap to
a ppropriate group.

I really like this OpenSource SNMP Java stack:

http://snmp.westhawk.co.uk/

Hope this helps.

JV.

--- Robert F. Hall [EMAIL PROTECTED] wrote:
 Try Googling Java SNMP open source.
 Which returned, among other hits:
 
 http://netsnmpj.sourceforge.net/
 

http://edge.mcs.drexel.edu/GICL/people/sevy/snmp/snmp_package.html
 
 Robert
 
 Hut Carspecken wrote:
 
 Good Morning Everyone,
 
 I need to incorporate Tomcat as the presentation
 layer of a larger system and in doing so, I want
 to monitor it using SNMP.  I understand that Tomcat
 can incorporate JMX to monitor some of its
 functions; however, my project calls for the use of
 SNMP.
 
 Has anyone monitored Tomcat with SNMP or have any
 knowlege how to do so?
 
 Thanks!
 
 Hut
 

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


=
José Vicente Nuñez Zuleta
RHCE#807302513906520 , SJCDJ, SJCPJ, SJCWCD
Linux counter user #57417 - http://counter.li.org/
CVEBROWSER - http://cvebrowser.sourceforge.net/
JavaVen - http://groups.yahoo.com/group/JavaVen/

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



Re: Tomcat security and virtual hosts

2004-05-24 Thread wsedio
On 21-05-2004 11:33, wsedio wrote:
Hi all,
I am running Tomcat 5.0.24 on Red Hat Linux Enterprise 3 with Apache web 
server 2 and mod_jk 1.2.

I have a few Apache/Tomcat virtual hosts: each host has its own document 
root and webapps.

I would like to make sure that each host is not allowed to access files 
outside its document root and webapps.

How do I configure Tomcat to secure that?
Any info or link to documentation/examples would be appreciated ...
Any help?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Importing chain certificate with keytool causes keytool error: java.lang.Exception: Input not an X.509 certificate

2004-05-24 Thread Ben Monnahan
I'm new to all of this, so I may be making an obvious mistake, but I've
looked all over and can't seem to find a solution.

I'm following the instructions for installing a certificate from a CA
found here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

Everything went fine until the step where you import the chain cert.
I entered this command:
keytool -import -v -alias root -keystore .keystore -trustcacerts \
-file amon-chain.cer

And got this error:
keytool error: java.lang.Exception: Input not an X.509 certificate

I copied both certs (chain and server) from a web browser into separate
text files and saved them.  They are base64 encoded and the chain is in
pcks7 format.  I made sure to get the -BEGIN CERTIFICATE- and
-END CERTIFICATE-.  If I used keytool -printcert it prints it out
OK, so I'm assuming that it is of the proper format.

java version: Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2-b28)

tomcat version: 4.1.24-LE-jdk14


Does anyone have any ideas what I'm doing wrong?

(Please CC me as I get the digest version and would prefer to get these
separate.)

Thanks
Ben

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



Configuring mod_jk2/jk2 Via The JMX Console

2004-05-24 Thread Wilson Jimmy - jiwils
The mod_jk2/jk2 web page indicates that a JMX console can be utilized for
runtime configuration changes:

On tomcat side, you must enable the JMX proxy. This is done by setting
modjk.webServerHost and modjk.webServerPort in jk2.properties to point
to the web server port that contains /jkstatus. ( recent versions of jk and
mod_jk are required ). You can also add mx4j-tools.jar to server/lib and set
mx.enable=true in jk2.properties to enable the console, or use your
favorite JMX console or tools. You could also select http and/or jrmp
protocol, with mx.httpPort, mx.httpHost, mxjrmpPort and mx.jrmpPort.

I have completed the configuration changes mentioned above, but I can not
find the mentioned JMX console.  Is it a web console?  Is it a GUI console?
Is something used from a shell?  If it is a web console, what is the context
for the URL?

Furthermore, what are the interfaces of the JMX bean proxies that are
mentioned?  Are they standard, dynamic/model, or open mbeans?  Is
there a good page out there that details what the interfaces of the
mentioned MBean proxies look like?

Does anyone configure mod_jk2/jk2 in this manner?  If so, can you show me a
sample client?

Any pointers/help would be greatly appreciated!

Jimmy
-- 
James Jimmy Wilson
Software Developer, Acxiom Corporation



**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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



Session Unbound

2004-05-24 Thread Ravindra Gupta
 I have 2 problems

1) I am keeping connection into session . My requirement is that i have to release  
this  connection once Session is inactivated/expired .I have given an
implementation where the unbound method of class implementing 
HttpSessionBindingListener  is getting called , but it is called after the session is 
made invalid and since session is already invalidated i can't access Connection Object 
kept into session .

My understanding was that Once a Session is expired , unbound methos is called and 
than only session becomes inactive . This is not happening in Tomcat while in weblogic 
its working correctly ?Any suggestions how to ensure that unbound method gets called 
before Session is invalidated.


2) When i take connection from DataSource , sometimes i am getting following excepting 
when trying to set AutoCommit on DB2 environment

 com.ibm.db2.jcc.c.SqlException: invalid operation: connection closed
 at com.ibm.db2.jcc.c.o.bk(o.java:2708)
 at com.ibm.db2.jcc.c.o.setAutoCommit(o.java:681)

Any suggestions ??


thanks,
ravi




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



Bug in Tomcat 5 realm example (j_security_check, again)

2004-05-24 Thread Barnet Wagman
This really concerns using j_security_check.  (I know there have been
many posts on this subject but I haven't seen the answer I need and I
haven't found much in the way of documentation on j_security_check).
Tomcat 5 comes with a simple example of  how to use j_security_check for
form based login (
http://localhost:8080/jsp-examples/security/protected/, as referred to
in the Realm Configuration HOW-TO);
The example fails to redirect correctly after a failed login.
That is, if the user enter a valid username/password combination on the
first try, everything is fine.
If not, the user gets the error page, which has link back to the login
page. If she then enters the correct username/password, she is
redirected to the /login page/.  It appears that the user now is logged
in.  I.e. she can now access protected pages.
In other words, the login page - error page - login page redirection
is 'losing' the url of the originally requested page.  I suspect that a
simple modification to login.jsp and error.jsp would fix this, but that
requires knowing where j_security_check put the url of the originally
requested page.  I haven't founded any documentation on that.
If you know, or have any other ideas on fixing this, please let me know.
Thanks,
bw
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Importing chain certificate with keytool causes keytool error: java.lang.Exception: Input not an X.509 certificate

2004-05-24 Thread Hassan Schroeder
Ben Monnahan wrote:
I'm following the instructions for installing a certificate from a CA
found here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
Everything went fine until the step where you import the chain cert.
I entered this command:
keytool -import -v -alias root -keystore .keystore -trustcacerts \
-file amon-chain.cer
I just installed my first real cert (from Thawte) on my Tomcat
4.1.29 installation, and feeling uncertainty due in part to having
accidentally stomped on my keystore between request generation and
receipt :-) asked Thawte why their install instructions differed
from the Tomcat doc. As in, theirs (Thawte's) said you don't need
the chain cert at all.
And apparently they're right :-)
I just imported the PKCS7-format cert they gave me, including the
-trustcacerts flag, and tickety-boo and Bob's y'r uncle.
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: URGENT!! Relocation error problem

2004-05-24 Thread Graham Bleach
On Fri, May 21, 2004 at 11:16:02AM -0400, Wehner, Terry wrote:
 I am getting the following error when trying to start apache 1.3.27
 
 Syntax error on line 4 of
 /opt/applocal/imt/webi/jakarta-tomcat-4.1.29/conf/auto/mod_jk.conf:
 Cannot load /opt/applocal/imt/webi/httpd_1.3.27/modules/mod_jk.so into
 server: ld.so.1: /opt/applocal/imt/webi/httpd_1.3.27/bin/httpd: fatal:
 relocation error: file
 /opt/applocal/imt/webi/httpd_1.3.27/modules/mod_jk.so: symbol
 ap_ctx_get: referenced symbol not found
 ./apachectl start: httpd could not be started

How was this module compiled?

If it was compiled against the apache 2.0 source it will not work with
apache 1.3. 

 I am also using Jakarta Tomcat 4.1.29 which trys to load the mod_jk.so
 library that I have place in my Apache modules directory.

 The files and paths are being found ok, however the referenced symbol
 seems to be causing the error?
 
 Also if I comment out the part about loading the mod_jk.so (by not
 including the mod_jk.conf file, all other modules load just fine?
 
 I have looked through the old archives and tried a number of different
 solutions:
 
 Changing my LD_LIBRARY_PATH

To anything in particular?

 ./configureing with SHARED_CORE
 
 Etc.

Please don't put URGENT in the title. It may be urgent to you, but it
probably isn't urgent to anyone else on the list.

G
-- 
If you have any trouble sounding condescending, find a Unix user to show you 
how it's done.
-- Scott Adams

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



RE: Bug in Tomcat 5 realm example (j_security_check, again)

2004-05-24 Thread Summers, Bert W.
From other comments on the list I added this to the top of my login.jsp

if (session.isNew())
{
  String referer = request.getHeader(Referer);
  if (referer == null)
  {
response.sendRedirect(index.jsp);
  }
  else
  {
response.sendRedirect(referer);
  }
  return;
}

Then I had a problem that people would login, view some stuff and the go to
another web site.
Of course they book marked the login page (I know they should not, but they
do).
After visiting other web pages they hit the bookmark back to the login page.
This caused the first if to fail, so I added this part.  (I put a user
object in the session)

// now check remote user and session user
User u = (User)session.getAttribute(USER);
String remoteUser = request.getRemoteUser();
if(remoteUser != null  u != null)
{
  if(remoteUser.equals(u.getUsername()))
  {
response.sendRedirect(index.jsp);
return;
  }
  else
  {
// seems the user does not match
session.invalidate();
response.sendRedirect(index.jsp);
return;
  }
}

For my site my failed page is also login.jsp.  I created my own custom login
which does some checks and uses attributes in the request to give feedback
to the users (bad password, expired account, etc).

-Original Message-
From: Barnet Wagman [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 24, 2004 2:24 PM
To: Tomcat Users List
Subject: Bug in Tomcat 5 realm example (j_security_check, again)


This really concerns using j_security_check.  (I know there have been many
posts on this subject but I haven't seen the answer I need and I haven't
found much in the way of documentation on j_security_check).

Tomcat 5 comes with a simple example of  how to use j_security_check for
form based login ( http://localhost:8080/jsp-examples/security/protected/,
as referred to in the Realm Configuration HOW-TO);

The example fails to redirect correctly after a failed login.

That is, if the user enter a valid username/password combination on the
first try, everything is fine.

If not, the user gets the error page, which has link back to the login page.
If she then enters the correct username/password, she is redirected to the
/login page/.  It appears that the user now is logged in.  I.e. she can now
access protected pages.

In other words, the login page - error page - login page redirection is
'losing' the url of the originally requested page.  I suspect that a simple
modification to login.jsp and error.jsp would fix this, but that requires
knowing where j_security_check put the url of the originally requested page.
I haven't founded any documentation on that.

If you know, or have any other ideas on fixing this, please let me know.

Thanks,

bw


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



not getting debugging info out

2004-05-24 Thread Asya

Tomcat 5.0.16 on RedHat 9

I've changed the debug level on the HTTP Coyote connector in the 
server.xml config file to 9, but I'm not seeing any additional 
debugging messages generated by the connector in the tomcat log 
files.  I've turned up the debugging settings on all of the components 
via the server.xml file and via the admin application, and the only 
additional debugging messages I get are some unpacking messages from 
the WAR manager.

Any suggestions, ideas?
-- 
Asya Kamsky

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



tomcat hanging during SSL handshake

2004-05-24 Thread Rudy Wade
We're running tomcat 5.0.16 with Java 1.4.1.
I'm seeing this problem after things have been running fine for a while and 
the load
starts increasing.

What happens is the HTTP Coyote connector does not gracefully recover
from an OutOfMemory exception and it gets into a situation where it hangs in 
the
middle of the SSL-handshake.

Is there a known bug that causes this to happen?
We're thinking about upgrading to 5.0.24, but it'd be nice to know that this
will solve this problem rather than just hope so.
RW
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


best and simple way of login mechanism

2004-05-24 Thread Arora, Avinash
Hi,
   I want to provide a login page for my web applicatioin. I used the
memory realm, by making changes in the server.xml. But it started giving
me Connection errors, and I was not able to see the web pages. Then I
commented the Memory realms tag and then I was able to see the web pages
correctly. I tried to use the JDBC realms, but it also gave me same
problems. 
Can some body please look at the sample server.xml that I use for JDBC
realm? I am using the realms for ROOT context only.
What is the best way to provide the login page on tomcat.

-Server.xml-
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer
value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that
share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are
received
 and responses are returned.  Each Connector passes requests on
to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second
Connector
 entry.  SSL support requires the following steps (see the SSL
Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR
files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
(Unix)
   with a password value of changeit for both the certificate
and
   the keystore itself.

 By default, DNS lookups are enabled when a web application
calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true
/
!-- Note : To disable connection timeouts, set connectionTimeout
value
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector 

Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
hello all,

Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.

I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
  /Connector

innovest




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
hello all,

Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.

I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
  /Connector

innovest




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



RE: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Denise Mangano
I am not sure if I have an answer but hopefully this will help. I posted
a similar problem back in April - I have the same exact environment.
The one thing that I have noticed is from the same code in my server.xml
my maxProcessors=75.  I have noticed that when Tomcat does hang I try
to shut down Tomcat but the process does not die so I actually have to
kill it.  At that point I've checked my logs and see:

Apr 4, 2004 2:19:43 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (75) are currently busy, waiting. Increase
maxThreads (75) or check the servlet status

After posting to the list it was suggested to increase the number of
servers for the connector to match what Apache allows.  Unfortunately I
got so wrapped up in my code that I never made this change.  Just today
I have increased the number of maxProcessors in Tomcat to 150 which is
equal to the number of MaxClients in Apache - I am hoping this change
helps.

Ken - when you shutdown Tomcat do you run into the same problem of
having to actually kill the process?  Also afterwards do you see a
similar message in your catalina.out?  Are the number of MaxClients in
Apache the same as the number of maxProcessors you have in your
server.xml?

So then the next question that comes to mind if this setting does the
trick how many processors/clients are too many?  For example what if
changing Tomcat to match Apache settings causes the application to still
max out but at the new number of maxProcessors.  I would imagine the
next step would be to increase both but what number is too high?  


Denise Mangano 
Director of Technical Services
Complus Data Innovations, Inc. 
914-747-1200 


-Original Message-
From: Innovest Ken [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 24, 2004 11:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.30 Hung!!! With High Traffic

hello all,

Currently, I have Tomcat 4.1.30 running on Linux Redhat 9, using jdk
1.4.2_03. It is now running live and every day it will hang at least
once. We are unable to see any error message in the log file. The site
is having a hit of 20 request per second with most of the requests need
the database connection.

I did a thread dump before the tomcat hangs, but it is too big to be
displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/
  /Connector

innovest




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Tomcat Hung!!! Help needed

2004-05-24 Thread Innovest Ken
hello all,

Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.

I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
  /Connector

innovest





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Parsons Technical Services
What does top show?
Is the cpu loaded?
Is the memory maxed?
Is the database on the same machine?

When you say hang it can have many meanings. When it hangs does the
process die, or does it simply stop responding? Is it a true stop responding
or just a very long delay?

With that level of traffic it may be that you are simply over running the
machine and it can't respond.

What is the debug level set to?

Please only post once. It could cause some list members not to respond.
Reposting the next day isn't to bad but every few minutes will tick people
off.

Doug
www.parsonstechnical.com


- Original Message - 
From: Innovest Ken [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 24, 2004 11:17 PM
Subject: Tomcat 4.1.30 Hung!!! With High Traffic


 hello all,

 Currently, I have Tomcat 4.1.30 running on Linux
 Redhat 9, using jdk 1.4.2_03. It is now running live
 and every day it will hang at least once. We are
 unable to see any error message in the log file. The
 site is having a hit of 20 request per second with
 most of the requests need the database connection.

 I did a thread dump before the tomcat hangs, but it is
 too big to be displayed here.

 I can post any more info upon request. Any help???
 Thanks

 Here is part of the server.xml:

 Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
 acceptCount=150 bufferSize=2048 compression=off
 connectionLinger=-1 connectionTimeout=2
 connectionUploadTimeout=30 debug=0
 disableUploadTimeout=true enableLookups=false
 maxKeepAliveRequests=100 maxProcessors=150
 minProcessors=50 port=80
 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
 proxyPort=0 redirectPort=8443 scheme=http
 secure=false serverSocketTimeout=0
 tcpNoDelay=true useURIValidationHack=false
   Factory
 className=org.apache.catalina.net.DefaultServerSocketFactory
 /
   /Connector

 innovest




 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/

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



Error using taglibs - unable to find setter

2004-05-24 Thread Ravi Mutyala
Hi,
I created a tag which extends from the html:text tag.
I'm using tomcat 4.1.30.
when I use this tag, I get the following error. 
-
org.apache.jasper.JasperException:
/win_002_PMT_Manage_Cstmr_Prtfl.jsp(70,26) Unable to find setter
method for attribute: dType
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:186)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:1753)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:1356)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1179)
	at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)


The line in the jsp uses the tag that i created. the tag has the
setter method for  dType.
The same taglib is working in the application that is presently
deployed in weblogic. We are trying to migrate the same to
tomcat  and I am getting the above error.
Any clues?
Thanks in advance
/
Ravi.
tag code:
tag code.

package com.mycompany.presentation.taglib.html;
import org.apache.struts.taglib.html.TextTag;
import java.lang.reflect.Method;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyContent;
import org.apache.struts.util.ResponseUtils;
import org.apache.struts.Globals;
import java.util.Iterator;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.util.RequestUtils;
import com.mycompany.presentation.constants.*;
import FormatConverter.*;
import javax.servlet.http.HttpSession;
import com.mycompany.utility.domainvalidations.*;
import org.apache.taglibs.display.ColumnTag;
import java.util.*;
import javax.servlet.http.HttpServletRequest;
public class wmText
   extends org.apache.struts.taglib.html.TextTag implements
Cloneable {
 protected String dType;
 protected String functionCall;
 protected String mandatory;
 protected String name = Globals.ERROR_KEY; 
 protected Iterator iter;
 
 protected String mode;
  
DisplaySingleton ds  = DisplaySingleton.getInstance();
	String dateInputFormat = ds.getDateInputFormat();
	char separator = dateInputFormat.charAt(2);
 String decimalSeparator = ds.getDecimalSeparator();
 String thousandSeparator = ds.getThousandsSeparator();
 
 Class clz;

 public wmText() {
   super();
 }
 public String getDType() {
   return (this.dType);
 }
 public void setDType(String dType) {
   this.dType = dType;
 }
 public void setMandatory(String mandatory)
 {
   this.mandatory = mandatory;
 }
 public String getMandatory()
 {
   return (this.mandatory);
 }
 public String getMaxSize(String dType) {
   String getSize = getSize;
   Integer intObj = null;
   dType = com.mycompany.domainvalidations. + dType;
   try {  
 clz = Class.forName(dType);
 Method method = clz.getMethod(getSize, null); 
 intObj = (Integer) method.invoke(null, null);
   } catch (Exception e) {
 e.printStackTrace();
   }
   return intObj.toString();
 }

 public String getFunctionCall() {
   return (this.functionCall);
 }
 public void setFunctionCall(String functionCall) {
   this.functionCall = functionCall;
 }
 public String resolveFunctionCall(String dType) {
   String fCall = ;
   int decPlaces = 0;	
   if (dType.equals(D_Price)) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(1);
 fCall = this.value=
validateNumberForStrutsElement(this.value,','+thousandSeparator+'+decimalSeparator+',
+ decPlaces + ,true +
 );
   }

   if (dType.equals(D_Forex)) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(2);
 fCall = this.value=
validateNumberForStrutsElement(this.value,','+thousandSeparator+'+decimalSeparator+',
+ decPlaces + ,true +
 );
   }

   if (dType.equals(D_Quantity)) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(3);
 fCall = this.value=
validateNumberForStrutsElement(this.value,','+thousandSeparator+'+decimalSeparator+',
+ decPlaces + ,true +
 );
   }

   if (dType.equals(D_Percentage)) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(4);
 fCall = this.value=
validateNumberForStrutsElement(this.value,','+thousandSeparator+'+decimalSeparator+',
+ decPlaces + ,true +
 );
   }

   if (dType.equals(D_Value)) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(5);
 fCall = this.value=
validateNumberForStrutsElement(this.value,','+thousandSeparator+'+decimalSeparator+',
+ decPlaces + ,true +
 );
   }
   
   if (dType.equals(d_date)) {  
 fCall = tabDate(this,' +dateInputFormat+',' +separator
+');
   }

   return fCall;
 }
 public int doStartTag() 

RE: session data in Tomcat 5

2004-05-24 Thread Shane Linley
I am a ZoneAlarm Pro user and when I first ran Tomcat on my desktop (with
ZapPro) it sabotaged the cookies that TC was using, and from memory TC
started to encode the session id in the URL. I would recommend looking at
the privacy settings in zonelabs to see what it is doing with user
identifiable information and particularly cookies.

I havn't used Integrity before but it does have the forever troublesome
Privacy and Productivity Features found in ZapPro. Start with downgrading
the level of security for cookies (or set up your local PC to be trusted
when it comes to cookies and things might just get better for you.

Regards,
Shane.

-Original Message-
From: M.Hockings [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 May 2004 11:40 AM
To: Tomcat Users List
Subject: Re: session data in Tomcat 5


Ben Souther wrote:

Ah Ben, I don't know if you have kids or not.  But y'know how a kid can
kinda look at the floor and shuffle their feet when caught doing
something stupid.  Well, keep that in mind as you read what I figured
out...



Believe me, you've nothing to feel stupid about.  We've all been there.

One thing to bear in mind, and I've had to tell myself this at least a
dozen
times over the last year, is that there are thousands of people developing
commercial applications with Tomcat right now.   If something fundamental,
like session handling, were ever to stop working, there would be hundreds
of
posts to this list, all of them complaining about the same thing.  Within a
day, there would be a fix for it.  Over the next few days, you would see
hundreds more complaining about the same bug accompanied by hundreds of
posts
from the likes of Yoav Shapira, Tim Funk, Philip Hanik, (and several
others)
answering the same question over and over again, telling people exactly
what
version to download to fix it.  If you don't see that scenerio on this
list,
keep looking at your own setup.

I'm glad it's working for you.

-Ben

PS: Did the put the Zone Labs product on the server, or just on your
desktop?

Thanks Ben.  I kept telling myself that it should work just fine,
particularly since Tomcat has been one of those things that for me just
works with little or no tinkering (I like that kinda thing).

The Zone Labs thing is installed on the desktop, when I open it's config
window it's called Zone Labs Integrity Desktop.  When I click on the
help/about link it sends me here
http://www.zonelabs.com/store/content/company/corpsales/zapidOverview.jsp

Mike

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



Tomcat virtualhost bug?

2004-05-24 Thread Trond Hersløv
Hi, I need some help here.
 
Running: Apache 2.0.49, Tomcat 5.0.24 and jk2 2.0.4. Tomcat and the
webserver running on separate machines.
 
The webserver is set up with to virtualhosts. 
test1.athome.no
test2.athome.no
workers2.properties is set up so all *.jsp request are sent to Tomcat.
 
[channel.socket:172.20.201.92:8009]
 
[uri:/*]
 
On Tomcat I have to webapps: app1 and app2.
app1 should be for test1.athome.no
app2 for test2.athome.no
 
I thought everything was fine, BUT then I realized that I could access app2
like this: http://test1.athome.no/test2 http://test1.athome.no/test2 .
What am I doing wrong?
 
Host name=test1.athome.no . appBasewebapps.
.
.
Context path=  docBase=test1 .
/Host
 
The virtual host for test2 is set up in the same way. How can I prevent a
virtual host from having access to all the other webapplications?
 
I appreciate any help I can get.
 
Trond
___
it's 25.may and Norway is getting warmer
 
 
 
 


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**



Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
hello all,

Currently, I have Tomcat 4.1.30 running on Linux
Redhat 9, using jdk 1.4.2_03. It is now running live
and every day it will hang at least once. We are
unable to see any error message in the log file. The
site is having a hit of 20 request per second with
most of the requests need the database connection.

I did a thread dump before the tomcat hangs, but it is
too big to be displayed here.

I can post any more info upon request. Any help???
Thanks

Here is part of the server.xml:

Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=150 bufferSize=2048 compression=off
connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0
disableUploadTimeout=true enableLookups=false
maxKeepAliveRequests=100 maxProcessors=150
minProcessors=50 port=80
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0
tcpNoDelay=true useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory
/ 
  /Connector

innovest





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
Would like to apologise for resending numerous times,
it is because i keep getting the following message
from spamcop:

Unable to deliver message to the following address(es)

[EMAIL PROTECTED]

Remote host said: 554 delivery error: This user
doesn't have an
account - so get bent!

--- Innovest Ken [EMAIL PROTECTED] wrote:
 hello all,
 
 Currently, I have Tomcat 4.1.30 running on Linux
 Redhat 9, using jdk 1.4.2_03. It is now running live
 and every day it will hang at least once. We are
 unable to see any error message in the log file. The
 site is having a hit of 20 request per second with
 most of the requests need the database connection.
 
 I did a thread dump before the tomcat hangs, but it
 is
 too big to be displayed here.
 
 I can post any more info upon request. Any help???
 Thanks
 
 Here is part of the server.xml:
 
 Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
 acceptCount=150 bufferSize=2048
 compression=off
 connectionLinger=-1 connectionTimeout=2
 connectionUploadTimeout=30 debug=0
 disableUploadTimeout=true enableLookups=false
 maxKeepAliveRequests=100 maxProcessors=150
 minProcessors=50 port=80

protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
 proxyPort=0 redirectPort=8443 scheme=http
 secure=false serverSocketTimeout=0
 tcpNoDelay=true useURIValidationHack=false
   Factory

className=org.apache.catalina.net.DefaultServerSocketFactory
 / 
   /Connector
 
 innovest
 
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 

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





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
hi,

Sorry for reposting, cause i keep getting message not
delivered...

For your questions, top shows cpu around 40%, actually
we have trace our cpu usage for the week, it peak at
50% and average 30%. For memory, it peak at 60%,
average 25%. 

No, the database is in another server thru a firewall.
Initally, we suspect the connection not closed
properly, but after we enable the 'removeAbandoned'
and 'logAbandoned' and check all connections are
closed, tomcat still hangs.

Debug level set to '0'.

innovest

--- Parsons Technical Services
[EMAIL PROTECTED] wrote:
 What does top show?
 Is the cpu loaded?
 Is the memory maxed?
 Is the database on the same machine?
 
 When you say hang it can have many meanings. When it
 hangs does the
 process die, or does it simply stop responding? Is
 it a true stop responding
 or just a very long delay?
 
 With that level of traffic it may be that you are
 simply over running the
 machine and it can't respond.
 
 What is the debug level set to?
 
 Please only post once. It could cause some list
 members not to respond.
 Reposting the next day isn't to bad but every few
 minutes will tick people
 off.
 
 Doug
 www.parsonstechnical.com
 
 
 - Original Message - 
 From: Innovest Ken [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, May 24, 2004 11:17 PM
 Subject: Tomcat 4.1.30 Hung!!! With High Traffic
 
 
  hello all,
 
  Currently, I have Tomcat 4.1.30 running on Linux
  Redhat 9, using jdk 1.4.2_03. It is now running
 live
  and every day it will hang at least once. We are
  unable to see any error message in the log file.
 The
  site is having a hit of 20 request per second with
  most of the requests need the database connection.
 
  I did a thread dump before the tomcat hangs, but
 it is
  too big to be displayed here.
 
  I can post any more info upon request. Any help???
  Thanks
 
  Here is part of the server.xml:
 
  Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
  acceptCount=150 bufferSize=2048
 compression=off
  connectionLinger=-1 connectionTimeout=2
  connectionUploadTimeout=30 debug=0
  disableUploadTimeout=true enableLookups=false
  maxKeepAliveRequests=100 maxProcessors=150
  minProcessors=50 port=80
 

protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
  proxyPort=0 redirectPort=8443 scheme=http
  secure=false serverSocketTimeout=0
  tcpNoDelay=true useURIValidationHack=false
Factory
 

className=org.apache.catalina.net.DefaultServerSocketFactory
  /
/Connector
 
  innovest
 
 
 
 
  __
  Do you Yahoo!?
  Friends.  Fun.  Try the all-new Yahoo! Messenger.
  http://messenger.yahoo.com/
 
 

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





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



RE: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-24 Thread Innovest Ken
I only use tomcat, without using Apache... Because my
site are mainly jsp.

Yes, I have a script to kill the tomcat server before
starting again. And yes, I saw the 'All threads(150)
are busy' error message.

Innovest
--- Denise Mangano [EMAIL PROTECTED] wrote:
 I am not sure if I have an answer but hopefully this
 will help. I posted
 a similar problem back in April - I have the same
 exact environment.
 The one thing that I have noticed is from the same
 code in my server.xml
 my maxProcessors=75.  I have noticed that when
 Tomcat does hang I try
 to shut down Tomcat but the process does not die so
 I actually have to
 kill it.  At that point I've checked my logs and
 see:
 
 Apr 4, 2004 2:19:43 PM
 org.apache.tomcat.util.threads.ThreadPool logFull
 SEVERE: All threads (75) are currently busy,
 waiting. Increase
 maxThreads (75) or check the servlet status
 
 After posting to the list it was suggested to
 increase the number of
 servers for the connector to match what Apache
 allows.  Unfortunately I
 got so wrapped up in my code that I never made this
 change.  Just today
 I have increased the number of maxProcessors in
 Tomcat to 150 which is
 equal to the number of MaxClients in Apache - I am
 hoping this change
 helps.
 
 Ken - when you shutdown Tomcat do you run into the
 same problem of
 having to actually kill the process?  Also
 afterwards do you see a
 similar message in your catalina.out?  Are the
 number of MaxClients in
 Apache the same as the number of maxProcessors you
 have in your
 server.xml?
 
 So then the next question that comes to mind if this
 setting does the
 trick how many processors/clients are too many?  For
 example what if
 changing Tomcat to match Apache settings causes the
 application to still
 max out but at the new number of maxProcessors.  I
 would imagine the
 next step would be to increase both but what number
 is too high?  
 
 
 Denise Mangano 
 Director of Technical Services
 Complus Data Innovations, Inc. 
 914-747-1200 
 
 
 -Original Message-
 From: Innovest Ken [mailto:[EMAIL PROTECTED] 
 Sent: Monday, May 24, 2004 11:08 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.1.30 Hung!!! With High Traffic
 
 hello all,
 
 Currently, I have Tomcat 4.1.30 running on Linux
 Redhat 9, using jdk
 1.4.2_03. It is now running live and every day it
 will hang at least
 once. We are unable to see any error message in the
 log file. The site
 is having a hit of 20 request per second with most
 of the requests need
 the database connection.
 
 I did a thread dump before the tomcat hangs, but it
 is too big to be
 displayed here.
 
 I can post any more info upon request. Any help???
 Thanks
 
 Here is part of the server.xml:
 
 Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
 acceptCount=150 bufferSize=2048
 compression=off
 connectionLinger=-1 connectionTimeout=2
 connectionUploadTimeout=30 debug=0
 disableUploadTimeout=true enableLookups=false
 maxKeepAliveRequests=100 maxProcessors=150
 minProcessors=50 port=80

protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
 proxyPort=0 redirectPort=8443 scheme=http
 secure=false serverSocketTimeout=0
 tcpNoDelay=true useURIValidationHack=false
   Factory

className=org.apache.catalina.net.DefaultServerSocketFactory
 /
   /Connector
 
 innovest
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 

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





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Mail Delivery (failure avenarek@freenet.am)

2004-05-24 Thread tomcat-user

This message was verified by the filtering system of our mail
server.

Original message was replaced by this one by the following
reason :

*** A suspicious file (executable code) was found in the message !

Original message had the following attached files :

   (X-FILE ??? ) : message.scr
TYPE : audio/x-wav

   SUSPECT FILES : 1

Original message was sent by

   From : [EMAIL PROTECTED]

If you think this is an error and the message should not
be rejected by the filtering system, you may contact your
system administrator for instructions.

Sincerely,

  freenet-daemon.freenet.am



  j-chkmail - (c) Ecole des Mines de Paris 2002, 2003


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