FOUND VIRUS IN MAIL from tomcat-user@jakarta.apache.org to med-ru@nspoint.net

2004-06-01 Thread virusalert

   V I R U S  A L E R T

  Our viruschecker found a VIRUS in your email to [EMAIL PROTECTED].
   We stopped delivery of this email!

Now it is on you to check your system for viruses   

In file:
/usr/local/mav/basedir/i515iN3s004403/readme.zip
Found the W32/[EMAIL PROTECTED] virus !!!


For your reference, here are the headers from your email:

- BEGIN HEADERS -
Received: from server1081.dnslive.net [66.78.27.12]
  by pluton.nspoint.net [195.252.123.15] with SMTP id i515iN3s004403;
  Tue Jun  1 07:44:25 2004 +0200
Received: from [195.66.176.82] (helo=mediacomerce.com)
by server1081.dnslive.net with esmtp (Exim 4.24)
id 1BV24C-00081x-P2
for [EMAIL PROTECTED]; Tue, 01 Jun 2004 01:44:05 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Protected Mail Delivery
Date: Sat, 1 Jun 2002 07:44:38 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0016=_NextPart_000_0016
X-Priority: 3
X-MSMail-Priority: Normal
Message-Id: [EMAIL PROTECTED]
X-AntiAbuse: This header was added to track abuse, please include it with any abuse 
report
X-AntiAbuse: Primary Hostname - server1081.dnslive.net
X-AntiAbuse: Original Domain - mediacomerce.com
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - jakarta.apache.org
-- END HEADERS --

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



Where to put tld files for jarred custom taglibs?

2004-06-01 Thread Keith Hankin
I have created a custom taglib, extending TagSupport. I have packaged the
class files into a jar. I have also added the tld file to this jar. I then
place this jar file in my war file under WEB-INF/lib. However, no matter
where I place the tld file in the jar, it seems that Tomcat is unable to
find it. I have read the documentation, which is as clear as mud on this
issue.



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



RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
How did you locate your tld in your JSP ?

something like this ?
%@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 08:31
À : [EMAIL PROTECTED]
Objet : Where to put tld files for jarred custom taglibs?


I have created a custom taglib, extending TagSupport. I have packaged the
class files into a jar. I have also added the tld file to this jar. I then
place this jar file in my war file under WEB-INF/lib. However, no matter
where I place the tld file in the jar, it seems that Tomcat is unable to
find it. I have read the documentation, which is as clear as mud on this
issue.



-
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: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread Keith Hankin
I locate it as follows: %@ taglib uri=http://website.com/mypkg/mytags.tld;
prefix=mypref %
, then in my web.xml have the following:
taglib
taglib-uri
http://website.com/mypkg/mytags.tld
/taglib-uri
taglib-location
 /mytags.tld
/taglib-location
/taglib

I also try specifying taglib-location as /META-INF/mytags.tld,
/WEB-INF/mytags.tld, etc.

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:09 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


 How did you locate your tld in your JSP ?

 something like this ?
 %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %

 -Message d'origine-
 De : Keith Hankin [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 juin 2004 08:31
 À : [EMAIL PROTECTED]
 Objet : Where to put tld files for jarred custom taglibs?


 I have created a custom taglib, extending TagSupport. I have packaged the
 class files into a jar. I have also added the tld file to this jar. I then
 place this jar file in my war file under WEB-INF/lib. However, no matter
 where I place the tld file in the jar, it seems that Tomcat is unable to
 find it. I have read the documentation, which is as clear as mud on this
 issue.



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


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




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



RE: ROOT problems

2004-06-01 Thread Ilan Azbel
I removed the _ directory and all is working now, thanks!!!


 -Original Message-
 From: Ariel Valentin [mailto:[EMAIL PROTECTED]
 Sent: 31 May 2004 06:54
 To: [EMAIL PROTECTED]
 Subject: RE: ROOT problems


 What version of Tomcat are you using? 2.2
 If that is the case I recommend that you upgrade to at least 4.0.6
 Are you getting an http 404 error? If this is the case try shutting down
 tomcat and the go into your $Catalina_Home/work/Standalone/localhost and
 delete the folder that is named ROOT or it could just be an _.
 This is where the compiled application is located.

 Hope that helps,

 Mr. Ariel S. Valentin
 mailto: [EMAIL PROTECTED]




 From: Ilan Azbel [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Subject: RE: ROOT problems
 Date: Mon, 31 May 2004 12:20:07 +0200
 
 I am restarting tomcat every time I make a change. Also, I try to use
 index.html instead of index.jsp.
 
 Still no luck. Any other recommendations?
 
   -Original Message-
   From: Florian Ebeling [mailto:[EMAIL PROTECTED]
   Sent: 31 May 2004 12:10
   To: Tomcat Users List
   Subject: Re: ROOT problems
  
  
   Hi,
  
   remeber that the ROOT webapp is precompiled. So if you
   alter index.jsp nothing will happen, which might confuse you.
  
   -Florian
  
   Ilan Azbel wrote:
Hello,
   
I am having trouble locating the ROOT of my tomcat server.
I have a line in the server.xml file that reads:
 Context path= docBase=ROOT debug=0/
I place a file index.html in /usr/tdk-2.2/webapps/ROOT/
When I browse to my server it doesn't seem to locate this file.
   
any ideas?
   
Ilan
   
   
   
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 2004/05/26
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   ---
   Incoming mail is certified Virus Free.
   Checked by AVG anti-virus system (http://www.grisoft.com).
   Version: 6.0.691 / Virus Database: 452 - Release Date: 2004/05/26
  
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.691 / Virus Database: 452 - Release Date: 2004/05/26
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 Stop worrying about overloading your inbox - get MSN Hotmail
 Extra Storage!
 http://join.msn.click-url.com/go/onm00200362ave/direct/01/


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

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.691 / Virus Database: 452 - Release Date: 2004/05/26

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 2004/05/26


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



RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
web.xml :
taglib
   taglib-uriform-tags/taglib-uri
   taglib-location/WEB-INF/tld/form-tags.tld/taglib-location
/taglib
JSP :
%@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %


I declared as above, and it worked for me, don't ask me why :-)
 

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 09:01
À : Tomcat Users List
Objet : Re: Where to put tld files for jarred custom taglibs?


I locate it as follows: %@ taglib uri=http://website.com/mypkg/mytags.tld;
prefix=mypref %
, then in my web.xml have the following:
taglib
taglib-uri
http://website.com/mypkg/mytags.tld
/taglib-uri
taglib-location
 /mytags.tld
/taglib-location
/taglib

I also try specifying taglib-location as /META-INF/mytags.tld,
/WEB-INF/mytags.tld, etc.

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:09 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


 How did you locate your tld in your JSP ?

 something like this ?
 %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %

 -Message d'origine-
 De : Keith Hankin [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 juin 2004 08:31
 À : [EMAIL PROTECTED]
 Objet : Where to put tld files for jarred custom taglibs?


 I have created a custom taglib, extending TagSupport. I have packaged the
 class files into a jar. I have also added the tld file to this jar. I then
 place this jar file in my war file under WEB-INF/lib. However, no matter
 where I place the tld file in the jar, it seems that Tomcat is unable to
 find it. I have read the documentation, which is as clear as mud on this
 issue.



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


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




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


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



Re: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread Keith Hankin
Where did you put the tld file in your jar file? Did you also put the jar
into a war file?

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:44 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


 web.xml :
 taglib
taglib-uriform-tags/taglib-uri
taglib-location/WEB-INF/tld/form-tags.tld/taglib-location
 /taglib
 JSP :
 %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %


 I declared as above, and it worked for me, don't ask me why :-)


 -Message d'origine-
 De : Keith Hankin [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 juin 2004 09:01
 À : Tomcat Users List
 Objet : Re: Where to put tld files for jarred custom taglibs?


 I locate it as follows: %@ taglib
uri=http://website.com/mypkg/mytags.tld;
 prefix=mypref %
 , then in my web.xml have the following:
 taglib
 taglib-uri
 http://website.com/mypkg/mytags.tld
 /taglib-uri
 taglib-location
  /mytags.tld
 /taglib-location
 /taglib

 I also try specifying taglib-location as /META-INF/mytags.tld,
 /WEB-INF/mytags.tld, etc.

 - Original Message -
 From: STOCKHOLM, Raymond [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 12:09 PM
 Subject: RE: Where to put tld files for jarred custom taglibs?


  How did you locate your tld in your JSP ?
 
  something like this ?
  %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
 
  -Message d'origine-
  De : Keith Hankin [mailto:[EMAIL PROTECTED]
  Envoyé : mardi 1 juin 2004 08:31
  À : [EMAIL PROTECTED]
  Objet : Where to put tld files for jarred custom taglibs?
 
 
  I have created a custom taglib, extending TagSupport. I have packaged
the
  class files into a jar. I have also added the tld file to this jar. I
then
  place this jar file in my war file under WEB-INF/lib. However, no matter
  where I place the tld file in the jar, it seems that Tomcat is unable to
  find it. I have read the documentation, which is as clear as mud on this
  issue.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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




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



RE: Remote Start / Stop of tomcat

2004-06-01 Thread UmamaheswarKalluru




Any one please?

Thank you,
Best Regards,
Uma


   
 Schalk  
 [EMAIL PROTECTED] 
 o.za  To 
   
 05/31/2004 02:40  'Tomcat Users List'   
 PM[EMAIL PROTECTED]
cc 
   
 Please respond to 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  Subject 
   RE: Remote Start / Stop of tomcat   
   
   
   
   
   
   




Can you log-in to the machine via SSH?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, May 31, 2004 11:01 AM
:: To: Tomcat Users List
:: Subject: RE: Remote Start / Stop of tomcat
::
::
::
::
::
:: Matt,
:: Thanks for the reply. Yes, thats not my problem here and I am looking
for
:: starting / stopping my tomcat in the remote machine using some kind of
:: mechanism if available.
::
:: Thank you,
:: Best Regards,
:: Uma
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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





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



RE: combined http and https

2004-06-01 Thread Mariano
Hi José Manuel, if you have already configured your tomcat to work with SSL
you can filter all pages you want with the following lines in web.xml
context file:

security-constraint
web-resource-collection
  web-resource-nameSSL Pages/web-resource-name
  url-pattern/Comun/MyPage.jsp/url-pattern
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

You can use wildcards in url-pattern like '*'...

But i have a problem too, when i like to pass from http to https this work
fines, but from https to http i don't have a definitely solution yet.

Regards

Mariano López

-Mensaje original-
De: José Manuel Prada Sierra [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 31 de mayo de 2004 12:57
Para: [EMAIL PROTECTED]
Asunto: combined http and https



Hi. I have an application that it was build using  tdk (turbine development
kit) and postgresql.
I have configured tomcat with http 8080 and https 8443 but i only use http
or https and i do not know how to combined both protocols. In my application
i have a section that is accesible typing login and password, but i need
that when an user link to this section, to activate the protocol https.
could somebody tell me the way to do it? Thank you.
Sorry for my english. I am a spanish.

_
Reserva desde ahora tus vacaciones en MSN Viajes. Más cómodo, más barato y
más opciones. http://www.msn.es/Viajes/


-
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: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
I put the tld file in $MYAPPLICATION/WEB-INF/tld/form-tags.tld

My application is delivered as a war (which tomcat expands),
and contains $MYAPPLICATION/WEB-INF/tld/form-tags.tld

(I don't have any other jar, except the war)

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 09:19
À : Tomcat Users List
Objet : Re: Where to put tld files for jarred custom taglibs?


Where did you put the tld file in your jar file? Did you also put the jar
into a war file?

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:44 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


 web.xml :
 taglib
taglib-uriform-tags/taglib-uri
taglib-location/WEB-INF/tld/form-tags.tld/taglib-location
 /taglib
 JSP :
 %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %


 I declared as above, and it worked for me, don't ask me why :-)


 -Message d'origine-
 De : Keith Hankin [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 juin 2004 09:01
 À : Tomcat Users List
 Objet : Re: Where to put tld files for jarred custom taglibs?


 I locate it as follows: %@ taglib
uri=http://website.com/mypkg/mytags.tld;
 prefix=mypref %
 , then in my web.xml have the following:
 taglib
 taglib-uri
 http://website.com/mypkg/mytags.tld
 /taglib-uri
 taglib-location
  /mytags.tld
 /taglib-location
 /taglib

 I also try specifying taglib-location as /META-INF/mytags.tld,
 /WEB-INF/mytags.tld, etc.

 - Original Message -
 From: STOCKHOLM, Raymond [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 12:09 PM
 Subject: RE: Where to put tld files for jarred custom taglibs?


  How did you locate your tld in your JSP ?
 
  something like this ?
  %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
 
  -Message d'origine-
  De : Keith Hankin [mailto:[EMAIL PROTECTED]
  Envoyé : mardi 1 juin 2004 08:31
  À : [EMAIL PROTECTED]
  Objet : Where to put tld files for jarred custom taglibs?
 
 
  I have created a custom taglib, extending TagSupport. I have packaged
the
  class files into a jar. I have also added the tld file to this jar. I
then
  place this jar file in my war file under WEB-INF/lib. However, no matter
  where I place the tld file in the jar, it seems that Tomcat is unable to
  find it. I have read the documentation, which is as clear as mud on this
  issue.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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




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

2004-06-01 Thread Jesse Beaumont
Hi,

 

Has anyone had success using tomcat and SSL under high loads?  Are there
any production environments out there that use this configuration with
peak loads of more than, say, 30 rps?

 

In particular, I'm looking for windows XP or 2K3 deployments.

 

I'd really appreciate any positive or negative experiences regarding
this sort of scenario.

 

Thanks,

 

Jesse



--- Disclaimer ---

Unless otherwise agreed expressly in writing by a Director of Edina Software, this 
communication is to be treated as confidential and the information in it may not be 
used or disclosed except for the purpose for which it has been sent. If you have 
reason to believe that you are not the intended recipient of this communication, 
please contact the sender immediately. 


Important

2004-06-01 Thread remm
Important document!


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

Disable HTTP 1.1

2004-06-01 Thread Venkat Raghavan
Hi, 

I am using Tomcat 4.1. Is it possible to configure Tomcat so that it is compatible 
with only HTTP1.0. Basically I want to disable HTTP1.1 functionality. I know it is 
backward compatible with HTTP1.0, but i want to disable HTTP1.1 functionality. If this 
is not possible, in which version of Tomcat is this possible?

Regards,

Venkat

Re: ErrorPage.jsp - how to get the address of the offending page?

2004-06-01 Thread Dola Woolfe

 Does the request attribute
 javax.servlet.error.request_uri  suit your needs ?
 (from the servlet spec, SRV.9.9.1)

Actually returns null. I'm using Tomcat 3; Could that
be the reason?

Here's my snippet:

%@ page isErrorPage=true%
%
System.out.println(request.getAttribute(javax.servlet.error.request_uri));

%




__
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: Remote Start / Stop of tomcat

2004-06-01 Thread Adam Buglass
Think of it as a secure telnet!

Do a google search for more info.

Also do a google search for Putty which is an SSH client for Windows.
It'll probably tell you all about SSH and it's one of (if not the) best
windows SSH client around.

(If you're using Unix try typing: ssh [remotehost.remotedomain] at the
prompt, of course changing the stuff in [] for the name of your server).

HTH.
Adam.

On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
 
 
 What is SSH?
 
 Thank you,
 Best Regards,
 Uma
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Adam Buglass,  
The Golden Freeway.

Unit 1,
Wear Valley Business Centre,
27 Longfield Road,
South Church Enterprise Park,
Bishop Auckland.
DL14 6XB

(01388) 778424

http://www.thegoldenfreeway.com
http://www.golduk.net


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



Apache 2.0.49/mod_jk2.02 doesn't distribute load evenly to 2x Tomcat5.0.19 under high load.

2004-06-01 Thread Michael Echerer
Hello,

I stumbled upon a serious issue with the load balancing of mod_jk2. Currently
I'm doing load testing with The Grinder. My config is: 1x Apache 2.0.49
compiled with openssl (rest is default, prefork, etc.). mod_jk2.0.2 and 2x
Tomcat 5.0.19 on Solaris 2.8.

With The Grinder I put a high load (100 threads+) on Apache using one of our
servlets (no sessions) that uses a corba connection (thus generally slow,
2sec/request if no load). With so many concurrent requests the servlet may take
1 minute to respond. :-(

Worse enough, but during loadbalance tests I figured out that mod_jk2 doesn't
distribute evenly under high load. Round-robin doesn't seem to work anymore.

ALL requests to that servlet get routed to only one Tomcat which ajp13 queue
gets filled up until Apache throws mod_jk2 errors. The other Tomcat is idle.
You can see in the Tomcat access logs that nothing is routed there.
Second I added a second page to my grinder page (the tomcat-docs/index.html)
which is definitely stateless. Result: ALL servlet requests go to one Tomcat,
ALL docu requests go to the other Tomcat.

Seems like Apache/mod_jk2 routes requests to the same Tomcat it for the previous
request instead of a true round-robin. In effect: under high load this means
that Apache doesn't balance anymore but just fills up a Tomcat's queue until
it's full while other Tomcats are idle.

It seems similar to this production issue:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg109910.html

But I didn't see a solution for it.

I could reproduce this problem in the browser, too. If you trigger this
long-running servlet with a little break the requests are evenly in both
Tomcat's access logs. If you hit the browser reload button too fast all
requests go to one Tomcat. No round-robin any more!

I don't believe it's a mod_jk2 workers2.properties or httpd.conf issue since I
played around much with it. No effect.

Anyone saw similar problems with mod_jk2 under heavy load? Any suggestions?
Is this a known bug, or should I open a new one because load balancing is
useless if it fails exactly during high load and distributes only fine while
you don't need it?

Thanks
Michael

P.S. If you need my config files please let me know, as I don't want to clutter
this mail right now.




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



RE: Remote Start / Stop of tomcat

2004-06-01 Thread Schalk
I second that, if you are on windows download 'Putty' and for uploading and
downloading files via SSH download 'psftp', it is by the same company. They
work absolutely great.

Just check with whom ever administers your server that SSH is installed.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Adam Buglass [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 01, 2004 10:28 AM
:: To: Tomcat Users List
:: Subject: RE: Remote Start / Stop of tomcat
:: 
:: Think of it as a secure telnet!
:: 
:: Do a google search for more info.
:: 
:: Also do a google search for Putty which is an SSH client for Windows.
:: It'll probably tell you all about SSH and it's one of (if not the) best
:: windows SSH client around.
:: 
:: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the
:: prompt, of course changing the stuff in [] for the name of your server).
:: 
:: HTH.
:: Adam.
:: 
:: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
:: 
:: 
::  What is SSH?
:: 
::  Thank you,
::  Best Regards,
::  Uma
:: 
:: 
::  -
::  To unsubscribe, e-mail: [EMAIL PROTECTED]
::  For additional commands, e-mail: [EMAIL PROTECTED]
:: --
:: Adam Buglass,  
:: The Golden Freeway.
:: 
:: Unit 1,
:: Wear Valley Business Centre,
:: 27 Longfield Road,
:: South Church Enterprise Park,
:: Bishop Auckland.
:: DL14 6XB
:: 
:: (01388) 778424
:: 
:: http://www.thegoldenfreeway.com
:: http://www.golduk.net
:: 
:: 
:: -
:: 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 Client Authorization

2004-06-01 Thread Sander Smith
I'm writing an application with SSL that's been working fine, and would 
like to enable client authorization. It seemed like the thing to do was go 
to my connector (org.apache.coyote.tomcat5.CoyoteConnector) and enable it 
there. Lo and behold there is a method (setClientAuth) that seems to do 
what I want, but for some strange reason it takes a string as an argument 
instead of a boolean. What am I missing here?? How do I enable this?

Sander Smith

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


Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-01 Thread James Sherwood
Ran out of memory last night again

Set to 512m and ran out at 284m
Maybe I am missing a paramater in the tomcat setup on windows or something

Frustrating

James

- Original Message - 
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 4:04 PM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 300 mb sounds a lot, i've got a hibernate and struts flavored app
 running with a 128 limit, and thats being generous.

 I haven't measured anything but top looks happy, with 5.0.25 with jk to
 apache 2.0.47. Had a bit of traffic this afternoon albeit nothing
 heavy, had 5 simultaneously this afternoon. But nothing huge.

 Mark

 On 31 May 2004, at 17:54, James Sherwood wrote:

  Thanks Mark,
 
  I have it currently running bypassing the mod_jk with rewrite to port
  8080.
 
  The memory has ramped to 327 mb so far which is not anything to worry
  about.
 
  I had this problem on our linux box but I had forgotten the -server
  option
  and that took care of it.
  The problem is, windows doesnt accept -server.
 
  Ill continue to monitor it with the mod_jk bypass in.
 
 
  James
 
 
  - Original Message -
  From: Mark Lowe [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, May 31, 2004 12:19 PM
  Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass
 
 
  I've just set 5.0.25 up and it will run with mod_jk/1.2.3-dev and
  Apache/2.0.47 , I'll see if i get the same thing happening.
 
  When i was having problems i was getting a decoding error written to
  catalina log, which 5.0.24+ hasn't given me. 5.0.24 has been working
  quite happily but the next man mentioned a session error so I took his
  word for it and upgraded.
 
  You could have tomcat being served from an ip alias, but will depend
  on
  you configuration. And might take longer than getting jk sorted.
 
  For the moment I can just say i'll keep and eye on things and see if
  the same happens to me.
 
  Mark
 
  On 31 May 2004, at 14:23, James Sherwood wrote:
 
  There are no errors anywhere that I can find in any logs.  The memory
  just
  slowly ramps up till an out of memory error happens.
 
  James
 
  - Original Message -
  From: Mark Lowe [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, May 31, 2004 9:04 AM
  Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass
 
 
  What does your catalina log have to say for itself?
 
 
 
 
  On 31 May 2004, at 13:59, James Sherwood wrote:
 
  As I posted before, I get a memory leak using mod_jk 1.2 with
  Tomcat
  5.0.25
  and Apache 2.049
 
  I beleive it may be related to the mod_jk connector and since I am
  not
  actually serving up anything with apache yet I want to just bypass
  the
  connector for 1 site and hit tomcat directly. I have to use apache
  for
  other
  things on the server so I cannot just use tomcat.
 
  Any idea the best route for this? (of course a fix for the leak is
  the
  best
  route:)
  My route works but certian urls within the site do not
  work(although
  I
  think
  I could get them working).
 
  The way I have done it is this:
 
  VirtualHost *
 
  ServerName mysite.ca
 
  RewriteEngine on
 
  RewriteCond %{HTTP_HOST} ^www\.mysite\.ca$ [NC]
 
  RewriteRule ^(.*) http://localhost:8080$1 [p]
 
  /VirtualHost
 
 
 
  Thanks, James
 
 
 
  --- 
  --
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
   
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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




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



RE: Remote Start / Stop of tomcat

2004-06-01 Thread UmamaheswarKalluru




Hi Schalk,
I have downloaded putty and I am really struck on how to use it. I never
used Telnet before. Can you help me with the commands that are needed to
start / stop tomcat on remote machine please?

Thank you,
Best Regards,
Uma


   
 Schalk  
 [EMAIL PROTECTED] 
 o.za  To 
   
 06/01/2004 02:58  'Tomcat Users List'   
 PM[EMAIL PROTECTED]
cc 
   
 Please respond to 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  Subject 
   RE: Remote Start / Stop of tomcat   
   
   
   
   
   
   




I second that, if you are on windows download 'Putty' and for uploading and
downloading files via SSH download 'psftp', it is by the same company. They
work absolutely great.

Just check with whom ever administers your server that SSH is installed.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

:: -Original Message-
:: From: Adam Buglass [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 01, 2004 10:28 AM
:: To: Tomcat Users List
:: Subject: RE: Remote Start / Stop of tomcat
::
:: Think of it as a secure telnet!
::
:: Do a google search for more info.
::
:: Also do a google search for Putty which is an SSH client for Windows.
:: It'll probably tell you all about SSH and it's one of (if not the) best
:: windows SSH client around.
::
:: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the
:: prompt, of course changing the stuff in [] for the name of your server).
::
:: HTH.
:: Adam.
::
:: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
:: 
:: 
::  What is SSH?
:: 
::  Thank you,
::  Best Regards,
::  Uma
:: 
:: 
::  -
::  To unsubscribe, e-mail: [EMAIL PROTECTED]
::  For additional commands, e-mail: [EMAIL PROTECTED]
:: --
:: Adam Buglass,  
:: The Golden Freeway.
::
:: Unit 1,
:: Wear Valley Business Centre,
:: 27 Longfield Road,
:: South Church Enterprise Park,
:: Bishop Auckland.
:: DL14 6XB
::
:: (01388) 778424
::
:: http://www.thegoldenfreeway.com
:: http://www.golduk.net
::
::
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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





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



Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-01 Thread Mark Lowe
I have this in our startup scripts
export CATALINA_OPTS=-Djava.awt.headless=true -Xmx128m -Xdebug
Perhaps the debug argument might reveal something. I cant be much help  
on windows matters as I try not to get involved with anything like  
that.

My app is still running, but linux not windows so i don't know how far  
i can compare. I also have no idea about compiling jk under windows,  
i've always found that I've needed to compile jk often with the head  
version out of cvs (there's always a fix thats needed somewhere).

Mark
On 1 Jun 2004, at 13:05, James Sherwood wrote:
Ran out of memory last night again
Set to 512m and ran out at 284m
Maybe I am missing a paramater in the tomcat setup on windows or  
something

Frustrating
James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 4:04 PM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

300 mb sounds a lot, i've got a hibernate and struts flavored app
running with a 128 limit, and thats being generous.
I haven't measured anything but top looks happy, with 5.0.25 with jk  
to
apache 2.0.47. Had a bit of traffic this afternoon albeit nothing
heavy, had 5 simultaneously this afternoon. But nothing huge.

Mark
On 31 May 2004, at 17:54, James Sherwood wrote:
Thanks Mark,
I have it currently running bypassing the mod_jk with rewrite to port
8080.
The memory has ramped to 327 mb so far which is not anything to worry
about.
I had this problem on our linux box but I had forgotten the -server
option
and that took care of it.
The problem is, windows doesnt accept -server.
Ill continue to monitor it with the mod_jk bypass in.
James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 12:19 PM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

I've just set 5.0.25 up and it will run with mod_jk/1.2.3-dev and
Apache/2.0.47 , I'll see if i get the same thing happening.
When i was having problems i was getting a decoding error written to
catalina log, which 5.0.24+ hasn't given me. 5.0.24 has been working
quite happily but the next man mentioned a session error so I took  
his
word for it and upgraded.

You could have tomcat being served from an ip alias, but will depend
on
you configuration. And might take longer than getting jk sorted.
For the moment I can just say i'll keep and eye on things and see if
the same happens to me.
Mark
On 31 May 2004, at 14:23, James Sherwood wrote:
There are no errors anywhere that I can find in any logs.  The  
memory
just
slowly ramps up till an out of memory error happens.

James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 9:04 AM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

What does your catalina log have to say for itself?

On 31 May 2004, at 13:59, James Sherwood wrote:
As I posted before, I get a memory leak using mod_jk 1.2 with
Tomcat
5.0.25
and Apache 2.049
I beleive it may be related to the mod_jk connector and since I  
am
not
actually serving up anything with apache yet I want to just  
bypass
the
connector for 1 site and hit tomcat directly. I have to use  
apache
for
other
things on the server so I cannot just use tomcat.

Any idea the best route for this? (of course a fix for the leak  
is
the
best
route:)
My route works but certian urls within the site do not
work(although
I
think
I could get them working).

The way I have done it is this:
VirtualHost *
ServerName mysite.ca
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mysite\.ca$ [NC]
RewriteRule ^(.*) http://localhost:8080$1 [p]
/VirtualHost

Thanks, James

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


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



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


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



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

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

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

-
To unsubscribe, e-mail: [EMAIL 

Re: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread Keith Hankin
OK, but I want the tld file to be in my jar file. I want it packaged along
with the class files that implement the taglib functionality.

- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:56 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


 I put the tld file in $MYAPPLICATION/WEB-INF/tld/form-tags.tld

 My application is delivered as a war (which tomcat expands),
 and contains $MYAPPLICATION/WEB-INF/tld/form-tags.tld

 (I don't have any other jar, except the war)

 -Message d'origine-
 De : Keith Hankin [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 juin 2004 09:19
 À : Tomcat Users List
 Objet : Re: Where to put tld files for jarred custom taglibs?


 Where did you put the tld file in your jar file? Did you also put the jar
 into a war file?

 - Original Message -
 From: STOCKHOLM, Raymond [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 12:44 PM
 Subject: RE: Where to put tld files for jarred custom taglibs?


  web.xml :
  taglib
 taglib-uriform-tags/taglib-uri
 taglib-location/WEB-INF/tld/form-tags.tld/taglib-location
  /taglib
  JSP :
  %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
 
 
  I declared as above, and it worked for me, don't ask me why :-)
 
 
  -Message d'origine-
  De : Keith Hankin [mailto:[EMAIL PROTECTED]
  Envoyé : mardi 1 juin 2004 09:01
  À : Tomcat Users List
  Objet : Re: Where to put tld files for jarred custom taglibs?
 
 
  I locate it as follows: %@ taglib
 uri=http://website.com/mypkg/mytags.tld;
  prefix=mypref %
  , then in my web.xml have the following:
  taglib
  taglib-uri
  http://website.com/mypkg/mytags.tld
  /taglib-uri
  taglib-location
   /mytags.tld
  /taglib-location
  /taglib
 
  I also try specifying taglib-location as /META-INF/mytags.tld,
  /WEB-INF/mytags.tld, etc.
 
  - Original Message -
  From: STOCKHOLM, Raymond [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, June 01, 2004 12:09 PM
  Subject: RE: Where to put tld files for jarred custom taglibs?
 
 
   How did you locate your tld in your JSP ?
  
   something like this ?
   %@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
  
   -Message d'origine-
   De : Keith Hankin [mailto:[EMAIL PROTECTED]
   Envoyé : mardi 1 juin 2004 08:31
   À : [EMAIL PROTECTED]
   Objet : Where to put tld files for jarred custom taglibs?
  
  
   I have created a custom taglib, extending TagSupport. I have packaged
 the
   class files into a jar. I have also added the tld file to this jar. I
 then
   place this jar file in my war file under WEB-INF/lib. However, no
matter
   where I place the tld file in the jar, it seems that Tomcat is unable
to
   find it. I have read the documentation, which is as clear as mud on
this
   issue.
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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




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



RequestDispatcher in jspInit() ?

2004-06-01 Thread Jerry Miernik
  Is it possible to use RequestDispatcher's include method
  inside a jspInit(), to execute another JSP script while
  this JSP script is in its jspInit() method? 
  Thanks,
  Jerry.

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



Page output is disappearing

2004-06-01 Thread Keith Hankin
Does anyone know any conditions under which writing to the JspWriter will
not result in any output? I have a custom taglib class that extends
BodyTagSupport. The doStartTag() method returns EVAL_BODY_BUFFERED. I then
have another custom
taglib class that is a child of this tag, which extends TagSupport. In
doStartTag(), this method gets the JspWriter and writes to it, however the
output does not appear to come out. This child custom taglib does not even
refer to the parent tag in any way. However if I remove the containing
parent tag from the JSP page, the output *does* come out. I am using Tomcat
5.0.19.



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



RE: Remote Start / Stop of tomcat

2004-06-01 Thread Adam Buglass
Hi Uma.

On using PuTTy I suggest you look for the online documentation. The best
way is to have the .exe file on your desktop. Just double-click it and
take it from there. It's fairly intuitive or at least I found it so.

Once you are logged into the remote machine go into your tomcat
directory and then change into the bin directory. There you will find
the shutdown and startup shell scripts. Use them. (eg. ./startup.sh and
./shutdown.sh at the prompt).

You will find README files in your tomcat directory and there is plenty
of online documentation so I suggest you RTFM!

Adam.

On Tue, 2004-06-01 at 11:57, [EMAIL PROTECTED] wrote:
 
 
 Hi Schalk,
 I have downloaded putty and I am really struck on how to use it. I never
 used Telnet before. Can you help me with the commands that are needed to
 start / stop tomcat on remote machine please?
 
 Thank you,
 Best Regards,
 Uma
 
 

  Schalk  
  [EMAIL PROTECTED] 
  o.za  To 

  06/01/2004 02:58  'Tomcat Users List'   
  PM[EMAIL PROTECTED]
 cc 

  Please respond to 
Tomcat Users   
List   
  [EMAIL PROTECTED] 
   rta.apache.org  Subject 
RE: Remote Start / Stop of tomcat   






 
 
 
 
 I second that, if you are on windows download 'Putty' and for uploading and
 downloading files via SSH download 'psftp', it is by the same company. They
 work absolutely great.
 
 Just check with whom ever administers your server that SSH is installed.
 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.com
 
 This message contains information that is considered to be sensitive or
 confidential and may not be forwarded or disclosed to any other party
 without the permission of the sender. If you received this message in
 error,
 please notify me immediately so that I can correct and delete the original
 email. Thank you.
 
 :: -Original Message-
 :: From: Adam Buglass [mailto:[EMAIL PROTECTED]
 :: Sent: Tuesday, June 01, 2004 10:28 AM
 :: To: Tomcat Users List
 :: Subject: RE: Remote Start / Stop of tomcat
 ::
 :: Think of it as a secure telnet!
 ::
 :: Do a google search for more info.
 ::
 :: Also do a google search for Putty which is an SSH client for Windows.
 :: It'll probably tell you all about SSH and it's one of (if not the) best
 :: windows SSH client around.
 ::
 :: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the
 :: prompt, of course changing the stuff in [] for the name of your server).
 ::
 :: HTH.
 :: Adam.
 ::
 :: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
 :: 
 :: 
 ::  What is SSH?
 :: 
 ::  Thank you,
 ::  Best Regards,
 ::  Uma
 :: 
 :: 
 ::  -
 ::  To unsubscribe, e-mail: [EMAIL PROTECTED]
 ::  For additional commands, e-mail: [EMAIL PROTECTED]
 :: --
 :: Adam Buglass,  
 :: The Golden Freeway.
 ::
 :: Unit 1,
 :: Wear Valley Business Centre,
 :: 27 Longfield Road,
 :: South Church Enterprise Park,
 :: Bishop Auckland.
 :: DL14 6XB
 ::
 :: (01388) 778424
 ::
 :: http://www.thegoldenfreeway.com
 :: http://www.golduk.net
 ::
 ::
 :: -
 :: 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: Remote Start / Stop of tomcat

2004-06-01 Thread Schalk
Uma

After launching Putty, leave everything at their default setting and type in
your server's IP address. Click Open. On the first alert window that pops up
read the text and click either Yes or No.

Next it will ask you to type in your username and then password. While you
are typing the password you will not see the prompt move. This is ok; type
the password and press enter.

Then from my experience I basically go:
cd /usr/local/tomcat/bin/
startup.sh

or 

shutdown.sh

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 01, 2004 12:58 PM
:: To: Tomcat Users List
:: Subject: RE: Remote Start / Stop of tomcat
:: 
:: 
:: 
:: 
:: 
:: Hi Schalk,
:: I have downloaded putty and I am really struck on how to use it. I never
:: used Telnet before. Can you help me with the commands that are needed to
:: start / stop tomcat on remote machine please?
:: 
:: Thank you,
:: Best Regards,
:: Uma
:: 
:: 
:: 
::  Schalk
::  [EMAIL PROTECTED]
::  o.za
To
:: 
::  06/01/2004 02:58  'Tomcat Users List'
::  PM[EMAIL PROTECTED]
::
cc
:: 
::  Please respond to
::Tomcat Users
::List
::  [EMAIL PROTECTED]
::   rta.apache.org
Subject
::RE: Remote Start / Stop of tomcat
:: 
:: 
:: 
:: 
:: 
:: 
:: 
:: 
:: 
:: 
:: I second that, if you are on windows download 'Putty' and for uploading
and
:: downloading files via SSH download 'psftp', it is by the same company.
They
:: work absolutely great.
:: 
:: Just check with whom ever administers your server that SSH is installed.
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.com
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
:: error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: :: -Original Message-
:: :: From: Adam Buglass [mailto:[EMAIL PROTECTED]
:: :: Sent: Tuesday, June 01, 2004 10:28 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: Remote Start / Stop of tomcat
:: ::
:: :: Think of it as a secure telnet!
:: ::
:: :: Do a google search for more info.
:: ::
:: :: Also do a google search for Putty which is an SSH client for
Windows.
:: :: It'll probably tell you all about SSH and it's one of (if not the)
best
:: :: windows SSH client around.
:: ::
:: :: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the
:: :: prompt, of course changing the stuff in [] for the name of your
server).
:: ::
:: :: HTH.
:: :: Adam.
:: ::
:: :: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
:: :: 
:: :: 
:: ::  What is SSH?
:: :: 
:: ::  Thank you,
:: ::  Best Regards,
:: ::  Uma
:: :: 
:: :: 
:: :: 
-
:: ::  To unsubscribe, e-mail: [EMAIL PROTECTED]
:: ::  For additional commands, e-mail: [EMAIL PROTECTED]
:: :: --
:: :: Adam Buglass,  
:: :: The Golden Freeway.
:: ::
:: :: Unit 1,
:: :: Wear Valley Business Centre,
:: :: 27 Longfield Road,
:: :: South Church Enterprise Park,
:: :: Bishop Auckland.
:: :: DL14 6XB
:: ::
:: :: (01388) 778424
:: ::
:: :: http://www.thegoldenfreeway.com
:: :: http://www.golduk.net
:: ::
:: ::
:: :: -
:: :: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: :: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: RequestDispatcher in jspInit() ?

2004-06-01 Thread Tim Funk
No
-Tim
Jerry Miernik wrote:
  Is it possible to use RequestDispatcher's include method
  inside a jspInit(), to execute another JSP script while
  this JSP script is in its jspInit() method? 
  Thanks,
  Jerry.

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


Re: Page output is disappearing

2004-06-01 Thread Tim Funk
Off chance, are you using tag-pooling? Try turning that off and see what happens.
-Tim
Keith Hankin wrote:
Does anyone know any conditions under which writing to the JspWriter will
not result in any output? I have a custom taglib class that extends
BodyTagSupport. The doStartTag() method returns EVAL_BODY_BUFFERED. I then
have another custom
taglib class that is a child of this tag, which extends TagSupport. In
doStartTag(), this method gets the JspWriter and writes to it, however the
output does not appear to come out. This child custom taglib does not even
refer to the parent tag in any way. However if I remove the containing
parent tag from the JSP page, the output *does* come out. I am using Tomcat
5.0.19.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-01 Thread Jagsir.Dhillon
Hi Mark,
This option 
-Xmx128m

Will cause OutOfMemory for you,
As it basically sets maximum Java heap size, which will cause JVM to
through whenever the limit is reached. Set it to a high value.

Chall, 


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 4:55 PM
To: Tomcat Users List
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

I have this in our startup scripts

export CATALINA_OPTS=-Djava.awt.headless=true -Xmx128m -Xdebug

Perhaps the debug argument might reveal something. I cant be much help
on windows matters as I try not to get involved with anything like that.

My app is still running, but linux not windows so i don't know how far i
can compare. I also have no idea about compiling jk under windows, i've
always found that I've needed to compile jk often with the head version
out of cvs (there's always a fix thats needed somewhere).

Mark

On 1 Jun 2004, at 13:05, James Sherwood wrote:

 Ran out of memory last night again

 Set to 512m and ran out at 284m
 Maybe I am missing a paramater in the tomcat setup on windows or 
 something

 Frustrating

 James

 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 4:04 PM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 300 mb sounds a lot, i've got a hibernate and struts flavored app 
 running with a 128 limit, and thats being generous.

 I haven't measured anything but top looks happy, with 5.0.25 with jk 
 to apache 2.0.47. Had a bit of traffic this afternoon albeit nothing 
 heavy, had 5 simultaneously this afternoon. But nothing huge.

 Mark

 On 31 May 2004, at 17:54, James Sherwood wrote:

 Thanks Mark,

 I have it currently running bypassing the mod_jk with rewrite to 
 port 8080.

 The memory has ramped to 327 mb so far which is not anything to 
 worry about.

 I had this problem on our linux box but I had forgotten the -server 
 option and that took care of it.
 The problem is, windows doesnt accept -server.

 Ill continue to monitor it with the mod_jk bypass in.


 James


 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 12:19 PM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 I've just set 5.0.25 up and it will run with mod_jk/1.2.3-dev and
 Apache/2.0.47 , I'll see if i get the same thing happening.

 When i was having problems i was getting a decoding error written 
 to catalina log, which 5.0.24+ hasn't given me. 5.0.24 has been 
 working quite happily but the next man mentioned a session error so

 I took his word for it and upgraded.

 You could have tomcat being served from an ip alias, but will 
 depend on you configuration. And might take longer than getting jk 
 sorted.

 For the moment I can just say i'll keep and eye on things and see 
 if the same happens to me.

 Mark

 On 31 May 2004, at 14:23, James Sherwood wrote:

 There are no errors anywhere that I can find in any logs.  The 
 memory just slowly ramps up till an out of memory error happens.

 James

 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 9:04 AM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 What does your catalina log have to say for itself?




 On 31 May 2004, at 13:59, James Sherwood wrote:

 As I posted before, I get a memory leak using mod_jk 1.2 with 
 Tomcat
 5.0.25
 and Apache 2.049

 I beleive it may be related to the mod_jk connector and since I 
 am not actually serving up anything with apache yet I want to 
 just bypass the connector for 1 site and hit tomcat directly. I 
 have to use apache for other things on the server so I cannot 
 just use tomcat.

 Any idea the best route for this? (of course a fix for the leak 
 is the best
 route:)
 My route works but certian urls within the site do not 
 work(although I think I could get them working).

 The way I have done it is this:

 VirtualHost *

 ServerName mysite.ca

 RewriteEngine on

 RewriteCond %{HTTP_HOST} ^www\.mysite\.ca$ [NC]

 RewriteRule ^(.*) http://localhost:8080$1 [p]

 /VirtualHost



 Thanks, James




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




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






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




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







Re: Remote Start / Stop of tomcat

2004-06-01 Thread Parsons Technical Services
Uma,

Set the communication type to ssh. This is much more secure than telnet.
(Otherwise they work the same) You will be prompted about a certificate. If
your IP is correct(Are you talking to the correct machine) then you should
accept it. For a window user it is a strange world in the land of prompt. It
works just like a Dos prompt or command prompt on Windows(with different
commands). Use cd .. to move up in the directories and ls to list the
directories and files. Case does matter, so CD is not the same as cd, same
goes for file names. On some flavors of linux/unix you may have to do this
./startup.sh to call a program in the current directory.

If you need to find the file use   find / -name startup.sh  You may need to
be at the root prompt to get good results, again a flavor issue.
This should list all the locations of this file.

Good luck.

Doug
www.parsonstechnical.com


- Original Message - 
From: Schalk [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 7:58 AM
Subject: RE: Remote Start / Stop of tomcat


Uma

After launching Putty, leave everything at their default setting and type in
your server's IP address. Click Open. On the first alert window that pops up
read the text and click either Yes or No.

Next it will ask you to type in your username and then password. While you
are typing the password you will not see the prompt move. This is ok; type
the password and press enter.

Then from my experience I basically go:
cd /usr/local/tomcat/bin/
startup.sh

or

shutdown.sh

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 01, 2004 12:58 PM
:: To: Tomcat Users List
:: Subject: RE: Remote Start / Stop of tomcat
::
::
::
::
::
:: Hi Schalk,
:: I have downloaded putty and I am really struck on how to use it. I never
:: used Telnet before. Can you help me with the commands that are needed to
:: start / stop tomcat on remote machine please?
::
:: Thank you,
:: Best Regards,
:: Uma
::
::
::
::  Schalk
::  [EMAIL PROTECTED]
::  o.za
To
::
::  06/01/2004 02:58  'Tomcat Users List'
::  PM[EMAIL PROTECTED]
::
cc
::
::  Please respond to
::Tomcat Users
::List
::  [EMAIL PROTECTED]
::   rta.apache.org
Subject
::RE: Remote Start / Stop of tomcat
::
::
::
::
::
::
::
::
::
::
:: I second that, if you are on windows download 'Putty' and for uploading
and
:: downloading files via SSH download 'psftp', it is by the same company.
They
:: work absolutely great.
::
:: Just check with whom ever administers your server that SSH is installed.
::
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.com
::
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
:: error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
::
:: :: -Original Message-
:: :: From: Adam Buglass [mailto:[EMAIL PROTECTED]
:: :: Sent: Tuesday, June 01, 2004 10:28 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: Remote Start / Stop of tomcat
:: ::
:: :: Think of it as a secure telnet!
:: ::
:: :: Do a google search for more info.
:: ::
:: :: Also do a google search for Putty which is an SSH client for
Windows.
:: :: It'll probably tell you all about SSH and it's one of (if not the)
best
:: :: windows SSH client around.
:: ::
:: :: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the
:: :: prompt, of course changing the stuff in [] for the name of your
server).
:: ::
:: :: HTH.
:: :: Adam.
:: ::
:: :: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote:
:: :: 
:: :: 
:: ::  What is SSH?
:: :: 
:: ::  Thank you,
:: ::  Best Regards,
:: ::  Uma
:: :: 
:: :: 
:: :: 
-
:: ::  To unsubscribe, e-mail: [EMAIL PROTECTED]
:: ::  For additional commands, e-mail: [EMAIL PROTECTED]
:: :: --
:: :: Adam 

RE: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-01 Thread Jagsir.Dhillon
Hi James,
You have said
  windows doesnt accept -server 

I believe you have either 
 - Installed the pre 1.3.0 version of JVM 
 - Your %JAVA_HOME%/bin does not have this server directory

For the second part what you can do is copy everything (only jvm.dll is
required mostly)
'%JAVA_HOME%/jre/bin/server' to '%JAVA_HOME%/bin' directory

And 
use this '-Xms256m -Xms512m'

Changa fer,

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 4:55 PM
To: Tomcat Users List
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

I have this in our startup scripts

export CATALINA_OPTS=-Djava.awt.headless=true -Xmx128m -Xdebug

Perhaps the debug argument might reveal something. I cant be much help
on windows matters as I try not to get involved with anything like that.

My app is still running, but linux not windows so i don't know how far i
can compare. I also have no idea about compiling jk under windows, i've
always found that I've needed to compile jk often with the head version
out of cvs (there's always a fix thats needed somewhere).

Mark

On 1 Jun 2004, at 13:05, James Sherwood wrote:

 Ran out of memory last night again

 Set to 512m and ran out at 284m
 Maybe I am missing a paramater in the tomcat setup on windows or 
 something

 Frustrating

 James

 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 4:04 PM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 300 mb sounds a lot, i've got a hibernate and struts flavored app 
 running with a 128 limit, and thats being generous.

 I haven't measured anything but top looks happy, with 5.0.25 with jk 
 to apache 2.0.47. Had a bit of traffic this afternoon albeit nothing 
 heavy, had 5 simultaneously this afternoon. But nothing huge.

 Mark

 On 31 May 2004, at 17:54, James Sherwood wrote:

 Thanks Mark,

 I have it currently running bypassing the mod_jk with rewrite to 
 port 8080.

 The memory has ramped to 327 mb so far which is not anything to 
 worry about.

 I had this problem on our linux box but I had forgotten the -server 
 option and that took care of it.
 The problem is, windows doesnt accept -server.

 Ill continue to monitor it with the mod_jk bypass in.


 James


 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 12:19 PM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 I've just set 5.0.25 up and it will run with mod_jk/1.2.3-dev and
 Apache/2.0.47 , I'll see if i get the same thing happening.

 When i was having problems i was getting a decoding error written 
 to catalina log, which 5.0.24+ hasn't given me. 5.0.24 has been 
 working quite happily but the next man mentioned a session error so

 I took his word for it and upgraded.

 You could have tomcat being served from an ip alias, but will 
 depend on you configuration. And might take longer than getting jk 
 sorted.

 For the moment I can just say i'll keep and eye on things and see 
 if the same happens to me.

 Mark

 On 31 May 2004, at 14:23, James Sherwood wrote:

 There are no errors anywhere that I can find in any logs.  The 
 memory just slowly ramps up till an out of memory error happens.

 James

 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 31, 2004 9:04 AM
 Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass


 What does your catalina log have to say for itself?




 On 31 May 2004, at 13:59, James Sherwood wrote:

 As I posted before, I get a memory leak using mod_jk 1.2 with 
 Tomcat
 5.0.25
 and Apache 2.049

 I beleive it may be related to the mod_jk connector and since I 
 am not actually serving up anything with apache yet I want to 
 just bypass the connector for 1 site and hit tomcat directly. I 
 have to use apache for other things on the server so I cannot 
 just use tomcat.

 Any idea the best route for this? (of course a fix for the leak 
 is the best
 route:)
 My route works but certian urls within the site do not 
 work(although I think I could get them working).

 The way I have done it is this:

 VirtualHost *

 ServerName mysite.ca

 RewriteEngine on

 RewriteCond %{HTTP_HOST} ^www\.mysite\.ca$ [NC]

 RewriteRule ^(.*) http://localhost:8080$1 [p]

 /VirtualHost



 Thanks, James




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




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






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





Re: SSL Client Authorization

2004-06-01 Thread Parsons Technical Services
Sander,

If what you want is to have the client present a certificate for validation,
then in your connector have something like

clientAuth=true

See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

If you are looking for something different let us know.

Doug
www.parsonstechnical.com



- Original Message - 
From: Sander Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 6:29 AM
Subject: SSL Client Authorization


 I'm writing an application with SSL that's been working fine, and would
 like to enable client authorization. It seemed like the thing to do was go
 to my connector (org.apache.coyote.tomcat5.CoyoteConnector) and enable it
 there. Lo and behold there is a method (setClientAuth) that seems to do
 what I want, but for some strange reason it takes a string as an argument
 instead of a boolean. What am I missing here?? How do I enable this?

 Sander Smith



 -
 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: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread M.Hockings
STOCKHOLM, Raymond wrote:
How did you locate your tld in your JSP ?
something like this ?
%@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 08:31
À : [EMAIL PROTECTED]
Objet : Where to put tld files for jarred custom taglibs?
I have created a custom taglib, extending TagSupport. I have packaged the
class files into a jar. I have also added the tld file to this jar. I then
place this jar file in my war file under WEB-INF/lib. However, no matter
where I place the tld file in the jar, it seems that Tomcat is unable to
find it. I have read the documentation, which is as clear as mud on this
issue.

Here is an article that you might find informative..
http://www.ibm.com/developerworks/java/library/j-jsp09023.html?ca=dgr-jw17j-jsp09023
Mike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat starts poorly on Windows XP

2004-06-01 Thread Joel Shprentz
The problem continues with both jakarta-tomcat-5.0.24.exe and 
jakarta-tomcat-5.0.24.zip.

At 12:41 AM 5/27/2004, Joel Shprentz wrote:
A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.
Below is stdout.log after a clean install of j2sdk-1_4_2_04-windows-i586-p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I started
Tomcat from the Configure Tomcat application.
...
May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory 
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
...
--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190 


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


(SOLVED) Remote Start / Stop of tomcat

2004-06-01 Thread UmamaheswarKalluru




Hi,
Thank you all for the reply. I got it now. It seems to be similar to
PCAnywhere but more secure. I got connected to the server and everything is
working fine. Thanks again

Thank you,
Best Regards,
Uma


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



web.xml file problem

2004-06-01 Thread UmamaheswarKalluru




Hi,
This is my web.xml file. I dont know whats wrong here but my first session
gets expired. When I remove the error-page and welcome file list, then
everything works fine. Am I wrong somewhere?


?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

error-page
  error-code404/error-code
  location/CustomErrorPage.jsp/location
/error-page


welcome-file-list
  welcome-fileindex.jsp/welcome-file
/welcome-file-list

/web-app

Thank you,
Best Regards,
Uma


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



RE: Disable HTTP 1.1

2004-06-01 Thread Shapira, Yoav

Hi,
From the HTTP Connector configuration page:

HTTP/1.1 and HTTP/1.0 Support
This Connector supports all of the required features of the HTTP/1.1
protocol, as described in RFC 2616, including persistent connections,
pipelining, expectations and chunked encoding. If the client (typically
a browser) supports only HTTP/1.0, the Connector will gracefully fall
back to supporting this protocol as well. No special configuration is
required to enable this support. The Connector also supports HTTP/1.0
keep-alive.

RFC 2616 requires that HTTP servers always begin their responses with
the highest HTTP version that they claim to support. Therefore, this
Connector will always return HTTP/1.1 at the beginning of its
responses.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Venkat Raghavan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:24 AM
To: [EMAIL PROTECTED]
Subject: Disable HTTP 1.1

Hi,

I am using Tomcat 4.1. Is it possible to configure Tomcat so that it is
compatible with only HTTP1.0. Basically I want to disable HTTP1.1
functionality. I know it is backward compatible with HTTP1.0, but i
want to
disable HTTP1.1 functionality. If this is not possible, in which
version of
Tomcat is this possible?

Regards,

Venkat



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]



Re: web.xml file problem

2004-06-01 Thread Tim Funk
The dtd (http://java.sun.com/dtd/web-app_2_3.dtd) says that 
welcome-file-list must appear before error-page

-Tim
[EMAIL PROTECTED] wrote:

Hi,
This is my web.xml file. I dont know whats wrong here but my first session
gets expired. When I remove the error-page and welcome file list, then
everything works fine. Am I wrong somewhere?
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
error-page
  error-code404/error-code
  location/CustomErrorPage.jsp/location
/error-page
welcome-file-list
  welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSVC to run tomcat?

2004-06-01 Thread Shapira, Yoav

Hi,
That's mostly right on: I'll add a couple of small things.

As for exactly, I can't say, but my understanding is that jsvc start
the
process, in this case tomcat, then after tomcat has allocated the ports
on
80 and/or 443 the privileges are then change to the level of the user
specified in the startup script.

Yup.  The ports are bound (we prefer that term over allocated for
historical reasons mostly, but it's consistent in the literature) and
then changes the user.  The concept is exactly that of the Unix classic
setuid/seteuid variants (Google for them if you want more background,
e.g. http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf).


Although I have no data to back my opinion, I have seen no slowdown of
the
system or drop in performance. There is no increase in memory or cpu
when
run with jsvc and without. Others may have definitive numbers to
prove/disprove my observations.

In theory there should be no performance difference.  Other than the
port binding hoop at the beginning there are no other layers or calls
added to the JVM's execution at all, hence no performance difference.

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]



RE: QoS in Tomcat?

2004-06-01 Thread Shapira, Yoav

Hi,
As an aside, 5.0.26 will have request processor thread priority settable
as an attribute on the connector.

Definitions of QoS are vast and varied.  Asking where to start is kind
of like asking where to start when you write a constitution ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rui Zhang [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 5:59 PM
To: Tomcat Users List
Subject: Re: QoS in Tomcat?

Good point. I will look into that.

Many thanks.

Rui

On Fri, 28 May 2004, Tim Funk wrote:

 Personally - I would run many instances of tomcat clustered to get
the
 performance you need. It would be much more predictable to maintain.

 -Tim

 Rui Zhang wrote:

  Many thanks, Tim. That at least sounds worth a try... I've got a
valve
  sampling performance data up and running already.
 
  But, Is it sensible we may alter Tomcat to make it QoS-enabled? If
  so, where shall we look at to start?
 
  Best regards,
 
  Rui
 
 
  On Fri, 28 May 2004, Tim Funk wrote:
 
 
 Nope. The spec doesn't spell this out. If your feeling daring, you
could
 write a filter that tries to set and reset the Thread.priorities on
the
fly.
 Then if your JVM pays attention to the thread priorities - you
might
get the
 tweaking you need. (You can also do this in a Valve if you want to
be
lower
 in the stack but I really doubt any of this is useful but its a
great
time
 waster on a cold rainy day)
 
 For example - without all the need try catches ...
 doFilter(...) {
  int newPriority = magicMethodToDeterminePriority(request);
  int oldPriority = currentThread().getPriority();
  currentThread().setPriority(newPriority);
  chain.doFilter();
  currentThread().setPriority(oldPriority );
 }
 
 -Tim
 
 Rui Zhang wrote:
 
 
 Hi all,
 
   Is there any infrastruture availabe (or at least any
possiblities)
in
 Tomcat to tune the QoS requests are receiving?
 
   For instance, is it possible to give differentiated treatments
to
 requests of various importance, by granting them different amount
of
 resources, queueing them differently, etc?
 
   I realise my questions might be a bit vague, as I don't have too
much
 insight about Tomcat. All I'm looking for are some knobs in Tomcat
that we
 can turn to affect its performance, either observed by different
groups of
 requests or by all the requests on a whole. If there are no such
knobs
at
 all, would it be possible to amend the current Tomcat with it?
 
   Any advices (or at least what readings I should do to acquire
that
 knowledge) would be greatly appreciated.


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




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]



RE: Log4j Problem w/Tomcat 5.0.24 and JSVC

2004-06-01 Thread Shapira, Yoav

Hi,
Added to the FAQ (misc section).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 6:12 PM
To: Tomcat Users List
Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC

Ok this time I got it working for sure, note this is specific to
getting
log4j working to log tomcat's classes when launched from jsvc.
1) Download commons-logging.jar and put it in $CATALINA_HOME/bin
2) Download the log4j jar and also put it in $CATALINA_HOME/bin
3) Create your log4j.properties file and put it in
$CATALINA_HOME/common/classes

Here is part of my tomcat jsvc launch script:
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/tomcat
TOMCAT_PROG=tomcat
TOMCAT_USER=tomcat
DAEMON_HOME=/usr/local/daemon
TMP_DIR=/var/tmp
LOG4J_CONFIG=log4j.properties
CLASSPATH=$CLASSPATH:\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
$CATALINA_HOME/bin/commons-logging.jar:\
$CATALINA_HOME/bin/log4j-1.2.8.jar:\
$CATALINA_HOME/common/classes:\

start() {
echo -n Starting tomcat: 
chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat/*
$DAEMON_HOME/jsvc\
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-Dlog4j.configuration=$LOG4J_CONFIG \
-
Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLo
gger \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile $CATALINA_HOME/logs/catalina.out \
-Xmx256m \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap
RETVAL=$?
echo
[ $RETVAL = 0 ]  touch /var/lock/subsys/tomcat
return $RETVAL
}

Hope this helps anyone else who has a nightmare getting the classpath
and
stuff set correctly =)
-David


- Original Message -
From: David Erickson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, May 28, 2004 2:31 PM
Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC


 Believe me I looked through the archives.. this post doesn't work
when
using
 JSVC to launch TC.  And apparently somewhere in the last hour I had
 something working because it generated a console.log but I didn't
notice
it
 and then when i did notice it I had changed stuff and it was broken
again...
 *sigh* lol.
 -David

 - Original Message -
 From: Filip Hanik (lists) [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 2:02 PM
 Subject: RE: Log4j Problem w/Tomcat 5.0.24 and JSVC


  After hours of messing around trying to get the log4j to
initialize
 
  looking in the archives would have saved you hours of work!
 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.ht
ml
 
  Filip
 
 
  -Original Message-
  From: David Erickson [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 28, 2004 2:53 PM
  To: Tomcat Users List
  Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
 
 
  After hours of messing around trying to get the log4j to initialize
with
  tomcat here's what you need to do:
 
  Put the log4j jar file into $CATALINA_HOME/common/lib, and your
  log4j.properties or log4j.xml into $CATALINA_HOME/common/classes.
Then
  modify your tomcat jsvc classpath variable to look something like:
 
  CLASSPATH=$CLASSPATH:\
  $JAVA_HOME/lib/tools.jar:\
  $DAEMON_HOME/dist/commons-daemon.jar:\
  $CATALINA_HOME/bin/bootstrap.jar:\
  $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\
  $CATALINA_HOME/common/classes
 
  And wallah everything will work =)
  -David
 
  - Original Message -
  From: David Erickson [EMAIL PROTECTED]
  To: Tomcat-User List [EMAIL PROTECTED]
  Sent: Friday, May 28, 2004 11:48 AM
  Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC
 
 
   Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup
using
  JSVC.
   My root problem is I am unable to get tomcat's SSL port to run on
443..
   (works peachy on 8443, but when I hit 443 I get nothing it just
hangs
 and
   timesout).  Well anyway I was trying to get Log4j logging to work
so
I
  could
   see if tomcat was outputting anything funny, I stuck the log4j
jar
into
   common/lib, built a log4j.properties file and put it in
common/classes,
  but
   for some reason log4j is not being initializized from that props
file,
 its
   as if common/classes isn't being read.  Here's the file I am
using:
  
   ##
   # Appender Definitions
  
log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender
   log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log
   log4j.appender.ConsoleFile.datePattern='.'-MM-dd
   log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout
   log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c
-
%m%n
  
  
   #
   # Logger Definitions
   log4j.debug=TRUE
   log4j.rootLogger=ERROR, ConsoleFile
   log4j.logger.org.apache=DEBUG, ConsoleFile
   log4j.logger.org.apache.commons=ERROR, ConsoleFile
  
   its not creating my 

RE: Memory problems with Tomcat 4.1.27

2004-06-01 Thread Shapira, Yoav

Hi,
You can check the Sun site and places like javaperformancetuning.com for
papers on heap versus overall app memory.  This has also been addressed
several times on this list, so an archive search might prove
interesting.

You might have a memory leak: run inside a profiler to see if there are
allocated objects still referenced that should be deallocated.  If you
have a leak, the GC will run and run (longer and longer as your heap
grows), but won't be able to collect anything, resulting in the behavior
you describe.

If you can upgrade your JDK, tomcat, and struts versions you will be in
better shape at least as far as receiving support, but also for
debugging.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:02 PM
To: 'Tomcat Users List'
Cc: 'Anand Narasimhan'
Subject: Memory problems with Tomcat 4.1.27

Hi,

I am trying to debug a memory consumption issue with an application. I
would
appreciate any help I can get.

The application I am debugging is a web application written using
j2sdk 1.4.1_02 and struts 1.0.2. The tomcat version I am using is
4.1.27.
The backend has a relational database (sybase/oracle) and the database
access
is through JDBC. The tomcat server is running on Solaris 2.8. The max
heap size
for the JVM (using -Xmx) is set to 512M. I tried increasing it to 1024M
as
well.

The problem is under reasonably large load, the overall process size of
tomcat
(reported by top) keeps increasing and eventually tomcat stops
responding. I
tried running tomcat with OptimizeIt hoping to find out if there are
any
leaks.
When running with OptimizeIt the memory consumption increases much
faster than
when running without OptimizeIt. At this point OptimizeIt reports that
about
300M of heap is being used. But the overall process size is about 900M.

I tried turing on the -Xloggc option. The output of -Xloggc also shows
that
the heap size is well withing the limits. In some cases towards the end
of the
GC log, I noticed that each GC cycle takes about 17 - 20 secs.

Any suggestions regarding how to proceed debugging this problem would
be

greatly appreciated. Are there any docs or any white papers that would
help
understand the relation between the heap and the overall process
memory?

Thanks
Anand


___
_

Anand Narasimhan
[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]



RE: Restricting IPs in Tomcat

2004-06-01 Thread Shapira, Yoav

Hi,
The Remote Address Valve:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
(Also easy to implement as a Filter, but that portability will come at a
performance cost).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, May 31, 2004 7:43 PM
To: [EMAIL PROTECTED]
Subject: Restricting IPs in Tomcat

Hi everyone,

Would anyone know by an chance how to restrict particular IPs e.g.
5.2.*.*
directly in tomcat? I have searched the net but I am unable to find any
resources on this topic. I am aware you can do it in apache but I would
greatly prefer it if you can do it in directly in tomcat somehow. Does
anyone know?

Thanks for your time.

Kindest Regards,
Matt Anderson

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



Re: SSL Client Authorization

2004-06-01 Thread Sander Smith
Doug,
Thanks for your help but this isn't what I need. Yes, I want the client to 
present a certificate for validation during the SSL handshake, but your 
solution is not available to me. You suggest putting something in a config 
file, but I'm running Tomcat embedded, so all of the configuration is 
happening programmatically.

I have a org.apache.coyote.tomcat5.CoyoteConnector and I call 
setKeystoreFile(...), setKeyAlias(...), etc. to set up the server side SSL, 
and this is working great. When I want to request a client certificate I 
would expect to call setClientAuth(...) to do this. However, I'd expect to 
pass a boolean into this method, but instead, the interface requires a 
String!!! To make matters worse, there's no documentation to say what this 
string is.

Does anyone know how to do this programmatically??
Sander Smith
At 08:20 AM 6/1/2004 -0400, you wrote:
Sander,
If what you want is to have the client present a certificate for validation,
then in your connector have something like
clientAuth=true
See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
If you are looking for something different let us know.
Doug
www.parsonstechnical.com

- Original Message -
From: Sander Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 6:29 AM
Subject: SSL Client Authorization
 I'm writing an application with SSL that's been working fine, and would
 like to enable client authorization. It seemed like the thing to do was go
 to my connector (org.apache.coyote.tomcat5.CoyoteConnector) and enable it
 there. Lo and behold there is a method (setClientAuth) that seems to do
 what I want, but for some strange reason it takes a string as an argument
 instead of a boolean. What am I missing here?? How do I enable this?

 Sander Smith



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



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

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


Tomcat group

2004-06-01 Thread Ram Mahajan
Can someone tell me which email address I need to use to unsubscribe from
this group ?

Thanks
Ram


Re: Tomcat starts poorly on Windows XP

2004-06-01 Thread Jacob Kjome
I suggest extracting Tomcat to a directory path with no spaces.  Tomcat 
*should* work with spaces in the path, but experience tells me to avoid this.

Jake
At 08:27 AM 6/1/2004 -0400, you wrote:
The problem continues with both jakarta-tomcat-5.0.24.exe and 
jakarta-tomcat-5.0.24.zip.

At 12:41 AM 5/27/2004, Joel Shprentz wrote:
A search of the tomcat-user archives suggests that this is a new way
for Tomcat to start poorly on Windows XP.
Below is stdout.log after a clean install of 
j2sdk-1_4_2_04-windows-i586-p.exe
and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system.  I started
Tomcat from the Configure Tomcat application.

...
May 26, 2004 1:12:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 26, 2004 1:12:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2937 ms
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.24
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 26, 2004 1:12:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:D:\Projects\Tomcat 
5.0\conf\Catalina\localhost\admin.xml
May 26, 2004 1:12:55 AM org.apache.struts.util.MessageResourcesFactory 
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspException
at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
...
--
Joel Shprentz  (703) 478-9668
1516 Park Glen Court   [EMAIL PROTECTED]
Reston, VA 20190
-
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: Tomcat group

2004-06-01 Thread Adam Buglass
I have an idea - check the mail archives...  ;-)

There should be an address in the footer at the bottom of this message.
Make sure you click the one to unsubscribe to the list, not the digest.

Adam.

On Tue, 2004-06-01 at 14:29, Ram Mahajan wrote:
 Can someone tell me which email address I need to use to unsubscribe from
 this group ?
 
 Thanks
 Ram


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



mod_jk2 + tomcat 5.0 stucks on IIS

2004-06-01 Thread Valter G. Nogueira Jr.
I have installed mod_jk2 to connect tomcat 5.0 and IIS 5.0.

Everything appears to be correct but it doesn't work - of course since I am posting 
this :)

When I try to open a tomcat served page, IE waits it for long time and can't open the 
page. Pointing to any page else, IIS serves it as expected.

Tomcat log is 

31/05/2004 15:01:48 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
31/05/2004 15:01:48 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/201  config=E:\Apache Software Foundation\Tomcat 
5.0\conf\jk2.properties

Thanks

Valter

Deployment Issue

2004-06-01 Thread McClure, Timothy J\(GE Infrastructure\)
We need to have the ability for third parties to deploy their application underneath 
ours (in the same webapp directory structure).  I would like to specify that each 
third party place there jar files under the lib directory as lib/application_name.  Is 
it possible to do this?  Will Tomcat discover jars placed in directories below the 
application's lib directory, is there a better way to do this?

Tim McClure


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



RE: RequestDispatcher in jspInit() ?

2004-06-01 Thread Jerry Miernik
  Tim, thanks. 
  Then, is it possible to use jsp:... tags inside jspInit()?
  I am asking because it seems possible to use a JavaBean inside 
  jspInit(). However, usage of a JavaBean has to be declared with
  jsp:useBean ..., and executed with, for example, 
  jsp:setProperty   Is there a syntax, I am missing, that
  enables usage of a JavaBean inside jspInit()?
  Thanks,
  Jerry.



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 7:08 AM
To: Tomcat Users List
Subject: Re: RequestDispatcher in jspInit() ?

No
-Tim

Jerry Miernik wrote:
   Is it possible to use RequestDispatcher's include method
   inside a jspInit(), to execute another JSP script while
   this JSP script is in its jspInit() method? 
   Thanks,
   Jerry.
-
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: RequestDispatcher in jspInit() ?

2004-06-01 Thread Tim Funk
You can use JavaBeans in jspInit. But jsp:anything requires a pageContext 
to operate on. A pageContext doesn't exist (isn't avialble) during jspInit().

If you wish to set properties, you'll need to use the servletConfig object. 
From there, you can access the ServletContext(all via java code - no tags)

-Tim
Jerry Miernik wrote:
  Tim, thanks. 
  Then, is it possible to use jsp:... tags inside jspInit()?
  I am asking because it seems possible to use a JavaBean inside 
  jspInit(). However, usage of a JavaBean has to be declared with
  jsp:useBean ..., and executed with, for example, 
  jsp:setProperty   Is there a syntax, I am missing, that
  enables usage of a JavaBean inside jspInit()?
  Thanks,
  Jerry.


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 7:08 AM
To: Tomcat Users List
Subject: Re: RequestDispatcher in jspInit() ?

No
-Tim
Jerry Miernik wrote:
 Is it possible to use RequestDispatcher's include method
 inside a jspInit(), to execute another JSP script while
 this JSP script is in its jspInit() method? 
 Thanks,
 Jerry.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: ErrorPage.jsp - how to get the address of the offending page?

2004-06-01 Thread Mike Curwen
Yes, that would be the reason.  From the corresponding section of the
spec for servlet 2.2:

If the location of the error handler is a servlet or a JSP, the
following
request attributes can be set:
. javax.servlet.error.status_code
. javax.servlet.error.exception_type
. javax.servlet.error.message
 
So you'd need tomcat 4 and above for javax.servlet.error.request_uri
 

 -Original Message-
 From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 01, 2004 3:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: ErrorPage.jsp - how to get the address of the 
 offending page?
 
 
 
  Does the request attribute
  javax.servlet.error.request_uri  suit your needs ?
  (from the servlet spec, SRV.9.9.1)
 
 Actually returns null. I'm using Tomcat 3; Could that
 be the reason?
 
 Here's my snippet:
 
 %@ page isErrorPage=true%
 % 
 System.out.println(request.getAttribute(javax.servlet.error.r
 equest_uri));
 
 %
 
 
 


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



Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-01 Thread Mark Lowe
Been fine up until now.
I want to limit the ram assigned to each webapp, but if this is the 
wrong way of doing this then I'd appreciate being told what the correct 
argument would be.

The only out of memory problems I had were caused by some shadiness 
between jk and coyote. but seems to be sorted now.

Thanks
Mark
On 1 Jun 2004, at 14:16, [EMAIL PROTECTED] wrote:
Hi Mark,
This option
-Xmx128m
Will cause OutOfMemory for you,
As it basically sets maximum Java heap size, which will cause JVM to
through whenever the limit is reached. Set it to a high value.
Chall,
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:55 PM
To: Tomcat Users List
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass
I have this in our startup scripts
export CATALINA_OPTS=-Djava.awt.headless=true -Xmx128m -Xdebug
Perhaps the debug argument might reveal something. I cant be much help
on windows matters as I try not to get involved with anything like 
that.

My app is still running, but linux not windows so i don't know how far 
i
can compare. I also have no idea about compiling jk under windows, i've
always found that I've needed to compile jk often with the head version
out of cvs (there's always a fix thats needed somewhere).

Mark
On 1 Jun 2004, at 13:05, James Sherwood wrote:
Ran out of memory last night again
Set to 512m and ran out at 284m
Maybe I am missing a paramater in the tomcat setup on windows or
something
Frustrating
James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 4:04 PM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

300 mb sounds a lot, i've got a hibernate and struts flavored app
running with a 128 limit, and thats being generous.
I haven't measured anything but top looks happy, with 5.0.25 with jk
to apache 2.0.47. Had a bit of traffic this afternoon albeit nothing
heavy, had 5 simultaneously this afternoon. But nothing huge.
Mark
On 31 May 2004, at 17:54, James Sherwood wrote:
Thanks Mark,
I have it currently running bypassing the mod_jk with rewrite to
port 8080.
The memory has ramped to 327 mb so far which is not anything to
worry about.
I had this problem on our linux box but I had forgotten the -server
option and that took care of it.
The problem is, windows doesnt accept -server.
Ill continue to monitor it with the mod_jk bypass in.
James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 12:19 PM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

I've just set 5.0.25 up and it will run with mod_jk/1.2.3-dev and
Apache/2.0.47 , I'll see if i get the same thing happening.
When i was having problems i was getting a decoding error written
to catalina log, which 5.0.24+ hasn't given me. 5.0.24 has been
working quite happily but the next man mentioned a session error so

I took his word for it and upgraded.
You could have tomcat being served from an ip alias, but will
depend on you configuration. And might take longer than getting jk
sorted.
For the moment I can just say i'll keep and eye on things and see
if the same happens to me.
Mark
On 31 May 2004, at 14:23, James Sherwood wrote:
There are no errors anywhere that I can find in any logs.  The
memory just slowly ramps up till an out of memory error happens.
James
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 31, 2004 9:04 AM
Subject: Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

What does your catalina log have to say for itself?

On 31 May 2004, at 13:59, James Sherwood wrote:
As I posted before, I get a memory leak using mod_jk 1.2 with
Tomcat
5.0.25
and Apache 2.049
I beleive it may be related to the mod_jk connector and since I
am not actually serving up anything with apache yet I want to
just bypass the connector for 1 site and hit tomcat directly. I
have to use apache for other things on the server so I cannot
just use tomcat.
Any idea the best route for this? (of course a fix for the leak
is the best
route:)
My route works but certian urls within the site do not
work(although I think I could get them working).
The way I have done it is this:
VirtualHost *
ServerName mysite.ca
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mysite\.ca$ [NC]
RewriteRule ^(.*) http://localhost:8080$1 [p]
/VirtualHost

Thanks, James


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


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



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



newbie with problems

2004-06-01 Thread Nina Aschenbrenner
We have written some Servlets which should be invoked by a push dll getting the url 
from a irda beacon.
problem is that our beacon can't manage to save the whole path.
we tried to create a new context for our servlet, so it should be invoked via 
ip-adress:portnumber but that didn't work.
can anyone give advice?

jkstatus - what does it all mean?

2004-06-01 Thread Chad Morris

Does anyone where a doc exists that explains the jkstatus page for mod_jk2 ver. 2.0.4?


This e-mail and any files transmitted with it are confidential and are intended solely 
for the use of the individual or entity to whom it is addressed.  If you are not the 
intended recipient or the person responsible for delivering the e-mail to the intended 
recipient, be advised that you have received this e-mail in error, and that any use, 
dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you received this e-mail in error, please return the e-mail to the sender and 
delete it from your computer. Although our company attempts to sweep e-mail and 
attachments for viruses, it does not guarantee that either are virus-free and accepts 
no liability for any damage sustained as a result of viruses.

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



RE: Clustering / Load Balancer / Session Cookie

2004-06-01 Thread Dale, Matt

Just a quick post to say thanks, we went live using pen and 3 clustered instances of 
5.0.25 today and its working a treat. Load is spread almost perfectly. The only 
feature I would have as a nice to have would be to apply wieghtings to the target 
hosts but other than that spot on and no problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions where the 
cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser (ie user).

the easiest way is to use a hardware load balancer. I've use this approach a couple 
times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and have a simple 
test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and forth as it 
should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm stumped, 
I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was clutching at 
straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs






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

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.



Re: SSL Client Authorization

2004-06-01 Thread Jim Hopp
According to this link 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

possible values are true, want, and (I presume) false.
I use client authentication in (non-embedded) Tomcat, and true does 
indeed require client authentication.

-Jim
Sander Smith wrote:
Doug,
Thanks for your help but this isn't what I need. Yes, I want the client 
to present a certificate for validation during the SSL handshake, but 
your solution is not available to me. You suggest putting something in a 
config file, but I'm running Tomcat embedded, so all of the 
configuration is happening programmatically.

I have a org.apache.coyote.tomcat5.CoyoteConnector and I call 
setKeystoreFile(...), setKeyAlias(...), etc. to set up the server side 
SSL, and this is working great. When I want to request a client 
certificate I would expect to call setClientAuth(...) to do this. 
However, I'd expect to pass a boolean into this method, but instead, the 
interface requires a String!!! To make matters worse, there's no 
documentation to say what this string is.

Does anyone know how to do this programmatically??
Sander Smith
At 08:20 AM 6/1/2004 -0400, you wrote:
Sander,
If what you want is to have the client present a certificate for 
validation,
then in your connector have something like

clientAuth=true
See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
If you are looking for something different let us know.
Doug
www.parsonstechnical.com

- Original Message -
From: Sander Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 6:29 AM
Subject: SSL Client Authorization
 I'm writing an application with SSL that's been working fine, and would
 like to enable client authorization. It seemed like the thing to do 
was go
 to my connector (org.apache.coyote.tomcat5.CoyoteConnector) and 
enable it
 there. Lo and behold there is a method (setClientAuth) that seems to do
 what I want, but for some strange reason it takes a string as an 
argument
 instead of a boolean. What am I missing here?? How do I enable this?

 Sander Smith



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




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


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


Error: Unexpected Signal

2004-06-01 Thread Malai
Hi.,
I have a native dll and i'm trying to access in my web application.
I'm getting this below error.I did use the differnent jvm but no luck.

My environements are Tomcat 4.1.29 ,Windows 2000 , J2SDK 1.4.2_03

Can any one look in to this and share your ideas please.

Thanks.,
MALAI

ERROR:-

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at
PC=0x77F8206B
Function=RtlEnterCriticalSection+0xB
Library=C:\WINNT\system32\ntdll.dll

Current Java thread:
 at com.sentori.common.interfaces.zp4.ZP4Interface.JAVAAVSValidate(Native
Method)
 at
com.sentori.common.interfaces.zp4.ZP4Interface.validate(ZP4Interface.java:84
)
 - locked 0x149f1758 (a java.lang.Class)
 at
com.sentori.struts.action.PostAddressValidation.execute(PostAddressValidatio
n.java:47)
 at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
 at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
0x0040 - 0x00406000  C:\_Java\1_SDK\1.4.2_03\bin\java.exe
0x77F8 - 0x77FFD000  C:\WINNT\system32\ntdll.dll
0x7C2D - 0x7C332000  C:\WINNT\system32\ADVAPI32.dll
0x7C57 - 0x7C628000  C:\WINNT\system32\KERNEL32.DLL
0x77D3 - 0x77DA1000  C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78045000  C:\WINNT\system32\MSVCRT.dll
0x0800 - 0x08138000  C:\_Java\1_SDK\1.4.2_03\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000  C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7E000  C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A  C:\WINNT\system32\WINMM.dll
0x1000 - 0x10007000  C:\_Java\1_SDK\1.4.2_03\jre\bin\hpi.dll
0x007C - 0x007CE000  C:\_Java\1_SDK\1.4.2_03\jre\bin\verify.dll
0x007D - 0x007E9000  C:\_Java\1_SDK\1.4.2_03\jre\bin\java.dll
0x007F - 0x007FD000  C:\_Java\1_SDK\1.4.2_03\jre\bin\zip.dll
0x1888 - 0x1888F000  C:\_Java\1_SDK\1.4.2_03\jre\bin\net.dll
0x7503 - 0x75044000  C:\WINNT\system32\WS2_32.dll
0x7502 - 0x75028000  C:\WINNT\system32\WS2HELP.DLL
0x782C - 0x782CC000  C:\WINNT\System32\rnr20.dll
0x7798 - 0x779A4000  

RE: Clustering / Load Balancer / Session Cookie

2004-06-01 Thread Kommuru, Bhaskar
Dale,

Is it better than mod_jk2?

Thanks

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







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


__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has 

JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Ashwin Desai
Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using
commons daemon - jsvc on a linux machine.

uname -a 
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46
MDT 2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried
again. 

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper
permissions to bind to port 80. 

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions
??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




__
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: Error: Unexpected Signal

2004-06-01 Thread Jagsir.Dhillon
Try running with '-verbose:jni' option for more information (I used the
tiger release) 


-Original Message-
From: Malai [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 8:30 PM
To: Tomcat Users List
Subject: Error: Unexpected Signal 

Hi.,
I have a native dll and i'm trying to access in my web application.
I'm getting this below error.I did use the differnent jvm but no luck.

My environements are Tomcat 4.1.29 ,Windows 2000 , J2SDK 1.4.2_03

Can any one look in to this and share your ideas please.

Thanks.,
MALAI

ERROR:-

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at
PC=0x77F8206B Function=RtlEnterCriticalSection+0xB
Library=C:\WINNT\system32\ntdll.dll

Current Java thread:
 at
com.sentori.common.interfaces.zp4.ZP4Interface.JAVAAVSValidate(Native
Method)
 at
com.sentori.common.interfaces.zp4.ZP4Interface.validate(ZP4Interface.jav
a:84
)
 - locked 0x149f1758 (a java.lang.Class)  at
com.sentori.struts.action.PostAddressValidation.execute(PostAddressValid
atio
n.java:47)
 at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
oces
sor.java:484)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
274)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onne
ction(Http11Protocol.java:549)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.jav
a:666)
 at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
0x0040 - 0x00406000  C:\_Java\1_SDK\1.4.2_03\bin\java.exe
0x77F8 - 0x77FFD000  C:\WINNT\system32\ntdll.dll 0x7C2D -
0x7C332000  C:\WINNT\system32\ADVAPI32.dll 0x7C57 - 0x7C628000
C:\WINNT\system32\KERNEL32.DLL 0x77D3 - 0x77DA1000
C:\WINNT\system32\RPCRT4.DLL 0x7800 - 0x78045000
C:\WINNT\system32\MSVCRT.dll 0x0800 - 0x08138000
C:\_Java\1_SDK\1.4.2_03\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000  C:\WINNT\system32\USER32.dll 0x77F4 -
0x77F7E000  C:\WINNT\system32\GDI32.DLL 0x7757 - 0x775A
C:\WINNT\system32\WINMM.dll 0x1000 - 0x10007000
C:\_Java\1_SDK\1.4.2_03\jre\bin\hpi.dll
0x007C - 0x007CE000  C:\_Java\1_SDK\1.4.2_03\jre\bin\verify.dll
0x007D - 0x007E9000  C:\_Java\1_SDK\1.4.2_03\jre\bin\java.dll
0x007F - 0x007FD000  

Starting Tomcat as service with VMWare

2004-06-01 Thread Weseloh, Nicole
Hi everybody,

in order to simulate a Tomcat-cluster, I've got VMWare running at my system (both host 
and virtual system are WinXP Pro), also running Tomcat 5.0.19 at the host system. I 
tried to install Tomcat at the virtual system, too, but failed: I can only start it 
via startup.bat - it opens a dosbox (command box) which shows the startup log and 
also all standard output messages, and my webapp works fine - exactly what it is 
supposed to do. 
But when I try to run Tomcat as a service, it cancels startup with errormessage 
Service not found. Is there something I forgot to configure, or is it just 
impossible to run Tomcat as a service with VMWare? 
If someone's got a hint, please let me know.. 

Thanks, Nicole

PS: If someone could tell me how to run Tomcat not as a service and write output 
messages to standard output file instead of the command box, that would be of great 
help, too.. 






Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.

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]



RE: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Shapira, Yoav

Hi,
Well, you run jsvc as root and it the changes itself the tomcat user.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Ashwin Desai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:10 AM
To: Tomcat Users List
Subject: JSVC problems with Tomcat 5.0.19  Linux

Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using
commons daemon - jsvc on a linux machine.

uname -a
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46
MDT 2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried
again.

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper
permissions to bind to port 80.

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions
??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




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




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]



RE: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Jagsir.Dhillon
Unix system (even Linux) does not allow normal users to bind at ports
1024,

Use some port number 1024 or you need to configure your user for
permission to bind to a port 1024.

Changa fer.


-Original Message-
From: Ashwin Desai [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 8:40 PM
To: Tomcat Users List
Subject: JSVC problems with Tomcat 5.0.19  Linux

Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using commons
daemon - jsvc on a linux machine.

uname -a
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46 MDT
2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried
again. 

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper
permissions to bind to port 80. 

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions ??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




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



Re: Tomcat 5: default unpackWARs bahaviour?

2004-06-01 Thread john cho
Hi,
I have war file to be deployed at /webapps.  However, if i don't have a
ending / at the end of docBase and path, it does not expand.  So, one of
the admins puts / at the end of docBase and path attriubtes in the
Context, it starts to expand, however, it has been creating another
problems.

I am guessing it might be relate to xml parser issue.  If anybody has the
same problems and can share the thought and solutions, I would appreciate it
very much.

thanks,


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, May 28, 2004 8:54 AM
Subject: RE: Tomcat 5: default unpackWARs bahaviour?



Hi,
Don't rely on a default value for unpackWARs: put it in your
instructions that it must be true, because that's a place where your
webapp deviates from the Servlet Specification (which only requires
containers to support packed WARs).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Simon Brooke [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 6:28 AM
To: 'Tomcat Users List'
Subject: Tomcat 5: default unpackWARs bahaviour?

-BEGIN PGP SIGNED MESSAGE-

I'm busy writing installation instructions for a webapp, and I've just
had
my
first draft sent back to me as 'much too technical and complex'.

For the webapp to work, I need 'unpackWARs' to be true in the
server.xml
file.
A lot of Tomcat 4 distributions I've seen (including the Debian one,
which
I
mostly use) come with 'unpackWARs' false.

In the 5.0.24 binary tarball I've downloaded from jakarta.apache.org
unpackWARs is true. Is this policy? Can I rely on unpackWARs being true
in
Tomcat 5 distributions downloaded from jakarta.apache.org? If so it
makes
my
installation instructions much simpler.

Cheers

Simon

- --
[EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/

 Tony Blair's epitaph, #1: Here lies Tony Blair.
 Tony Blair's epitaph, #2: Trust me.

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQCVAwUBQLcUO3r1UrYJMbiJAQFugQQAkgVMzf5onkPS/CUThcCXqEQnj3HdXVBZ
QSq6gD0DUt8/wwWkVCbcFEU6nCE7884KzTXc3JDLd58G1qcP7lPwfnTon5eR8Zzr
TF0vBzuPto2bJDCXGrBttOWFuNco1YFfMTu3wJYRSAJkyYBfmoX0LHEWR5s9fNfC
tyhtCVnH2a8=
=LGgP
-END PGP SIGNATURE-

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


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



RE: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Shapira, Yoav

Hi,
I suggest you read about JSVC or otherwise inform yourself about the
tool before making that general port 1024 statement ;)  JSVC is intended
exactly to allow non-root users to run tomcat on ports  1024.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux

Unix system (even Linux) does not allow normal users to bind at ports
1024,

Use some port number 1024 or you need to configure your user for
permission to bind to a port 1024.

Changa fer.


-Original Message-
From: Ashwin Desai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 8:40 PM
To: Tomcat Users List
Subject: JSVC problems with Tomcat 5.0.19  Linux

Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using
commons
daemon - jsvc on a linux machine.

uname -a
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46
MDT
2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried
again.

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper
permissions to bind to port 80.

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions ??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




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




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]



Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Kommuru, Bhaskar
Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where). 
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







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


__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this 

Re: Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Filip Hanik - Dev
Any clues on sorting this problem alternately?
don't start apache until tomcat is up and running

- Original Message -
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 10:15 AM
Subject: Jk2 compiling problem sorted ..Do you know.. How?


Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where).
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







-
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: Error: Unexpected Signal

2004-06-01 Thread Kommuru, Bhaskar
Check this native lib needs auhentication before you access/ if it itself
have read permissions?

Ohh... those native calls are very frustrating. Some times problems are very
intermittent and can not reproduce.


-Original Message-
From: Malai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 5:00 PM
To: Tomcat Users List
Subject: Error: Unexpected Signal 


Hi.,
I have a native dll and i'm trying to access in my web application.
I'm getting this below error.I did use the differnent jvm but no luck.

My environements are Tomcat 4.1.29 ,Windows 2000 , J2SDK 1.4.2_03

Can any one look in to this and share your ideas please.

Thanks.,
MALAI

ERROR:-

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at
PC=0x77F8206B
Function=RtlEnterCriticalSection+0xB
Library=C:\WINNT\system32\ntdll.dll

Current Java thread:
 at com.sentori.common.interfaces.zp4.ZP4Interface.JAVAAVSValidate(Native
Method)
 at
com.sentori.common.interfaces.zp4.ZP4Interface.validate(ZP4Interface.java:84
)
 - locked 0x149f1758 (a java.lang.Class)
 at
com.sentori.struts.action.PostAddressValidation.execute(PostAddressValidatio
n.java:47)
 at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
 at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
0x0040 - 0x00406000  C:\_Java\1_SDK\1.4.2_03\bin\java.exe
0x77F8 - 0x77FFD000  C:\WINNT\system32\ntdll.dll
0x7C2D - 0x7C332000  C:\WINNT\system32\ADVAPI32.dll
0x7C57 - 0x7C628000  C:\WINNT\system32\KERNEL32.DLL
0x77D3 - 0x77DA1000  C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78045000  C:\WINNT\system32\MSVCRT.dll
0x0800 - 0x08138000  C:\_Java\1_SDK\1.4.2_03\jre\bin\client\jvm.dll
0x77E1 - 0x77E75000  C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7E000  C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A  C:\WINNT\system32\WINMM.dll
0x1000 - 0x10007000  C:\_Java\1_SDK\1.4.2_03\jre\bin\hpi.dll
0x007C - 0x007CE000  C:\_Java\1_SDK\1.4.2_03\jre\bin\verify.dll
0x007D - 

RE: Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Kommuru, Bhaskar
Any clues on sorting this problem alternately?
don't start apache until tomcat is up and running
In case if tomcat mechine failed some reason and needs to be restarted?

- Original Message -
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 10:15 AM
Subject: Jk2 compiling problem sorted ..Do you know.. How?


Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where).
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







-
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: Clustering / Load Balancer / Session Cookie

2004-06-01 Thread Dale, Matt

It depends what you mean by better.

We have not thoroughly benchmarked it but I believe the throughput it better with pen 
as it is much simpler in many ways. JK2 allows you finer grained control over 
individual contexts. Pen just redirects TCP/IP packets where with JK2 you have to go 
through apache, then communicate to the tomcat with the AJP1.3 protocol. 

For our uses pen was a better option, even more so once the cluster farming is 
implemented but in your environment this may not be the case. I would always advise 
trying many different options and going with the best one for your needs.

Ta
Matt

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: 01 June 2004 16:08
To: 'Tomcat Users List'
Subject: RE: Clustering / Load Balancer / Session Cookie


Dale,

Is it better than mod_jk2?

Thanks

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







-
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: Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Dale, Matt

You asked about pen in my other thread, it could take care of this for you in that you 
could blacklist the failed server for a period of time so that no requests are 
directed to it.

I dont know how well JK2 handles failover but perhaps you could have another 
workers2.properties that didnt include the failed server, then you can switch it in 
and kill -HUP apache to reread the config files. This will allow you the time to get 
the tomcat back up before using the original workers2.properties again and another 
kill -HUP.

Ta
Matt

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: 01 June 2004 16:26
To: 'Tomcat Users List'
Subject: RE: Jk2 compiling problem sorted ..Do you know.. How?


Any clues on sorting this problem alternately?
don't start apache until tomcat is up and running
In case if tomcat mechine failed some reason and needs to be restarted?

- Original Message -
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 10:15 AM
Subject: Jk2 compiling problem sorted ..Do you know.. How?


Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where).
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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 

Re: Memory problems with Tomcat 4.1.27

2004-06-01 Thread john cho
There could be many issues related with this kind of problems.
1.  Based upon your large loading process, check your database with your dba
such as how many open cursors and so on.
2.  u did not close each connection, statement, resultset and it keeps
building up.
3.  I guess u are looping thru the loading.   During the looping, close any
loose hole.


once u identify any one of those, i can help u further.

- Original Message - 
From: Anand Narasimhan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: 'Anand Narasimhan' [EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:02 PM
Subject: Memory problems with Tomcat 4.1.27


 Hi,

 I am trying to debug a memory consumption issue with an application. I
 would
 appreciate any help I can get.

 The application I am debugging is a web application written using
 j2sdk 1.4.1_02 and struts 1.0.2. The tomcat version I am using is
 4.1.27.
 The backend has a relational database (sybase/oracle) and the database
 access
 is through JDBC. The tomcat server is running on Solaris 2.8. The max
 heap size
 for the JVM (using -Xmx) is set to 512M. I tried increasing it to 1024M
 as
 well.

 The problem is under reasonably large load, the overall process size of
 tomcat
 (reported by top) keeps increasing and eventually tomcat stops
 responding. I
 tried running tomcat with OptimizeIt hoping to find out if there are any
 leaks.
 When running with OptimizeIt the memory consumption increases much
 faster than
 when running without OptimizeIt. At this point OptimizeIt reports that
 about
 300M of heap is being used. But the overall process size is about 900M.

 I tried turing on the -Xloggc option. The output of -Xloggc also shows
 that
 the heap size is well withing the limits. In some cases towards the end
 of the
 GC log, I noticed that each GC cycle takes about 17 - 20 secs.

 Any suggestions regarding how to proceed debugging this problem would be

 greatly appreciated. Are there any docs or any white papers that would
 help
 understand the relation between the heap and the overall process memory?

 Thanks
 Anand


 

 Anand Narasimhan
 [EMAIL PROTECTED]




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



Re: Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Filip Hanik - Dev
In case if tomcat mechine failed some reason and needs to be restarted?
shutdown apache too(cronjob to check), and have your loadbalancer go to another machine


- Original Message -
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 10:25 AM
Subject: RE: Jk2 compiling problem sorted ..Do you know.. How?


Any clues on sorting this problem alternately?
don't start apache until tomcat is up and running
In case if tomcat mechine failed some reason and needs to be restarted?

- Original Message -
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 10:15 AM
Subject: Jk2 compiling problem sorted ..Do you know.. How?


Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where).
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs





RE: Jk2 compiling problem sorted ..Do you know.. How?

2004-06-01 Thread Dale, Matt

For future info you're almost always better off with all the GNU tools for apache 
products. The tools supplied with solaris dont always work as well as they should.

Ta
Matt

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: 01 June 2004 16:16
To: 'Tomcat Users List'
Subject: Jk2 compiling problem sorted ..Do you know.. How?


Hi Dale and Igor

Thanks for helping me out. At last we sorted our jk2 connector compilation.
There was a problem with our Make command that came with solaris2.8. I
have down loaded latest and it worked smoothly.

Now web application (in tomcat) availability is the problem! While tomcat is
still loading, mod_jk directs the calls to tomcat and web-app is not ready
yet. I see this is a missing feature from ajp13 (documented some where). 
Any clues on sorting this problem alternately?

Cheers
Bhaskar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:50 PM
To: Tomcat Users List
Subject: RE: Clustering / Load Balancer / Session Cookie



Just a quick post to say thanks, we went live using pen and 3 clustered
instances of 5.0.25 today and its working a treat. Load is spread almost
perfectly. The only feature I would have as a nice to have would be to
apply wieghtings to the target hosts but other than that spot on and no
problems whatsoever so far.

Ta
Matt

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 15:47
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie


http://siag.nu/pen
http://balance.sourceforge.net

pen is my favorite, performs best and works on both windows and unix

Filip
- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:51 AM
Subject: RE: Clustering / Load Balancer / Session Cookie


Thanks for the quick reply.

So the supplied tomcat load balancer isnt of any use for stateful sessions
where the cluster is spread accross several machines?

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 14:44
To: Tomcat Users List
Subject: Re: Clustering / Load Balancer / Session Cookie



to paraphrase, you want to have it look like the same machine to the browser
(ie user).

the easiest way is to use a hardware load balancer. I've use this approach a
couple times in the past and it works well.

peter lin



Dale, Matt [EMAIL PROTECTED] wrote:

Hi,

I'm currently testing a setup up on 3 machines.

2 have tomcat 5.0.19, these 2 are clustered with session replication and
have a simple test app.

The other, also 5.0.19, runs the supplied balancer app.

I've written a simple round robin rule which passes the requests back and
forth as it should, I can see the sessions being
replicated fine in the logs so all is ok there.

BUT my problem is accessing the same session on both machines. Basically I'm
stumped, I know its not accessing the same session
because the redirected URL is different but how can I get around this?

I've tried a using an HTML frame on the balancer machine but that was
clutching at straws and obviously didnt work.

Any ideas would be appreciated.

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]

-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs







-
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: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Jagsir.Dhillon
Hi Yoav Shapira,

Look into a simple unix administration book 
 - for granting rights for ports(binding) to non-root user and u might
save some time (may be money too) for this tool. 

Regards,
Jagsir

-- Thanks lord for giving some of us a bit lateral thinking.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 8:49 PM
To: Tomcat Users List
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux


Hi,
I suggest you read about JSVC or otherwise inform yourself about the
tool before making that general port 1024 statement ;)  JSVC is intended
exactly to allow non-root users to run tomcat on ports  1024.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux

Unix system (even Linux) does not allow normal users to bind at ports 
1024,

Use some port number 1024 or you need to configure your user for 
permission to bind to a port 1024.

Changa fer.


-Original Message-
From: Ashwin Desai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 8:40 PM
To: Tomcat Users List
Subject: JSVC problems with Tomcat 5.0.19  Linux

Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using
commons
daemon - jsvc on a linux machine.

uname -a
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46
MDT
2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried 
again.

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper 
permissions to bind to port 80.

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions ??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




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




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]




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



wc_get_worker_for_name, done did not found a worker - Plea for help

2004-06-01 Thread Barry Roberts
I'm getting desperate to get mod_jk working in apache on RHES 3 talking
to tomcat 5.0.19 on (another) RHES3.  I'm getting the error from the
subject line if I set JkLogLevel to debug.  In the browser I see 500's
for ANY servlet.

I've tried the RHES3 apache2 rpms (httpd-2.0.46-25.ent), building
apache2 from source (2.0.49), building apache1 from source (1.3.31),
with mod_jk static or DSO.  Always the same thing.

I've played with the permissions on the workers.properties to world
readable, writable, and even executable.  I strace'd httpd and it
appears to successfully read the file (strace output below).

I even copied a known workers.properties from a production web server
(apache 2.0.43 built from source on Solaris) and it does the same
thing.  So I'm reasonably sure it's not a problem with the
workers.properties file itself.

I built mod_jk from the
jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz tarball which
creates a jakarta-tomcat-connectors-jk-1.2.5-src directory.

I built my own version of mod_jk that logs in the map_get function in
jk_map.c and it appears that the map passed in the parameter jk_map_t *m
is null.  I've been trying to figure out why, and I'm just about stuck.

I have also tried mod_jk2 (with a workers2.properties) and it works
under low load.  Even with only 3 thread in siege I get Broken Pipe
errors in the tomcat logs and AjpGetReply errors in the jk logs.  I
think this is similar to bugs 28790 and/or 28532.  We also saw this in
our production servers, and our customers were seeing pages that just
never finished loading until we switched back to jk1.  So I could use
jk2 if I knew how to get around that, but jk1 would do, too.

Relevant (I think) strace output:

stat64(/usr/local/apache/conf/workers.properties,
{st_mode=S_IFREG|0777, st_size=788, ...}) = 0
read(3, , 4096)   = 0
close(3)= 0
munmap(0xb75ea000, 4096)= 0

from httpd.conf:

JkWorkersFile   /usr/local/apache/conf/workers.properties
JkLogFile   /var/log/mod_jk-a13.log
JkLogLevel  debug
JkMount /apps/* lb

workers.properties:
worker.list=xsappa

worker.xsappa.port=139
worker.xsappa.host=192.168.2.40
worker.xsappa.type=ajp13
worker.xsappa.lbfactor=1


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



RE: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Shapira, Yoav

Hi,
I'll make sure to check this out.  Maybe all of us just wasted time
creating this tool since we apparently don't know simple unix
administration ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:40 AM
To: [EMAIL PROTECTED]
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux

Hi Yoav Shapira,

Look into a simple unix administration book
 - for granting rights for ports(binding) to non-root user and u might
save some time (may be money too) for this tool.

Regards,
Jagsir

-- Thanks lord for giving some of us a bit lateral thinking.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 8:49 PM
To: Tomcat Users List
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux


Hi,
I suggest you read about JSVC or otherwise inform yourself about the
tool before making that general port 1024 statement ;)  JSVC is
intended
exactly to allow non-root users to run tomcat on ports  1024.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: RE: JSVC problems with Tomcat 5.0.19  Linux

Unix system (even Linux) does not allow normal users to bind at ports
1024,

Use some port number 1024 or you need to configure your user for
permission to bind to a port 1024.

Changa fer.


-Original Message-
From: Ashwin Desai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 8:40 PM
To: Tomcat Users List
Subject: JSVC problems with Tomcat 5.0.19  Linux

Hi,

I am trying to get Tomcat 5.0.19 to run as a non-root user using
commons
daemon - jsvc on a linux machine.

uname -a
Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23 09:21:46
MDT
2003 ia64 unknown

I got the following error in the log file

syscall failed in set_caps
service exits with a value of 4

After looking at a few solutions on the internet, I commented out the
set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and tried
again.

Now, tomcat started properrly but had problems binding to port 80
(java.net.BindException)

It looks like these set_caps() calls are needed to get the proper
permissions to bind to port 80.

/* set capabilities enough for binding port 80 setuid/getuid */
if (set_caps(CAPS)!=0)
return(-1);

Anyone else has seen this problem before. Any suggestions/solutions ??

Thanks a lot in advance.

Ashwin.

=
Ashwin Desai.




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




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]




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



RE: ErrorPage.jsp - how to get the address of the offending page?

2004-06-01 Thread Dola Woolfe
So am I out of luck or is there an alternative way?


--- Mike Curwen [EMAIL PROTECTED] wrote:
 Yes, that would be the reason.  From the
 corresponding section of the
 spec for servlet 2.2:
 
 If the location of the error handler is a servlet or
 a JSP, the
 following
 request attributes can be set:
 . javax.servlet.error.status_code
 . javax.servlet.error.exception_type
 . javax.servlet.error.message
  
 So you'd need tomcat 4 and above for
 javax.servlet.error.request_uri
  
 
  -Original Message-
  From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, June 01, 2004 3:28 AM
  To: [EMAIL PROTECTED]
  Subject: Re: ErrorPage.jsp - how to get the
 address of the 
  offending page?
  
  
  
   Does the request attribute
   javax.servlet.error.request_uri  suit your needs
 ?
   (from the servlet spec, SRV.9.9.1)
  
  Actually returns null. I'm using Tomcat 3; Could
 that
  be the reason?
  
  Here's my snippet:
  
  %@ page isErrorPage=true%
  % 
 

System.out.println(request.getAttribute(javax.servlet.error.r
  equest_uri));
  
  %
  
  
  
 
 

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



Two hosts setup, jsp won't work!

2004-06-01 Thread Nadia Kunkov
Hi,

I run Tomcat5.0.24 on Fedora Core 1.  I have two hosts defined in server.xml in a 
following way:

Host name =WebTest1.something.com debug=0 appBase=webapps  unpackWARs=true
 autoDeploy=true xmlValidation=false 
lNamespaceAware=false
Context path= docBase=WebTest1 debug=5/
   
  
Logger 
className=org.apache.catalina.logger.FileLogger
prefix=localhost_WebTest1_log. suffix=.txt
timestamp=true/ 
   
 
/Host
   
  
Host name =WebTest2.something.com debug=0  
appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
 
Context path=/WebTest2 docBase=WebTest2 debug=0 
reloadable=true/

Logger 
className=org.apache.catalina.logger.FileLogger
prefix=localhost_WebTest2_log. suffix=.txt
timestamp=true/
   
  
/Host

I have proper DNS entries on my DNS server for both hosts.
First host is a simple http website and a second host is a jsp website.
I'm able to access both sites but when I run the jsp application ( WebTest2) I'm able 
to go through some jsp pages and then I get an error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/var/tomcat5/work/Catalina/WebTest2.something.com/WebTest2/org/apache/jsp/someJsp_jsp.java:15:
 package com.crystaldecisions.sdk.occa.report does not exist
import com.crystaldecisions.sdk.occa.report.*;
^
1 error

I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in
/var/tomcat5/webapps/WebTest2/WEB-INF/lib 

I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just in case 
and got the same error.
Does this have anything to do with the hosts I've defined?  Did I create a wrong 
directory structure?
My jsps are in  /var/tomcat5/webapps/WebTest2
Everything below /var/tomcat5/webapps is owned by tomcat5 user.  My Tomcat is running 
as root since I need it to be listening on port 80.  Cat it be a permissions problem?

Any help would be appreciated.
Thanks in advance
N.K.


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



Re: Error: Unexpected Signal

2004-06-01 Thread Malai
Hi.,
The same web-app with dll is working in one particular machine.
OS and JDK everything is exactly the same that i mentioned earlier.

But other machine with same environement is giving problems.
I did compare everything with both machines.
Everything looks exactly the same.

Any suggestions..

Thanks,m
MALAI



- Original Message - 
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:22 AM
Subject: RE: Error: Unexpected Signal


 Check this native lib needs auhentication before you access/ if it itself
 have read permissions?

 Ohh... those native calls are very frustrating. Some times problems are
very
 intermittent and can not reproduce.


 -Original Message-
 From: Malai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 5:00 PM
 To: Tomcat Users List
 Subject: Error: Unexpected Signal


 Hi.,
 I have a native dll and i'm trying to access in my web application.
 I'm getting this below error.I did use the differnent jvm but no luck.

 My environements are Tomcat 4.1.29 ,Windows 2000 , J2SDK 1.4.2_03

 Can any one look in to this and share your ideas please.

 Thanks.,
 MALAI

 ERROR:-

 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at
 PC=0x77F8206B
 Function=RtlEnterCriticalSection+0xB
 Library=C:\WINNT\system32\ntdll.dll

 Current Java thread:
  at com.sentori.common.interfaces.zp4.ZP4Interface.JAVAAVSValidate(Native
 Method)
  at

com.sentori.common.interfaces.zp4.ZP4Interface.validate(ZP4Interface.java:84
 )
  - locked 0x149f1758 (a java.lang.Class)
  at

com.sentori.struts.action.PostAddressValidation.execute(PostAddressValidatio
 n.java:47)
  at

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
 sor.java:484)
  at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:256)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:191)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
  at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:171)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
  at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
 )
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
  at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
 ction(Http11Protocol.java:549)
  at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
  at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:666)
  at java.lang.Thread.run(Thread.java:534)

 Dynamic libraries:
 0x0040 - 0x00406000  C:\_Java\1_SDK\1.4.2_03\bin\java.exe
 0x77F8 - 0x77FFD000  

RE: ErrorPage.jsp - how to get the address of the offending page?

2004-06-01 Thread Frank Zammetti
Try looking for the attribute request_uri without the whole class 
specification before it... it still may not be available in Tomcat 3.x, and 
I've seen reference to looking it up the way you are, but I'm fairly certain 
that attribute is present in current Tomcat versions as just request_uri, 
and I'm wondering if maybe it was in that version too.


From: Dola Woolfe [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: ErrorPage.jsp - how to get the address of the offending page?
Date: Tue, 1 Jun 2004 08:47:07 -0700 (PDT)
So am I out of luck or is there an alternative way?
--- Mike Curwen [EMAIL PROTECTED] wrote:
 Yes, that would be the reason.  From the
 corresponding section of the
 spec for servlet 2.2:

 If the location of the error handler is a servlet or
 a JSP, the
 following
 request attributes can be set:
 . javax.servlet.error.status_code
 . javax.servlet.error.exception_type
 . javax.servlet.error.message

 So you'd need tomcat 4 and above for
 javax.servlet.error.request_uri


  -Original Message-
  From: Dola Woolfe [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 01, 2004 3:28 AM
  To: [EMAIL PROTECTED]
  Subject: Re: ErrorPage.jsp - how to get the
 address of the
  offending page?
 
 
 
   Does the request attribute
   javax.servlet.error.request_uri  suit your needs
 ?
   (from the servlet spec, SRV.9.9.1)
 
  Actually returns null. I'm using Tomcat 3; Could
 that
  be the reason?
 
  Here's my snippet:
 
  %@ page isErrorPage=true%
  %
 

System.out.println(request.getAttribute(javax.servlet.error.r
  equest_uri));
 
  %
 
 
 



-
 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]
_
Learn to simplify your finances and your life in Streamline Your Life from 
MSN Money. http://special.msn.com/money/0405streamline.armx

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


System.out logging

2004-06-01 Thread Matt Tucker
Is there a way to have tomcat log all System.out printing to a daily log 
rather than have them constantly piling up in catalina.out? Can this be 
done using SystemOutLogger? The documentation on it seems pretty sparse. 
This is what it looks like in my server.xml:

Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=standardOut_log. suffix=.log
timestamp=true/
Thanks in advance.
--
Matt Tucker
thoughtbot
cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Two hosts setup, jsp won't work!

2004-06-01 Thread QM
On Tue, Jun 01, 2004 at 11:48:45AM -0400, Nadia Kunkov wrote:
: I run Tomcat5.0.24 on Fedora Core 1.  I have two hosts defined in server.xml
: in a following way:

First things first -- if you're going to use multiple virtual hosts, you'd
do well to either 1/ use separate appBase dirs, or 2/ disable autoDeploy
and deployOnStartup for your Host elements.

Otherwise, each vhost will deploy both webapps when it starts.



: I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in
: /var/tomcat5/webapps/WebTest2/WEB-INF/lib

Are all of the classes unique between the jars? (That is, are there any
classes defined in multiple jars?)  If not, things could get messy down the
line.

To start debugging, you could disable the vhost for WebTest1 (just comment
it out) and focus on WebTest2.

Then, pare down the list of jarfiles in WebTest2/WEB-INF/lib.  Confirm that
each jar is indeed a valid file (a quick jar -tf {file} should do) and
that the required class, and every class on which it depends, is available
either in a JAR in WebTest2/WEB-INF/lib or a bare class in
WebTest2/WEB-INF/classes.



: I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just
: in case and got the same error.

No need to do this -- WEB-INF/classes will only load bare class files;
jarfiles must exist in WEB-INF/lib.


: Does this have anything to do with the hosts I've defined?  Did I create a
: wrong directory structure?

The dirs look OK.  If other JSPs compile without a problem, you can pretty
much narrow it down to a missing/rogue jarfile or class.



: Everything below /var/tomcat5/webapps is owned by tomcat5 user.  My Tomcat is
: running as root since I need it to be listening on port 80.  Cat it be a
: permissions problem?

Probably not a permissions problem, but you probably don't want root
running the Tomcat process.  

Once you've solved  your immediate JSP problem, you may want to look into
commons-daemon/jsvc.  (This was discussed recently on the list; see the
archives for details.)


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: System.out logging

2004-06-01 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out
-Tim
Matt Tucker wrote:
Is there a way to have tomcat log all System.out printing to a daily log 
rather than have them constantly piling up in catalina.out? Can this be 
done using SystemOutLogger? The documentation on it seems pretty sparse. 
This is what it looks like in my server.xml:

Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=standardOut_log. suffix=.log
timestamp=true/
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: wc_get_worker_for_name, done did not found a worker - Plea for help

2004-06-01 Thread Barry Roberts
Oops, I just noticed that I cut and pasted from two different places. 
My httpd.conf from apache1 is looking for a worker lb and the
workers.properties from apache2 doesn't have that.  Here are the correct
lines from the apache2 httpd.conf

JkWorkersFile   /usr/local/apache2/conf/workers.properties
JkLogFile   /var/log/mod_jk.log
JkLogLevel  debug
JkMount /apps/* xsappa
JkMount /admin xsappa

On Tue, 2004-06-01 at 09:37, Barry Roberts wrote:
 I'm getting desperate to get mod_jk working in apache on RHES 3 talking
 to tomcat 5.0.19 on (another) RHES3.  I'm getting the error from the
 subject line if I set JkLogLevel to debug.  In the browser I see 500's
 for ANY servlet.
 
 I've tried the RHES3 apache2 rpms (httpd-2.0.46-25.ent), building
 apache2 from source (2.0.49), building apache1 from source (1.3.31),
 with mod_jk static or DSO.  Always the same thing.
 
 I've played with the permissions on the workers.properties to world
 readable, writable, and even executable.  I strace'd httpd and it
 appears to successfully read the file (strace output below).
 
 I even copied a known workers.properties from a production web server
 (apache 2.0.43 built from source on Solaris) and it does the same
 thing.  So I'm reasonably sure it's not a problem with the
 workers.properties file itself.
 
 I built mod_jk from the
 jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz tarball which
 creates a jakarta-tomcat-connectors-jk-1.2.5-src directory.
 
 I built my own version of mod_jk that logs in the map_get function in
 jk_map.c and it appears that the map passed in the parameter jk_map_t *m
 is null.  I've been trying to figure out why, and I'm just about stuck.
 
 I have also tried mod_jk2 (with a workers2.properties) and it works
 under low load.  Even with only 3 thread in siege I get Broken Pipe
 errors in the tomcat logs and AjpGetReply errors in the jk logs.  I
 think this is similar to bugs 28790 and/or 28532.  We also saw this in
 our production servers, and our customers were seeing pages that just
 never finished loading until we switched back to jk1.  So I could use
 jk2 if I knew how to get around that, but jk1 would do, too.
 
 Relevant (I think) strace output:
 
 stat64(/usr/local/apache/conf/workers.properties,
 {st_mode=S_IFREG|0777, st_size=788, ...}) = 0
 read(3, , 4096)   = 0
 close(3)= 0
 munmap(0xb75ea000, 4096)= 0
 
 from httpd.conf:
 
 JkWorkersFile /usr/local/apache/conf/workers.properties
 JkLogFile /var/log/mod_jk-a13.log
 JkLogLeveldebug
 JkMount   /apps/* lb
 
 workers.properties:
 worker.list=xsappa
 
 worker.xsappa.port=139
 worker.xsappa.host=192.168.2.40
 worker.xsappa.type=ajp13
 worker.xsappa.lbfactor=1
 
 
 -
 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]



[ANN] new ListenExec alpha (Tomcat reboot runtime)

2004-06-01 Thread QM
ListenExec listens on a port and executes commands when called.
It is written in Java, and should run under any Java-capable OS.

The original design goal was a means to restart Tomcat, from Tomcat.
(ListenExec was created as a proof-of-concept, inspired by a tomcat-user
mailing list thread 'Tomcat reboot runtime' from May 2004).


The latest ListenExec alpha/POC release is available at:

http://downloads.brandxdev.net/tomcat-479785/

There's also a readme doc at that URL for the curious.


Improvements in this version:

- ListenExec now runs as a daemon process, thanks to the Jakarta
  Commons Daemon project.  Building and running ListenExec thus
  requires Commons Daemon.

- the protocol is taking shape (transparent if you use only the
  RestartServlet)

- misc code cleanups


Please note the following:

- The demo wepapp doesn't require authentication to access the restart
  servlet, so you'd do yourself a favor to test it in an isolated
  container.

- the JSPs in the demo app are not precomiled; please access them 
  directly before attempting to use the the restart feature via
  the webapp.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Two hosts setup, jsp won't work!

2004-06-01 Thread Nadia Kunkov
Thanks for your advise.  I did what you said.  The jars have unique classes.  Also the 
exact same application works on my other machine (exact jars and everything else), but 
the other machine runs Red Hat 9 and Tomcat 4.X.X   and here I'm trying to install 
this app on Fedora Core 1 and Tomcat 5.0.24
I commented out both hosts to run the app on localhost:8080 and it gave me the same 
error...  I'm at a loss...
Any ideas?
Thanks for the help.
N.K.



-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:19 PM
To: Tomcat Users List
Subject: Re: Two hosts setup, jsp won't work!


On Tue, Jun 01, 2004 at 11:48:45AM -0400, Nadia Kunkov wrote:
: I run Tomcat5.0.24 on Fedora Core 1.  I have two hosts defined in server.xml
: in a following way:

First things first -- if you're going to use multiple virtual hosts, you'd
do well to either 1/ use separate appBase dirs, or 2/ disable autoDeploy
and deployOnStartup for your Host elements.

Otherwise, each vhost will deploy both webapps when it starts.



: I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in
: /var/tomcat5/webapps/WebTest2/WEB-INF/lib

Are all of the classes unique between the jars? (That is, are there any
classes defined in multiple jars?)  If not, things could get messy down the
line.

To start debugging, you could disable the vhost for WebTest1 (just comment
it out) and focus on WebTest2.

Then, pare down the list of jarfiles in WebTest2/WEB-INF/lib.  Confirm that
each jar is indeed a valid file (a quick jar -tf {file} should do) and
that the required class, and every class on which it depends, is available
either in a JAR in WebTest2/WEB-INF/lib or a bare class in
WebTest2/WEB-INF/classes.



: I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just
: in case and got the same error.

No need to do this -- WEB-INF/classes will only load bare class files;
jarfiles must exist in WEB-INF/lib.


: Does this have anything to do with the hosts I've defined?  Did I create a
: wrong directory structure?

The dirs look OK.  If other JSPs compile without a problem, you can pretty
much narrow it down to a missing/rogue jarfile or class.



: Everything below /var/tomcat5/webapps is owned by tomcat5 user.  My Tomcat is
: running as root since I need it to be listening on port 80.  Cat it be a
: permissions problem?

Probably not a permissions problem, but you probably don't want root
running the Tomcat process.  

Once you've solved  your immediate JSP problem, you may want to look into
commons-daemon/jsvc.  (This was discussed recently on the list; see the
archives for details.)


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]



RE: Memory problems with Tomcat 4.1.27

2004-06-01 Thread Anand Narasimhan
Hi,

Thanks for the reply. I will check with our database guys and let you
know.

Anand

-Original Message-
From: john cho [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 8:32 AM
To: Tomcat Users List
Subject: Re: Memory problems with Tomcat 4.1.27


There could be many issues related with this kind of problems. 
1.  Based upon your large loading process, check your database 
with your dba such as how many open cursors and so on. 2.  u 
did not close each connection, statement, resultset and it 
keeps building up.
3.  I guess u are looping thru the loading.   During the 
looping, close any
loose hole.


once u identify any one of those, i can help u further.

- Original Message - 
From: Anand Narasimhan [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: 'Anand Narasimhan' [EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:02 PM
Subject: Memory problems with Tomcat 4.1.27


 Hi,

 I am trying to debug a memory consumption issue with an 
application. I 
 would appreciate any help I can get.

 The application I am debugging is a web application written using 
 j2sdk 1.4.1_02 and struts 1.0.2. The tomcat version I am using is 
 4.1.27. The backend has a relational database 
(sybase/oracle) and the 
 database access
 is through JDBC. The tomcat server is running on Solaris 2.8. The max
 heap size
 for the JVM (using -Xmx) is set to 512M. I tried increasing 
it to 1024M
 as
 well.

 The problem is under reasonably large load, the overall process size 
 of tomcat (reported by top) keeps increasing and eventually tomcat 
 stops responding. I
 tried running tomcat with OptimizeIt hoping to find out if 
there are any
 leaks.
 When running with OptimizeIt the memory consumption increases much
 faster than
 when running without OptimizeIt. At this point OptimizeIt 
reports that
 about
 300M of heap is being used. But the overall process size is 
about 900M.

 I tried turing on the -Xloggc option. The output of -Xloggc 
also shows 
 that the heap size is well withing the limits. In some cases towards 
 the end of the
 GC log, I noticed that each GC cycle takes about 17 - 20 secs.

 Any suggestions regarding how to proceed debugging this 
problem would 
 be

 greatly appreciated. Are there any docs or any white papers 
that would 
 help understand the relation between the heap and the 
overall process 
 memory?

 Thanks
 Anand


 
__
 __

 Anand Narasimhan
 [EMAIL PROTECTED]




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




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



RE: Memory problems with Tomcat 4.1.27

2004-06-01 Thread Anand Narasimhan
Hi,

Thanks for your reply. I tried running tomcat inside OptimizeIt memory
profiler. But Optmizeit seems to be adding more load to the tomcat
process. Optimizeit indicates that the heap usage is well within the
limits. But the overall memory keeps increasing. 

Right now we cannot upgrade the JDK, tomcat or struts because our
customers are using the product and we have to support the existing
version. But we are planning on upgrading for the future releases.

Anand

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 6:18 AM
To: Tomcat Users List
Subject: RE: Memory problems with Tomcat 4.1.27



Hi,
You can check the Sun site and places like 
javaperformancetuning.com for papers on heap versus overall 
app memory.  This has also been addressed several times on 
this list, so an archive search might prove interesting.

You might have a memory leak: run inside a profiler to see if 
there are allocated objects still referenced that should be 
deallocated.  If you have a leak, the GC will run and run 
(longer and longer as your heap grows), but won't be able to 
collect anything, resulting in the behavior you describe.

If you can upgrade your JDK, tomcat, and struts versions you 
will be in better shape at least as far as receiving support, 
but also for debugging.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:02 PM
To: 'Tomcat Users List'
Cc: 'Anand Narasimhan'
Subject: Memory problems with Tomcat 4.1.27

Hi,

I am trying to debug a memory consumption issue with an 
application. I 
would appreciate any help I can get.

The application I am debugging is a web application written 
using j2sdk 
1.4.1_02 and struts 1.0.2. The tomcat version I am using is 4.1.27.
The backend has a relational database (sybase/oracle) and the database
access
is through JDBC. The tomcat server is running on Solaris 2.8. The max
heap size
for the JVM (using -Xmx) is set to 512M. I tried increasing 
it to 1024M
as
well.

The problem is under reasonably large load, the overall 
process size of 
tomcat (reported by top) keeps increasing and eventually tomcat stops
responding. I
tried running tomcat with OptimizeIt hoping to find out if there are
any
leaks.
When running with OptimizeIt the memory consumption increases much 
faster than when running without OptimizeIt. At this point OptimizeIt 
reports that about
300M of heap is being used. But the overall process size is 
about 900M.

I tried turing on the -Xloggc option. The output of -Xloggc 
also shows 
that the heap size is well withing the limits. In some cases towards 
the end of the
GC log, I noticed that each GC cycle takes about 17 - 20 secs.

Any suggestions regarding how to proceed debugging this problem would
be

greatly appreciated. Are there any docs or any white papers 
that would 
help understand the relation between the heap and the overall process
memory?

Thanks
Anand


__
_
_

Anand Narasimhan
[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]




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



Programmatic Authentication?

2004-06-01 Thread Carl Howells
Is it possible to set the Principal and Roles for a session in a manner 
which will satisfy a role-name security constraint programmatically? 
At all?  I don't mind ignoring the servlet spec and doing something 
tomcat-specific.  This is something that vitally needs to be done on my 
project.

Thanks for any solutions...
Carl Howells
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Memory problems with Tomcat 4.1.27

2004-06-01 Thread Bret Kumler
Try using 

http://research.sun.com/projects/jfluid/



-Original Message-
From: Anand Narasimhan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 11:27 AM
To: 'Tomcat Users List'
Subject: RE: Memory problems with Tomcat 4.1.27

Hi,

Thanks for your reply. I tried running tomcat inside OptimizeIt memory
profiler. But Optmizeit seems to be adding more load to the tomcat
process. Optimizeit indicates that the heap usage is well within the
limits. But the overall memory keeps increasing. 

Right now we cannot upgrade the JDK, tomcat or struts because our
customers are using the product and we have to support the existing
version. But we are planning on upgrading for the future releases.

Anand

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 6:18 AM
To: Tomcat Users List
Subject: RE: Memory problems with Tomcat 4.1.27



Hi,
You can check the Sun site and places like 
javaperformancetuning.com for papers on heap versus overall 
app memory.  This has also been addressed several times on 
this list, so an archive search might prove interesting.

You might have a memory leak: run inside a profiler to see if 
there are allocated objects still referenced that should be 
deallocated.  If you have a leak, the GC will run and run 
(longer and longer as your heap grows), but won't be able to 
collect anything, resulting in the behavior you describe.

If you can upgrade your JDK, tomcat, and struts versions you 
will be in better shape at least as far as receiving support, 
but also for debugging.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:02 PM
To: 'Tomcat Users List'
Cc: 'Anand Narasimhan'
Subject: Memory problems with Tomcat 4.1.27

Hi,

I am trying to debug a memory consumption issue with an 
application. I 
would appreciate any help I can get.

The application I am debugging is a web application written 
using j2sdk 
1.4.1_02 and struts 1.0.2. The tomcat version I am using is 4.1.27.
The backend has a relational database (sybase/oracle) and the database
access
is through JDBC. The tomcat server is running on Solaris 2.8. The max
heap size
for the JVM (using -Xmx) is set to 512M. I tried increasing 
it to 1024M
as
well.

The problem is under reasonably large load, the overall 
process size of 
tomcat (reported by top) keeps increasing and eventually tomcat stops
responding. I
tried running tomcat with OptimizeIt hoping to find out if there are
any
leaks.
When running with OptimizeIt the memory consumption increases much 
faster than when running without OptimizeIt. At this point OptimizeIt 
reports that about
300M of heap is being used. But the overall process size is 
about 900M.

I tried turing on the -Xloggc option. The output of -Xloggc 
also shows 
that the heap size is well withing the limits. In some cases towards 
the end of the
GC log, I noticed that each GC cycle takes about 17 - 20 secs.

Any suggestions regarding how to proceed debugging this problem would
be

greatly appreciated. Are there any docs or any white papers 
that would 
help understand the relation between the heap and the overall process
memory?

Thanks
Anand


__
_
_

Anand Narasimhan
[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]




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



Limit to number of web applications

2004-06-01 Thread Rob Wichterman
I was wondering if there is any type of limit to how many web applications
you can run with tomcat.  I am only looking at about 5 concurrent users per
application.  I have 5 deployed right now and was wondering if I should keep
deploying or install another tomcat.  I am going to eventually need to have
about 25 applications altogether.

 

Thanks,



Re: Limit to number of web applications

2004-06-01 Thread Tim Funk
AFAIK, its up to the amount of memory you have.
-Tim
Rob Wichterman wrote:
I was wondering if there is any type of limit to how many web applications
you can run with tomcat.  I am only looking at about 5 concurrent users per
application.  I have 5 deployed right now and was wondering if I should keep
deploying or install another tomcat.  I am going to eventually need to have
about 25 applications altogether.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat daily restart

2004-06-01 Thread Marco Pöhler
Hi,

somewhere in my web application is a memory leak, and the tomcat hangs after
a week and /etc/init.d/tomcat stop won't work also. The application will be
rewritten, so it is not important to find the leak. I'm currently think it
is okay to restart the tomcat every night. I wrote the simple shell script
below to do the job. The script is started as cronjob by root. The Script
works, but my question is: Are there better solutions ? Are there any
pitfalls I havn't seen ?

%-
#!/bin/bash
kill -9 `ps ax | grep java | awk '{ print $1 }'`
/etc/init.d/tomcat start
%-

thanks in advance

Marco

---
http://www.tintenpatronen-preisvergleich.de
http://www.contact-lenses-price-comparison.com



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



RE: tomcat daily restart

2004-06-01 Thread Shapira, Yoav

Hi,
Well, you're killing all java processes.  That seems a bit excessive, especially 
running as root since you WILL kill other people's jobs.

You didn't specify your tomcat version.  Assuming it's from within the last year, 
there is a catalina-pid option you can set in $CATALINA_HOME/bin/catalina.sh.  If set, 
the process ID (PID) of the tomcat server will be written to the file specified in 
that attribute.  Your script would then look for this file and kill the PID specified 
in the file.  You could run this script as the tomcat server user, you don't need to 
be root, and your overall setup would be more secure and more robust.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 4:01 PM
To: tomcat-user
Subject: tomcat daily restart

Hi,

somewhere in my web application is a memory leak, and the tomcat hangs
after
a week and /etc/init.d/tomcat stop won't work also. The application will be
rewritten, so it is not important to find the leak. I'm currently think it
is okay to restart the tomcat every night. I wrote the simple shell script
below to do the job. The script is started as cronjob by root. The Script
works, but my question is: Are there better solutions ? Are there any
pitfalls I havn't seen ?

%-
#!/bin/bash
kill -9 `ps ax | grep java | awk '{ print $1 }'`
/etc/init.d/tomcat start
%-

thanks in advance

Marco

---
http://www.tintenpatronen-preisvergleich.de
http://www.contact-lenses-price-comparison.com



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



RE: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread Ashwin Desai
Hi Yoav,

I know that's how jsvc is supposed to run IDEALLY. 

However, I am having problems with it on the linux platform that I
have listed in my email below. 

Has anyone else seen these issues ? Any solutions ?

Please let me know
Thanks,
Ashwin.


--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 Well, you run jsvc as root and it the changes itself the tomcat
 user.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Ashwin Desai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 11:10 AM
 To: Tomcat Users List
 Subject: JSVC problems with Tomcat 5.0.19  Linux
 
 Hi,
 
 I am trying to get Tomcat 5.0.19 to run as a non-root user using
 commons daemon - jsvc on a linux machine.
 
 uname -a
 Linux rx2600 2.4.20-cgl-1.12-mckinley-smp #1 SMP Tue Sep 23
 09:21:46
 MDT 2003 ia64 unknown
 
 I got the following error in the log file
 
 syscall failed in set_caps
 service exits with a value of 4
 
 After looking at a few solutions on the internet, I commented out
 the
 set_caps(CAPS)  set_caps(CAPSMIN) lines from jsvc-unix.c and
 tried
 again.
 
 Now, tomcat started properrly but had problems binding to port 80
 (java.net.BindException)
 
 It looks like these set_caps() calls are needed to get the proper
 permissions to bind to port 80.
 
 /* set capabilities enough for binding port 80 setuid/getuid */
 if (set_caps(CAPS)!=0)
 return(-1);
 
 Anyone else has seen this problem before. Any
 suggestions/solutions
 ??
 
 Thanks a lot in advance.
 
 Ashwin.
 
 =
 Ashwin Desai.
 
 
 
 
 __
 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]
 
 
 
 
 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]
 


=
Ashwin Desai.




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



JK2: Error ajp_marshal_into_msgb - No such method \x80L\x01\x03\x01

2004-06-01 Thread Dichen Mao
Hi,
 
Settings:
Linux
Apache 2.0.49
JK2 unknown version
Tomcat 5.0.24
 
I'm trying to pick up apache/jk2/tomcat which was partially setup by another guy. The 
same setting was initially working on last Saturday, and when I came back on Monday, 
the http (port 80) was working but the https (port 443) was not.
 
In the %apache%/logs/error_log, each https request got something like this:
 
[Tue Jun 01 19:13:59 2004] [error] Error ajp_marshal_into_msgb - No such method 
\x80L\x01\x03\x01
[Tue Jun 01 19:13:59 2004] [error] ajp13.service(): error marshaling
[Tue Jun 01 19:13:59 2004] [error] mod_jk2.handler() Error connecting to tomcat 
12, status 0
 
Please help me on where the things could be wrong or how much more info should I 
provide to identify the problem.
 
Cheers,
Dichen


There is no dark.
There is just absence of light.

Re: JSVC problems with Tomcat 5.0.19 Linux

2004-06-01 Thread QM
On Tue, Jun 01, 2004 at 01:16:38PM -0700, Ashwin Desai wrote:
: Has anyone else seen these issues ? Any solutions ?

1/ Perhaps -- in my (limited) experience with jsvc under Linux, I noticed
that I have to start jsvc as root.  The process still runs as the
specified user, but root must run the actual jsvc command.

2/ I haven't looked at the source code, but my guess is that somewhere
under the covers a call to setuid()/setgid() is failing (because the
calling user is not root) and jsvc doesn't attempt to continue as the
current user.  i.e. it counts the setuid()/setgid() failure as fatal.


1 is my experience; 2 is completely hypothetical. =)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



How to get the offending uri when handling a 404 error?

2004-06-01 Thread Joseph Shraibman
I put this in my web.xml:
error-page
error-code404/error-code
location/404.jsp/location
/error-page
... and this in 404.jsp:
ErrorData ed = pageContext.getErrorData();
if (ed != null) url = ed.getRequestURI() ;
but it throws:
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.servlet.jsp.PageContext.getErrorData(PageContext.java:514)
at org.apache.jsp._404_jsp._jspService(_404_jsp.java:102)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

(this is with tomcat 5.0.24)
So how can I get the url the the user tried to request?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >