RE: Regd....ASF Bugzilla - Bug 45015 (Quoting in attributes)

2008-10-06 Thread subir.sasikumar
Hi,



I tried to give the system property in three ways



a) set org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

b) ant -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

c) in the build.xml property
name=org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING
value=false/



But it does not work still.



Error message is as follows:



D:\Work\vss\SM33\prov\WEB-INF\srcant
-Dorg.apache.jasper.compiler.Parser.S

TRICT_QUOTE_ESCAPING=false

Buildfile: build.xml

 [echo] JAVA_HOME is set to = C:\Java\jdk1.5.0_13

 [echo] ANT_HOME is set to = D:\apache-ant-1.6.2

 [echo] CATALINA_HOME is set to = D:\apache-tomcat-6.0.18

 [echo] tomcat.home=D:\apache-tomcat-6.0.18



init:

   [delete] Deleting directory D:\provTempWar

   [delete] Deleting directory D:\provWar

[mkdir] Created dir: D:\provWar

[mkdir] Created dir: D:\provTempWar

[mkdir] Created dir: D:\provTempWar\images

[mkdir] Created dir: D:\provTempWar\js

[mkdir] Created dir: D:\provTempWar\style

[mkdir] Created dir: D:\provTempWar\WEB-INF

[mkdir] Created dir: D:\provTempWar\WEB-INF\config

[mkdir] Created dir: D:\provTempWar\WEB-INF\classes

[mkdir] Created dir: D:\provTempWar\WEB-INF\data

[mkdir] Created dir: D:\provTempWar\WEB-INF\lib

[mkdir] Created dir: D:\provTempWar\WEB-INF\schema



resources:

 [copy] Copying 3 files to D:\provTempWar

 [copy] Copying 29 files to D:\provTempWar\images

 [copy] Copying 6 files to D:\provTempWar\js

 [copy] Copying 1 file to D:\provTempWar\style

 [copy] Copying 28 files to D:\provTempWar\WEB-INF

 [copy] Copying 5 files to D:\provTempWar\WEB-INF\classes

 [copy] Copying 1 file to D:\provTempWar\WEB-INF\config

 [copy] Copying 35 files to D:\provTempWar\WEB-INF\lib

 [copy] Copying 1 file to D:\provTempWar\WEB-INF\schema



compile:

[javac] Compiling 83 source files to \provTempWar\WEB-INF\classes

[javac] Note: Some input files use unchecked or unsafe operations.

[javac] Note: Recompile with -Xlint:unchecked for details.



jspc.init:

Trying to override old definition of task jasper2



BUILD FAILED

D:\Work\vss\SM33\prov\WEB-INF\src\build.xml:169:
org.apache.jasper.JasperEx

ception: file:D:/Work/vss/SM33/prov/Interaction.jsp(2662,29) Attribute
valu

e  operationalDayEndTime.intValue()+  is quoted with  which must be
escaped w

hen used within the value



Total time: 13 seconds



Thanks

Subir

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2008 9:29 AM
To: Tomcat Users List
Subject: RE: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)



 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

 Subject: RE: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)



 But I do not understand how I can make the compiler ignore this

 validation. We use precompiled JSPs.



If you're using the suggested ant script for precompilation:

http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web%20Applicat
ion%20Compilation



then simply add the following system property to the command line:



-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false



 - Chuck





THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.



-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

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




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com


Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-06 Thread James Wang
Hi Mark,

Would like to know if Request.getParameter(parm) return null is related to
the
SocketTimeoutException error, below was my finding that I posted last time
for
your reference .

Thanks.
James.
On Fri, Oct 3, 2008 at 9:50 AM, James Wang [EMAIL PROTECTED] wrote:

  Hi Mark,
 We also found sometimes the Request.getparameter(parm) statement was
 return null,
 wondering if it's related to the SocketTimoutException error, So we made a
 minor
 changes on org.apache.catalina.connector.Request.java trying to track what
 the Actual
 Length was from reading the post body part, the result was weird because we
 found
 the Actual Length was either equal to the content-length or zero (whole
 body part was
 missing), would it get back to normal if we disable the keep-alive ?

 Following is the changes I made on Request.java for your reference:

   protected void parseParameters() {

 :  :   :  :
 :  :   :  :

 if (actualLen == len) {
 parameters.processParameters(formData, 0, len);
 }
 else { // added by me
 context.getLogger().error(formData Len error len : +
 len +   actualLen : + actualLen);
 }
 } catch (Throwable t) {
 context.getLogger().warn
 (sm.getString(coyoteRequest.parseParameters), t);
 }
 }

 }

 Following was the Tomcat log :

 SEVERE: formData Len error len :32  actualLen :0
 SEVERE: formData Len error len :379  actualLen :0
 SEVERE: formData Len error len :32  actualLen :0
 SEVERE: formData Len error len :41  actualLen :0
 SEVERE: formData Len error len :60  actualLen :0
 SEVERE: formData Len error len :74  actualLen :0
 SEVERE: formData Len error len :145  actualLen :0
 SEVERE: formData Len error len :60  actualLen :0

 Thanks  Best Regards.
 James Wang



RE: Regd....ASF Bugzilla - Bug 45015 (Quoting in attributes)

2008-10-06 Thread subir.sasikumar
Hi,



Thanks for all the responses!

I suspect this system property part does not work with pre-compilation
options.



Can any one advise if this is a bug?



Regards,

Subir



From: Subir Sasikumar(WT01 - PES - MCE Mobile (Telecom))
Sent: Monday, October 06, 2008 11:39 AM
To: 'Tomcat Users List'
Subject: RE: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)



Hi,



I tried to give the system property in three ways



a) set org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

b) ant -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

c) in the build.xml property
name=org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING
value=false/



But it does not work still.



Error message is as follows:



D:\Work\vss\SM33\prov\WEB-INF\srcant
-Dorg.apache.jasper.compiler.Parser.S

TRICT_QUOTE_ESCAPING=false

Buildfile: build.xml

 [echo] JAVA_HOME is set to = C:\Java\jdk1.5.0_13

 [echo] ANT_HOME is set to = D:\apache-ant-1.6.2

 [echo] CATALINA_HOME is set to = D:\apache-tomcat-6.0.18

 [echo] tomcat.home=D:\apache-tomcat-6.0.18



init:

   [delete] Deleting directory D:\provTempWar

   [delete] Deleting directory D:\provWar

[mkdir] Created dir: D:\provWar

[mkdir] Created dir: D:\provTempWar

[mkdir] Created dir: D:\provTempWar\images

[mkdir] Created dir: D:\provTempWar\js

[mkdir] Created dir: D:\provTempWar\style

[mkdir] Created dir: D:\provTempWar\WEB-INF

[mkdir] Created dir: D:\provTempWar\WEB-INF\config

[mkdir] Created dir: D:\provTempWar\WEB-INF\classes

[mkdir] Created dir: D:\provTempWar\WEB-INF\data

[mkdir] Created dir: D:\provTempWar\WEB-INF\lib

[mkdir] Created dir: D:\provTempWar\WEB-INF\schema



resources:

 [copy] Copying 3 files to D:\provTempWar

 [copy] Copying 29 files to D:\provTempWar\images

 [copy] Copying 6 files to D:\provTempWar\js

 [copy] Copying 1 file to D:\provTempWar\style

 [copy] Copying 28 files to D:\provTempWar\WEB-INF

 [copy] Copying 5 files to D:\provTempWar\WEB-INF\classes

 [copy] Copying 1 file to D:\provTempWar\WEB-INF\config

 [copy] Copying 35 files to D:\provTempWar\WEB-INF\lib

 [copy] Copying 1 file to D:\provTempWar\WEB-INF\schema



compile:

[javac] Compiling 83 source files to \provTempWar\WEB-INF\classes

[javac] Note: Some input files use unchecked or unsafe operations.

[javac] Note: Recompile with -Xlint:unchecked for details.



jspc.init:

Trying to override old definition of task jasper2



BUILD FAILED

D:\Work\vss\SM33\prov\WEB-INF\src\build.xml:169:
org.apache.jasper.JasperEx

ception: file:D:/Work/vss/SM33/prov/Interaction.jsp(2662,29) Attribute
valu

e  operationalDayEndTime.intValue()+  is quoted with  which must be
escaped w

hen used within the value



Total time: 13 seconds



Thanks

Subir

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2008 9:29 AM
To: Tomcat Users List
Subject: RE: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)



 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

 Subject: RE: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)



 But I do not understand how I can make the compiler ignore this

 validation. We use precompiled JSPs.



If you're using the suggested ant script for precompilation:

http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web%20Applicat
ion%20Compilation



then simply add the following system property to the command line:



-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false



 - Chuck





THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.



-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

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




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com


Re: Tomcat with support for asyn servlets (3.0)?

2008-10-06 Thread Clemens Eisserer
 There is a draft 3.0 spec but no APIs at present. Once there is a draft
 with some APIs I image there will be a Tomcat 7 branch that will remain
 alpha at least until the spec is final.
Thanks :)

lg Clemens

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



Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Konstantin Kolinko
 I wanted to know what change has happened in above mentioned jars from
 tomcat 5.5.9 to 5.5.26 which is breaking my code?

Don't know. All changes are mentioned in the changelog,
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

and there is source code repository where you can look for commit history
or compare branches.

Deploying your app in different versions of 5.5.10 .. 5.5.25, or
maybe also in a fresh install of 5.5.9, will help you to locate when
the difference has appeared.

Still, I think that it is something in your app.

I do not see dir2 in your code snippet. How it is supposed
to work? Is it the actual snippet? Where that dir2 comes from?


2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Even after clearing work directory on 5.5.9 this code works.

 I have 2 workarounds for this problem
 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26
 jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
 2) Keep def.jsp at same location as test1.jsp and abc.jsp.

 With both these workarounds my application works fine.

 I wanted to know what change has happened in above mentioned jars from
 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2008 7:08 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application
 from tomcat 5.5.9 to 5.5.26

 2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Hi,

 I am getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found

 when I ported my web application from tomcat 5.5.9 to 5.5.26

 Following is code snippet from test1.jsp page under
 webapps/testapp/dir1

 t:panelTabbedPane
  t:panelTab id=tabpane-1 label=abc rendered=true  jsp:include

 page=abc.jsp /  /t:panelTab  t:panelTab id=tabpane-1
 label=def rendered=false  jsp:include page=def.jsp /
 /t:panelTab /t:panelTabbedPane

 here abc.jsp is under directory webapps/testapp/dir1 (same directory
 of
 test1.jsp) and def.jsp is under directory webapps/testapp/dir2.

 This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am
 getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found.


 If abc.jsp and def.jsp are in different directories, then it should be
 jsp:include page=../dir2/def.jsp

 It might be that on your 5.5.9 there is some old compiled copy of
 def.jsp in the wrong place. I.e. it might be if you clear your work
 directory on your 5.5.9 host the problem will reappear there.


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



Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-06 Thread Mark Thomas
James Wang wrote:
 Hi Mark,
 
 Would like to know if Request.getParameter(parm) return null is related to
 the
 SocketTimeoutException error, below was my finding that I posted last time
 for
 your reference .

Unlikely.

Mark



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



RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Bhagwat, Vinit (Vinit)
Thanks for the changelog link and pointers.

This is not the actual snippet. I tried to simulate as per my
application.

What I suspect is if t:panelTab rendered=false it should not try to
include def.jsp jsp:include which was happening when I used 5.5.9 but
with 5.5.26 I guess though t:panelTab rendered attribute is false it
tries to include jsp page which is not in the same directory. 

Can you please look into Bug 37326 for 5.5.25 I think this is related
with my problem.

Thanks and Regards,

Vinit
-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2008 4:27 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

 I wanted to know what change has happened in above mentioned jars from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

Don't know. All changes are mentioned in the changelog,
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

and there is source code repository where you can look for commit
history or compare branches.

Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe
also in a fresh install of 5.5.9, will help you to locate when the
difference has appeared.

Still, I think that it is something in your app.

I do not see dir2 in your code snippet. How it is supposed to work? Is
it the actual snippet? Where that dir2 comes from?


2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Even after clearing work directory on 5.5.9 this code works.

 I have 2 workarounds for this problem
 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26 
 jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
 2) Keep def.jsp at same location as test1.jsp and abc.jsp.

 With both these workarounds my application works fine.

 I wanted to know what change has happened in above mentioned jars from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2008 7:08 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application 
 from tomcat 5.5.9 to 5.5.26

 2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Hi,

 I am getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found

 when I ported my web application from tomcat 5.5.9 to 5.5.26

 Following is code snippet from test1.jsp page under
 webapps/testapp/dir1

 t:panelTabbedPane
  t:panelTab id=tabpane-1 label=abc rendered=true  
 jsp:include

 page=abc.jsp /  /t:panelTab  t:panelTab id=tabpane-1
 label=def rendered=false  jsp:include page=def.jsp / 
 /t:panelTab /t:panelTabbedPane

 here abc.jsp is under directory webapps/testapp/dir1 (same directory 
 of
 test1.jsp) and def.jsp is under directory webapps/testapp/dir2.

 This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
 getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found.


 If abc.jsp and def.jsp are in different directories, then it should be

 jsp:include page=../dir2/def.jsp

 It might be that on your 5.5.9 there is some old compiled copy of 
 def.jsp in the wrong place. I.e. it might be if you clear your work 
 directory on your 5.5.9 host the problem will reappear there.


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


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



how to avoid multiple requests from the same client

2008-10-06 Thread colin_

hello everyone
while testing our website (running with a java servlet) i noticed that an
impacient user could overload our database server. since some sites need
alot of time to load, an impacient user can click multiple times on the same
link. i thought tomcat would notice this, and block the further requests and
only respond to the first. but tomcat really seems to handle every single
request!
my question is, where to prohibit this possible overload. is it a
tomcat-configuration issue, or mine due to false request handling?
i'm running apache tomcat 5.5 with catalina.
-- 
View this message in context: 
http://www.nabble.com/how-to-avoid-multiple-requests-from-the-same-client-tp19836189p19836189.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: how to avoid multiple requests from the same client

2008-10-06 Thread Mark Thomas
colin_ wrote:
 hello everyone
 while testing our website (running with a java servlet) i noticed that an
 impacient user could overload our database server. since some sites need
 alot of time to load, an impacient user can click multiple times on the same
 link. i thought tomcat would notice this, and block the further requests and
 only respond to the first. but tomcat really seems to handle every single
 request!
 my question is, where to prohibit this possible overload. is it a
 tomcat-configuration issue, or mine due to false request handling?

It is something you need to handle within your application.

This has been discussed before in the archives. Try searching
http://tomcat.markmail.org/ for multiple requests

Mark



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



Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Konstantin Kolinko
 Can you please look into Bug 37326 for 5.5.25 I think this is related
 with my problem.

Yes, it certainly looks like it.
Also, if you are interested, here is what was changed:

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200708.mbox/[EMAIL 
PROTECTED]

http://svn.apache.org/viewvc?view=revrev=562751

Do you have any valid reason, why you must reference a
non-existent jsp?


Also, a non-related note:
If you are planning to use 5.5.26, beware of issue 44494.
It was fixed in 5.5.27.


2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Thanks for the changelog link and pointers.

 This is not the actual snippet. I tried to simulate as per my
 application.

 What I suspect is if t:panelTab rendered=false it should not try to
 include def.jsp jsp:include which was happening when I used 5.5.9 but
 with 5.5.26 I guess though t:panelTab rendered attribute is false it
 tries to include jsp page which is not in the same directory.

 Can you please look into Bug 37326 for 5.5.25 I think this is related
 with my problem.

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 06, 2008 4:27 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application
 from tomcat 5.5.9 to 5.5.26

 I wanted to know what change has happened in above mentioned jars from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Don't know. All changes are mentioned in the changelog,
 http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

 and there is source code repository where you can look for commit
 history or compare branches.

 Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe
 also in a fresh install of 5.5.9, will help you to locate when the
 difference has appeared.

 Still, I think that it is something in your app.

 I do not see dir2 in your code snippet. How it is supposed to work? Is
 it the actual snippet? Where that dir2 comes from?


 2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Even after clearing work directory on 5.5.9 this code works.

 I have 2 workarounds for this problem
 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26
 jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
 2) Keep def.jsp at same location as test1.jsp and abc.jsp.

 With both these workarounds my application works fine.

 I wanted to know what change has happened in above mentioned jars from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2008 7:08 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application
 from tomcat 5.5.9 to 5.5.26

 2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Hi,

 I am getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found

 when I ported my web application from tomcat 5.5.9 to 5.5.26

 Following is code snippet from test1.jsp page under
 webapps/testapp/dir1

 t:panelTabbedPane
  t:panelTab id=tabpane-1 label=abc rendered=true
 jsp:include

 page=abc.jsp /  /t:panelTab  t:panelTab id=tabpane-1
 label=def rendered=false  jsp:include page=def.jsp /
 /t:panelTab /t:panelTabbedPane

 here abc.jsp is under directory webapps/testapp/dir1 (same directory
 of
 test1.jsp) and def.jsp is under directory webapps/testapp/dir2.

 This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am
 getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found.


 If abc.jsp and def.jsp are in different directories, then it should be

 jsp:include page=../dir2/def.jsp

 It might be that on your 5.5.9 there is some old compiled copy of
 def.jsp in the wrong place. I.e. it might be if you clear your work
 directory on your 5.5.9 host the problem will reappear there.


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


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



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



RE: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Bhagwat, Vinit (Vinit)
Thanks again for links. This code was written by somebody else and I am
maintain it. I agree that there is no valid reason for referencing
non-existent jsp. I will change my code. I was curious about what got
changed and with your help I got the answer. Thanks a lot.

Thanks and Regards,

Vinit
-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2008 6:02 PM
To: Tomcat Users List
Subject: Re: Problem with jasper-compiler when ported web application
from tomcat 5.5.9 to 5.5.26

 Can you please look into Bug 37326 for 5.5.25 I think this is related 
 with my problem.

Yes, it certainly looks like it.
Also, if you are interested, here is what was changed:

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200708.mbox/%3C20070
[EMAIL PROTECTED]

http://svn.apache.org/viewvc?view=revrev=562751

Do you have any valid reason, why you must reference a non-existent jsp?


Also, a non-related note:
If you are planning to use 5.5.26, beware of issue 44494.
It was fixed in 5.5.27.


2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Thanks for the changelog link and pointers.

 This is not the actual snippet. I tried to simulate as per my 
 application.

 What I suspect is if t:panelTab rendered=false it should not try 
 to include def.jsp jsp:include which was happening when I used 5.5.9

 but with 5.5.26 I guess though t:panelTab rendered attribute is false 
 it tries to include jsp page which is not in the same directory.

 Can you please look into Bug 37326 for 5.5.25 I think this is related 
 with my problem.

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 06, 2008 4:27 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application 
 from tomcat 5.5.9 to 5.5.26

 I wanted to know what change has happened in above mentioned jars 
 from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Don't know. All changes are mentioned in the changelog, 
 http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

 and there is source code repository where you can look for commit 
 history or compare branches.

 Deploying your app in different versions of 5.5.10 .. 5.5.25, or maybe

 also in a fresh install of 5.5.9, will help you to locate when the 
 difference has appeared.

 Still, I think that it is something in your app.

 I do not see dir2 in your code snippet. How it is supposed to work? 
 Is it the actual snippet? Where that dir2 comes from?


 2008/10/6 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Even after clearing work directory on 5.5.9 this code works.

 I have 2 workarounds for this problem
 1) Use following jars from tomcat 5.5.9 in tomcat 5.5.26 
 jasper-compiler.jar,  jasper-compiler-jdt.jar, jasper-runtime.jar.
 2) Keep def.jsp at same location as test1.jsp and abc.jsp.

 With both these workarounds my application works fine.

 I wanted to know what change has happened in above mentioned jars 
 from

 tomcat 5.5.9 to 5.5.26 which is breaking my code?

 Thanks and Regards,

 Vinit
 -Original Message-
 From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 03, 2008 7:08 PM
 To: Tomcat Users List
 Subject: Re: Problem with jasper-compiler when ported web application

 from tomcat 5.5.9 to 5.5.26

 2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]:
 Hi,

 I am getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found

 when I ported my web application from tomcat 5.5.9 to 5.5.26

 Following is code snippet from test1.jsp page under
 webapps/testapp/dir1

 t:panelTabbedPane
  t:panelTab id=tabpane-1 label=abc rendered=true 
 jsp:include

 page=abc.jsp /  /t:panelTab  t:panelTab id=tabpane-1
 label=def rendered=false  jsp:include page=def.jsp / 
 /t:panelTab /t:panelTabbedPane

 here abc.jsp is under directory webapps/testapp/dir1 (same directory

 of
 test1.jsp) and def.jsp is under directory webapps/testapp/dir2.

 This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am 
 getting following exception

 org.apache.jasper.JasperException: ServletException in
 '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found.


 If abc.jsp and def.jsp are in different directories, then it should 
 be

 jsp:include page=../dir2/def.jsp

 It might be that on your 5.5.9 there is some old compiled copy of 
 def.jsp in the wrong place. I.e. it might be if you clear your work 
 directory on your 5.5.9 host the problem will reappear there.


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


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

Re: Native library issue on RHEL5

2008-10-06 Thread John Ozarchuk
I set the LD_LIBRARY_PATH variable in my shell and starting Tomcat up is still 
not seeing the native libraries.  

Thanks

John



- Original Message 
From: Rainer Jung [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, October 3, 2008 8:37:57 AM
Subject: Re: Native library issue on RHEL5

John Ozarchuk schrieb:
 Here is the output of ldd libtcnative-1.so
 
 libssl.so.6 = /lib64/libssl.so.6 (0x2ace1000)
libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2af2a000)
libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2b272000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x2b49a000)
libdl.so.2 = /lib64/libdl.so.2 (0x2b6b4000)
libc.so.6 = /lib64/libc.so.6 (0x2b8b8000)
libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 (0x2bc09000)
libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2be37000)
libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2c0c9000)
libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2c2cc000)
libz.so.1 = /usr/lib64/libz.so.1 (0x2c4f1000)
libuuid.so.1 = /lib64/libuuid.so.1 (0x2c705000)
libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2c909000)
 /lib64/ld-linux-x86-64.so.2 (0x4000)
libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2cb3d000)
libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2cd45000)
libresolv.so.2 = /lib64/libresolv.so.2 (0x2cf48000)
libselinux.so.1 = /lib64/libselinux.so.1 (0x2d15d000)
libsepol.so.1 = /lib64/libsepol.so.1 (0x2d376000)
 
 
 I'm not sure how I would go about making sure the APR libraries are there?

OK, so apr libs are in /usr/lib64, which should be in the lib search
path by default.

Could you please check, if adding /usr/local/apr/lib to your
LD_LIBRARY_PATH shel environment variable in addition to java.lib.path
helps?

Regards,

Rainer

 - Original Message 
 From: Rainer Jung [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, October 2, 2008 3:27:02 PM
 Subject: Re: Native library issue on RHEL5
 
 John Ozarchuk schrieb:
 Hello,
  
 I am running Apache-tomcat 6.0.1.14 
 on Redhat Enterprise 5.2, and I am having trouble getting Catalina.sh to use 
 the Apache Tomcat Native Library.  I have run configure, make, and make 
 install on 
 the Native (tomcat-native-1.1.10-src) and it has installed libraries in 
 /usr/local/apr/lib:
  
 [EMAIL PROTECTED] ~]# ll 
 /usr/local/apr/lib
 total 
 2360
 -rw-r--r-- 1 root root 1518062 Oct  
 2 11:21 libtcnative-1.a
 -rwxr-xr-x 1 root root 893 Oct  
 2 11:21 libtcnative-1.la
 lrwxrwxrwx 1 root root  23 Oct  
 2 11:21 libtcnative-1.so - libtcnative-1.so  
 .0.1.10
 lrwxrwxrwx 1 root root  23 Oct  
 2 11:21 libtcnative-1.so.0 - libtcnative-1.  
 so.0.1.10
 -rwxr-xr-x 1 root root  853799 Oct  
 2 11:21 libtcnative-1.so.0.1.10
 drwxr-xr-x 2 root root4096 Oct  
 2 11:21 pkgconfig
  
 I have added this path to 
 $CATALINA_HOME/Catalina.sh:
  
 JAVA_OPTS=-Djava.library.path=/usr/local/apr/lib/
  
 When I run “Catalina.sh start” to 
 startup the Tomcat server, it still is not detecting these libraries, per 
 Catalina.out:
  
 INFO: The Apache Tomcat Native 
 library which allows optimal performance in production environments was not 
 found on the java.library.path: /usr/local/apr/lib/
 Oct 2, 2008 12:59:40 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 
 on http-8080
 Oct 2, 2008 12:59:40 PM 
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 
 529 ms
  
 Am I missing something here?   Any 
 help is greatly appreciated.  Thank you.
 
 libtcnative needs he apr libraries too. Use ldd
 /usr/local/apr/lib/libtcnative-1.so to check, whether the apr libraries
 can be found and where they are. You might need to add their path to the
 java.library.path too.
 
 BTW: Consider updating to Tomcat 6.0.18 and tcnative 1.1.15.
 
 Regards,
 
 Rainer
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

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


  

Re: Regd....ASF Bugzilla - Bug 45015 (Quoting in attributes)

2008-10-06 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Hi,
 
 I tried to give the system property in three ways
 
 a) set org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
That sets an environment variable, not a system property.

 b) ant -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
Ant isn't Java - that won't work.

 c) in the build.xml property
 name=org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING
 value=false/
That sets a build property, not a system property.

The simplest way to do what you are trying to do is set ANT_OPTS. ie:
set ANT_OPTS=-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

Mark



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



Re: how to avoid multiple requests from the same client

2008-10-06 Thread colin_

any idea how i would do that, or where to find an example?


Mark Thomas-18 wrote:
 
 It is something you need to handle within your application.
 
 This has been discussed before in the archives. Try searching
 http://tomcat.markmail.org/ for multiple requests
 
 Mark
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-avoid-multiple-requests-from-the-same-client-tp19836189p19838654.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: how to avoid multiple requests from the same client

2008-10-06 Thread paul.ockleford
Could you just use javascript? 

-Original Message-
From: colin_ [mailto:[EMAIL PROTECTED] 
Sent: 06 October 2008 15:07
To: users@tomcat.apache.org
Subject: Re: how to avoid multiple requests from the same client


any idea how i would do that, or where to find an example?


Mark Thomas-18 wrote:
 
 It is something you need to handle within your application.
 
 This has been discussed before in the archives. Try searching 
 http://tomcat.markmail.org/ for multiple requests
 
 Mark
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context:
http://www.nabble.com/how-to-avoid-multiple-requests-from-the-same-client-tp
19836189p19838654.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



***
This  message  may  contain  confidential and  privileged  information.
If you  are not the  intended recipient  you should not  disclose, copy
or distribute information in this e-mail or take any action in reliance
on its contents.  To do so is strictly  prohibited and may be unlawful.
Please  inform  the  sender that  this  message has  gone astray before
deleting it.  Thank you.

2008 marks the 60th anniversary of the NHS.  It's an opportunity to pay
tribute to the NHS staff and volunteers who help shape the service, and
celebrate their achievements.

If you work for the NHS  and  would like  an NHSmail  email account, go
to: www.connectingforhealth.nhs.uk/nhsmail
***


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



RE: how to avoid multiple requests from the same client

2008-10-06 Thread Martin Gainty

you can implement single sign on access with SingleSignOn Valve
Host name=localhost ...
  ...
  Valve className=org.apache.catalina.authenticator.SingleSignOn /
  ...
/Host
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

is this what you're looking for?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 6 Oct 2008 07:36:49 -0700
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: RE: how to avoid multiple requests from the same client
 
 
 
 paul.ockleford wrote:
  
  Could you just use javascript? 
  
  
 
 no, the whole frontend of our framework is in java
 -- 
 View this message in context: 
 http://www.nabble.com/how-to-avoid-multiple-requests-from-the-same-client-tp19836189p19839203.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

RE: Regd....ASF Bugzilla - Bug 45015 (Quoting in attributes)

2008-10-06 Thread subir.sasikumar
Hi Mark,

Thanks a lot :)
You have given crystal clear solution.

Regards
Subir

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2008 6:49 PM
To: Tomcat Users List
Subject: Re: RegdASF Bugzilla - Bug 45015 (Quoting in attributes)

[EMAIL PROTECTED] wrote:
 Hi,

 I tried to give the system property in three ways

 a) set org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
That sets an environment variable, not a system property.

 b) ant -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
Ant isn't Java - that won't work.

 c) in the build.xml property
 name=org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING
 value=false/
That sets a build property, not a system property.

The simplest way to do what you are trying to do is set ANT_OPTS. ie:
set
ANT_OPTS=-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

Mark



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


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

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



RE: Basic Tribes Questions

2008-10-06 Thread Mike Wannamaker
Hi Filip

Thanks for the info.  However, I don't see the documentation for the 
setters/getters you mention below?
Also I'm having issues while debugging.  When I hit a breakpoint in my code and 
while stepping thru code, I get DISAPPEARED/ADDED messages over and over on the 
other server?  I would think the heartbeat is running in a separate thread for 
both send/receive?  How to solve this, bump the heartbeat timeout?

TIA
Mike

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: October 3, 2008 2:51 PM
To: Tomcat Users List
Subject: Re: Basic Tribes Questions

answers inline

Mike Wannamaker wrote:
 Hi, I am currently trying to use Tribes as the clustering layer on our server.

 My startup code looks like this.

 if(_tribesChannel == null)
 { // nothing to do if already running
 try
 {
 _tribesChannel = new GroupChannel();
 // must be done before start:
   
no need to use any properties, there are getters and setters for everything
and they are all documented here
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html
 
 _tribesChannel.getMembershipService().getProperties().put(mcastPort, 
 String.valueOf(_mainPort));
 
 _tribesChannel.getMembershipService().getProperties().put(mcastAddress, 
 _multicastIPAddr);
   
not sure what you are trying to do in the code below. if you wanna set 
the port, then simply do it.
the membership will pick it up automatically
 if(_ancillaryPort  0)
 {
 
 _tribesChannel.getMembershipService().getProperties().put(tcpListenPort, 
 String.valueOf(_ancillaryPort));
 // hack alert: Default Tribes instantiation (Tomcat 
 6.0.16) does not read value for tcpListenPort from properties.
 // Therefore, set it directly
 ChannelReceiver receiver = 
 _tribesChannel.getChannelReceiver();
 if(receiver.getPort() != _ancillaryPort)
 {
 if(receiver instanceof ReceiverBase)
 {
 ((ReceiverBase)receiver).setPort(_ancillaryPort);
 }
 }
 }

 
 _tribesChannel.addMembershipListener(_tribesMembershipListener);
 _tribesChannel.addChannelListener(_tribesChannelListener);
 _tribesChannel.start(CHANNEL_COMPONENTS);
 }
 catch(ChannelException ex)
 {
 try { _tribesChannel.stop(CHANNEL_COMPONENTS); } 
 catch(Throwable t) { /*gulp*/}
 _tribesChannel = null;
 throw new RuntimeException(ex); // todo, exception handling?
 }
 }

 My Question is that when I start Server #1, then Server #2, then unplug 
 Server #2 network cable, Server #1 gets the DISAPPEARED message but Server #2 
 just keeps logging the message below.  As I write this it's at attempt #120.  
 How do I get this to notify on Server #2 that Server #1 has DISAPPEARED or 
 can I set the number of attempts to a maximum number before notifying?
   
the message you are getting is cause the membership tries to recover.
you can limit this, by doing
setRecoveryEnabled(true|false);
setRecoveryCounter(nr-of-times-to-try-recover)

also, you haven't added in the TCP failure detector, which adds one more 
layer of protection
see it in this default configuration
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

you should still get the member disappeared error (eventually after the 
timeout), if you can supply a simple test case, I can try it out over here.

best
Filip

 Also is there any other documentation for tribes, other than the limited docs 
 on the apache site?

   INFO: Done sleeping, membership established, start level:8
   Oct 3, 2008 1:12:44 PM 
 org.apache.catalina.tribes.transport.nio.NioReplicationTask run
   WARNING: IOException in replication worker, unable to drain channel. 
 Probable cause: Keep alive socket closed[An existing connection was
 forcibly closed by the remote host].
   Oct 3, 2008 1:12:44 PM 
 org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread run
   WARNING: Unable to send mcast message.
   java.net.NoRouteToHostException: No route to host: Datagram send failed
   at java.net.PlainDatagramSocketImpl.send(Native Method)
   at java.net.DatagramSocket.send(DatagramSocket.java:612)
   at 
 org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385)
   at 
 org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread.run(McastServiceImpl.java:445)
   Oct 3, 2008 1:12:49 PM 
 org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread run
   INFO: Tribes membership, running recovery thread, 

RE: how to avoid multiple requests from the same client

2008-10-06 Thread colin_


mgainty wrote:
 
 
 you can implement single sign on access with SingleSignOn Valve
 Host name=localhost ...
   ...
   Valve className=org.apache.catalina.authenticator.SingleSignOn /
   ...
 /Host
 http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
 
 is this what you're looking for?
 Martin 
 

nope, but thx anyway. i got just 1 web app running. 
my problem is, that a client can fire as much requests as he wants from our
website! in coldfusion for example such requests are catched by the
coldfusion application server and ignored.
-- 
View this message in context: 
http://www.nabble.com/how-to-avoid-multiple-requests-from-the-same-client-tp19836189p19839779.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



[error] (32)Broken pipe: ajp_ilink_send(): send failed

2008-10-06 Thread Sehyia Jalaludheen
Hi,

I am getting the following error messages when I login to a web application
which uses AJP Connector between Tomcat and Apache.

httpd-error log:

 [error] (32)Broken pipe: ajp_ilink_send(): send failed

Page shows

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance
downtime or capacity problems. Please try again later.

Catalina.out has a 503 error message.

POST /servlet/ProcessLogin HTTP/1.1 200 8

GET /servlet/ProcessLogin?action=enter HTTP/1.1 503 458

This happens only when I am logging into the application after a few days
inactivity. Login fails in the first three or four attempts and then the
login is successful.

server.xml

===

!-- Define an AJP 1.3 Connector --

Connector port=8009

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

httpd.conf



ProxyPass /servlet/ ajp://localhost:8009/servlet/

I would like to know if the root of is AJP connection issues or anything
else specific to tomcat/apache and is there any way to resolve this? Please
help.

Thanks

Sehiya


Cannot load JDBC driver class in WebApp-specific lib

2008-10-06 Thread McEahern, Mark S
I have a JNDI resource defined in my application's context.xml like so:

  ?xml version=1.0 encoding=UTF-8?
  Context reloadable=true debug=true allowLinking=true
Resource
  name=jdbc/v5/myjndi
  type=javax.sql.DataSource
  driverClassName=oracle.jdbc.driver.OracleDriver
  password=password
  maxIdle=2
  maxWait=5000
  validationQuery=Select apos;Helloapos; from Dual
  username=username
  url=jdbc:oracle:thin:@host:port:instance
  maxActive=4/
  /Context

When I try to put the ojdbc14.jar in the /WEB-INF/lib/*.jar of my web
application, it results in the following error:

Could not get JDBC Connection; nested exception is
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver
class 'oracle.jdbc.driver.OracleDriver' 

However, if I merely move ojdbc14.jar to the common lib folder, it
works:

  C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib

I'd like to package the ojdbc14.jar inside of my application--not so
much because I expect it to be different across applications, but so as
to minimize Tomcat setup necessary to run my applications.  As much as
possible, I'd like my applications to be self-contained.

How do I get the class loader used for this JNDI resource to use my
application's /WEB-INF/lib folder's jars?

Thanks,



Mark McEahern
Lead Architect
Division of Public Health Informatics and Surveillance
Wisconsin State Lab of Hygiene


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



Re: Heap dump of servlet

2008-10-06 Thread Mohit Anchlia
Is there any way to get just the heapdump of servlet threads?

On Sat, Oct 4, 2008 at 12:16 AM, Leon Rosenberg
[EMAIL PROTECTED] wrote:
 kill -QUIT produces the thread dump, not the heap dump. That's being
 said it works exactly the same way with tomcat as with any other
 application, the whole thread dump is dumped out to the standard out
 which in this case is catalina.out.

 Leon

 On Sat, Oct 4, 2008 at 8:57 AM, Mohit Anchlia [EMAIL PROTECTED] wrote:
 I have a servlet running under tomcat. Question is how do I take haeap
 dump of only servlet instance. On stand alone applications it's easy
 to do with kill -QUIT PID but in this case there is no PID of a
 servlet. If I do on tomcat's PID then I'll get lost.

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



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



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



Re: Tomcat Servlet Bouncy Castle Problem

2008-10-06 Thread Jeng Yu

--- Mark Thomas [EMAIL PROTECTED] wrote:

 Jeng Yu wrote:
  Interestngly, the same RSA public encryption code
 with
  Bouncy Castle library works flawlessly when I
 develop
  it in Netbeans IDE and run it as a java
 application
  (not servlet). In servlet environment, it fails.
 Yes,
  I added cldc_classes.zip class library file from
  Bouncy Castle to compile the code.
 
 Tomcat only loads '.jar' files. '.zip' files will be
 ignored. Rename
 cldc_classes.zip to cdlc_classes.jar and you should
 be good to go.
 
 Mark

Hi Mark!

Thanks a lot. This suggestion from you solved
the problem.

'Preciate it, dude!

Jeng


  

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



Re: Basic Tribes Questions

2008-10-06 Thread Filip Hanik - Dev Lists

there are getters and setters for everything
and they are all documented here
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html

each component has getters/setters, for example, the multicast address

setAddress
getAddress

breakpoints might not work very well, since you are stopping one thread, 
and not really emulating a real scenario.


again, sounds like you have a simple test case, if you can share that, I 
can get more understanding, and help you further.


Filip

Mike Wannamaker wrote:

Hi Filip

Thanks for the info.  However, I don't see the documentation for the 
setters/getters you mention below?
Also I'm having issues while debugging.  When I hit a breakpoint in my code and 
while stepping thru code, I get DISAPPEARED/ADDED messages over and over on the 
other server?  I would think the heartbeat is running in a separate thread for 
both send/receive?  How to solve this, bump the heartbeat timeout?

TIA
Mike

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: October 3, 2008 2:51 PM

To: Tomcat Users List
Subject: Re: Basic Tribes Questions

answers inline

Mike Wannamaker wrote:
  

Hi, I am currently trying to use Tribes as the clustering layer on our server.

My startup code looks like this.

if(_tribesChannel == null)
{ // nothing to do if already running
try
{
_tribesChannel = new GroupChannel();
// must be done before start:
  


no need to use any properties, there are getters and setters for everything
and they are all documented here
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html
  


_tribesChannel.getMembershipService().getProperties().put(mcastPort, 
String.valueOf(_mainPort));

_tribesChannel.getMembershipService().getProperties().put(mcastAddress, 
_multicastIPAddr);
  

not sure what you are trying to do in the code below. if you wanna set 
the port, then simply do it.

the membership will pick it up automatically
  

if(_ancillaryPort  0)
{

_tribesChannel.getMembershipService().getProperties().put(tcpListenPort, 
String.valueOf(_ancillaryPort));
// hack alert: Default Tribes instantiation (Tomcat 6.0.16) does not 
read value for tcpListenPort from properties.
// Therefore, set it directly
ChannelReceiver receiver = 
_tribesChannel.getChannelReceiver();
if(receiver.getPort() != _ancillaryPort)
{
if(receiver instanceof ReceiverBase)
{
((ReceiverBase)receiver).setPort(_ancillaryPort);
}
}
}

_tribesChannel.addMembershipListener(_tribesMembershipListener);
_tribesChannel.addChannelListener(_tribesChannelListener);
_tribesChannel.start(CHANNEL_COMPONENTS);
}
catch(ChannelException ex)
{
try { _tribesChannel.stop(CHANNEL_COMPONENTS); } 
catch(Throwable t) { /*gulp*/}
_tribesChannel = null;
throw new RuntimeException(ex); // todo, exception handling?
}
}

My Question is that when I start Server #1, then Server #2, then unplug Server 
#2 network cable, Server #1 gets the DISAPPEARED message but Server #2 just 
keeps logging the message below.  As I write this it's at attempt #120.  How do 
I get this to notify on Server #2 that Server #1 has DISAPPEARED or can I set 
the number of attempts to a maximum number before notifying?
  


the message you are getting is cause the membership tries to recover.
you can limit this, by doing
setRecoveryEnabled(true|false);
setRecoveryCounter(nr-of-times-to-try-recover)

also, you haven't added in the TCP failure detector, which adds one more 
layer of protection

see it in this default configuration
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

you should still get the member disappeared error (eventually after the 
timeout), if you can supply a simple test case, I can try it out over here.


best
Filip

  

Also is there any other documentation for tribes, other than the limited docs 
on the apache site?

INFO: Done sleeping, membership established, start level:8
Oct 3, 2008 1:12:44 PM 
org.apache.catalina.tribes.transport.nio.NioReplicationTask run
WARNING: IOException in replication worker, unable to drain channel. 
Probable cause: Keep alive socket closed[An existing connection was
forcibly closed by the remote host].
Oct 3, 2008 1:12:44 PM 
org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread run
WARNING: Unable to send mcast message.
java.net.NoRouteToHostException: No route to host: Datagram send failed
at 

RE: Heap dump of servlet

2008-10-06 Thread Caldarale, Charles R
 From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
 Subject: Re: Heap dump of servlet

 Is there any way to get just the heapdump of servlet threads?

Since the heap is shared by all threads in the JVM, there's no such thing as a 
heapdump of servlet threads.  Use jmap or similar tools to see what's in the 
heap of a running JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: how to avoid multiple requests from the same client

2008-10-06 Thread Tim J Schumacher
We do this in our project by using the TokenProcessor in struts.  Are 
you using struts by chance?


-Tim

colin_ wrote:

mgainty wrote:
  

you can implement single sign on access with SingleSignOn Valve
Host name=localhost ...
  ...
  Valve className=org.apache.catalina.authenticator.SingleSignOn /
  ...
/Host
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

is this what you're looking for?
Martin 




nope, but thx anyway. i got just 1 web app running. 
my problem is, that a client can fire as much requests as he wants from our

website! in coldfusion for example such requests are catched by the
coldfusion application server and ignored.
  


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



RE: [error] (32)Broken pipe: ajp_ilink_send(): send failed

2008-10-06 Thread Caldarale, Charles R
 From: Sehyia Jalaludheen [mailto:[EMAIL PROTECTED]
 Subject: [error] (32)Broken pipe: ajp_ilink_send(): send failed

 This happens only when I am logging into the application
 after a few days inactivity. Login fails in the first three
 or four attempts and then the login is successful.

Any chance the target system has gone into some form of sleep mode and takes a 
while to wake back up?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: [error] (32)Broken pipe: ajp_ilink_send(): send failed

2008-10-06 Thread Sehyia Jalaludheen
Hi Chuck,

Thanks for the quick reply.

I am not sure about it. But a few other machines in the same network
also have the same Login issues for this application.

Thanks
Sehiya



On Mon, Oct 6, 2008 at 11:39 AM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Sehyia Jalaludheen [mailto:[EMAIL PROTECTED]
  Subject: [error] (32)Broken pipe: ajp_ilink_send(): send failed
 
  This happens only when I am logging into the application
  after a few days inactivity. Login fails in the first three
  or four attempts and then the login is successful.

 Any chance the target system has gone into some form of sleep mode and
 takes a while to wake back up?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

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




RE: Deploying to a subfolder

2008-10-06 Thread McEahern, Mark S
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, October 05, 2008 1:41 PM
 To: Tomcat Users List
 Subject: Re: Deploying to a subfolder
 
 I can repeat this now. It looks like I missed this 
 combination in my testing. I'll get it fixed for 6.0.19+
 
 Mark

Awesome, thanks for looking into that.

Do you have an ETA for that release?

Thanks!

Mark McEahern
Lead Architect
Division of Public Health Informatics and Surveillance
Wisconsin State Lab of Hygiene
608-221-0483


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



RE: Heap dump of servlet

2008-10-06 Thread Martin Gainty

i would use either jmap, jhat or jconsole..instructions located at
http://www.rtidemo.org/drupal/node/122

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 6 Oct 2008 08:23:01 -0700
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Heap dump of servlet
 
 Is there any way to get just the heapdump of servlet threads?
 
 On Sat, Oct 4, 2008 at 12:16 AM, Leon Rosenberg
 [EMAIL PROTECTED] wrote:
  kill -QUIT produces the thread dump, not the heap dump. That's being
  said it works exactly the same way with tomcat as with any other
  application, the whole thread dump is dumped out to the standard out
  which in this case is catalina.out.
 
  Leon
 
  On Sat, Oct 4, 2008 at 8:57 AM, Mohit Anchlia [EMAIL PROTECTED] wrote:
  I have a servlet running under tomcat. Question is how do I take haeap
  dump of only servlet instance. On stand alone applications it's easy
  to do with kill -QUIT PID but in this case there is no PID of a
  servlet. If I do on tomcat's PID then I'll get lost.
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Using tomcat to hold many open connections.

2008-10-06 Thread uprooter

Thanks johnny.
Will TC can survive 20k polling clients ?


Johnny Kewl wrote:
 
 
 - Original Message - 
 From: uprooter [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, October 06, 2008 4:29 PM
 Subject: Using tomcat to hold many open connections.
 
 

 Hi.
 I'm looking for a server that has to hold many (web services) remote 
 clients
 for controlling them.
 I want to do things like sending power off command to a bunch of machines
 remotely.
 The clients are usually windows machines behind firewalls  NAT or web
 proxies that only allow HTTP (this is why I thought of webservices)

 The regular request-response fashion that servlet follows  is not
 suitable
 here since the initiator of the operation is the server.
 What can I do in order to solve this and still use web services?
 
 HTTP is pull only Browser asked a question, server answers
 But technologies like Ajax (javascript with a fancy name) simulate real
 time 
 display... they can poll.
 So thats how you get your charts...
 
 (talks to server)
 
 TC will service those requests but inside TC you can do anything... and in 
 your case beside the monitoring stuff you going to have a machine client.
 ie either the machines are mini webservers and or they using a serial 
 protocol... so you have a machine service that talks to them, and
 monitors 
 them.
 The design may even include talking to a PLC or some some other
 controller, 
 possibly even relay logic if the there are safety aspects... ie cant have 
 the factory shutdown just because a web server crashed, so got to think 
 about that.
 
 For cool charting and that sort of thing, you looking at rich clients...
 TC 
 has GWT, and Flex and our Pojo Application Server which allows you to run 
 normal Java at the client as well for cool real time graphs and that sort
 of 
 thing. What the PAS can also do is run mixed native and you going to need
 it 
 because java is not hot on serial/usb parellel etc... which you will need 
 for the machine interface... typically the drivers and the interface are
 not 
 done in Java.
 
 Really cool project you got there... there are lots of skills needed but I 
 would definitely use TC.
 You outside the box, crossing over between engineering, electronics and IT 
 so you not going to get too much help in any one mailing list... but it
 can 
 be done if you know the protocol on the machines, and you good... in the
 end 
 you'll watch and control those machines from anywhere... lucky devil, its
 a 
 technical orgasm.. ha ha
 
 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---
 
 
 
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-tomcat-to-hold-many-open-connections.-tp19839078p19841733.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Servlet url mapping work incorrect when many servlets have one code

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mihail,

Druzhiinin Mihail wrote:
 We have 2 servlets with one code and different init parameters mapped to
 different url.

So, you mean to say that you have a single servlet deployed on two
different URL patterns.

 On high load requests to first servlet handled by second
 servlet.

This is highly unlikely. What is the behavior you are actually observing?

 I [configure] different servlets by init params. It apparent when second
 servlet was called.

What is the symptom?

 What I do illegal?

Your web.xml looks just fine. Could you post some of the code? I suspect
this is a data-sharing issue, and not a Tomcat problem. Do you use any
non-final static members in your servlet class?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqSLgACgkQ9CaO5/Lv0PAMfgCeLfFRhpRUj2EKiusdTYwf3Se/
OSwAn3pOrEZG6rSw2OWPAnVoCGFU29MS
=pf3w
-END PGP SIGNATURE-

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



Re: Deploying to a subfolder

2008-10-06 Thread Mark Thomas
McEahern, Mark S wrote:
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, October 05, 2008 1:41 PM
 To: Tomcat Users List
 Subject: Re: Deploying to a subfolder

 I can repeat this now. It looks like I missed this 
 combination in my testing. I'll get it fixed for 6.0.19+

 Mark
 
 Awesome, thanks for looking into that.
 
 Do you have an ETA for that release?
I am afraid not. However, the patch is a simple one. If you need the fix in
a hurry, you could with a local pacth. Shout if you want/need the steps to
do this.

Mark



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



Re: Cross Context Session in Tomact

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maciej,

Bajolek, Maciej wrote:
 Basically the problem is: how can webAppA share the session object with
 webAppB. Both apps are deployed within the same instance of Tomact.

The servlet specification (section 7.3) specifies that session scope is
limited to a single web application, and specifically says that session
objects (or their contents) must never be shared between applications.

Given this, I don't think Tomcat itself is going to help you out, here.

 A simple example of how I want it to work is:
 
 http://localhost/webappa/setSessionAttr.jsp   - sets session attr to
 value
 
 http://localhost/webappa/getSessionAttr.jsp   - gets session attr ...
 and the attribute is set to value

This ought to work without any problems. It's when you want:

http://localhost/webappb/getSessionAttr.jsp

... to read the stuff set in webappa/setSessionAttr.jsp that it won't work.

 The only solutions I can think of are:
 
 1.Implement custom SessionManager that stores/reads session
 objects in some common repository e.g.: shared library (common
 classloader)

This would work, but is fraught with difficulty because you have to
worry about releasing memory when you are finished with it.

 2.implement some listeners for all applications that will notify
 each other when session is created/destroyed or attrs set/unset

This is similar to #2 because you still need to store everything somewhere.

This certainly is a tough problem. :(

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqTe4ACgkQ9CaO5/Lv0PAQYgCffqAIwfn4EEDio+35VYVH6pIq
sWkAn1itFA4DgLR4fU4keDR/bcTwrKWF
=3hiT
-END PGP SIGNATURE-

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



Re: Cannot load JDBC driver class in WebApp-specific lib

2008-10-06 Thread Juha Laiho
McEahern, Mark S wrote:
 I have a JNDI resource defined in my application's context.xml like so:
 
   ?xml version=1.0 encoding=UTF-8?
   Context reloadable=true debug=true allowLinking=true
 Resource
   name=jdbc/v5/myjndi
   type=javax.sql.DataSource
   driverClassName=oracle.jdbc.driver.OracleDriver
...

   maxActive=4/
   /Context
 
 When I try to put the ojdbc14.jar in the /WEB-INF/lib/*.jar of my web
 application, it results in the following error:
 
 Could not get JDBC Connection; nested exception is
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver
 class 'oracle.jdbc.driver.OracleDriver' 

That happens because the resources are set up with the server classpath
(Common classloader), which does not include any of the webapp libraries.
See http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
for classloader details.

It has to be this way, because the resources actually do not belong
into the webapp, but are part of the container.

 I'd like to package the ojdbc14.jar inside of my application--not so
 much because I expect it to be different across applications, but so as
 to minimize Tomcat setup necessary to run my applications.  As much as
 possible, I'd like my applications to be self-contained.
 
 How do I get the class loader used for this JNDI resource to use my
 application's /WEB-INF/lib folder's jars?

I don't think you can; you'll need to weigh the pros and cons of different
approaches here. You already have a feeling about the pros and cons of the
standard, JNDI-based, approach. The other way (in order to be able to
package the Oracle JARs within your application) would be to let go of
JNDI, and declare your database dependencies in a more direct way. Just
place the connection descriptor and account details into a properties file
within WEB-INF, and have a database interface class to pick them up from
there at application startup.
-- 
..Juha

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



RE: Apache DirectoryIndex and mod_jk ForwardDirectories not playing nicely

2008-10-06 Thread Townsley, Charlotte
Hello all, 

I haven't received any replies, probably because I didn't explain the
problem very clearly. 
 
I created a band aid for the problem I encountered with mod_jk and
apache not handling DirectoryIndex correctly.  Essentially I used
mod_rewrite to check for index.shtml and pass to index.page when needed.


If anyone has any other ideas, please let me know. This is not my area
of expertise. 


Here is what I did with mod_rewrite:
__
These two lines are the existing mod rewrites.  It just disables TRACE
and TRACK HTTP methods as a security precaution.

RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

These next three are for directory requests:
  line 1: if DocRoot/Requested-File is a directory
  line 2: and if DocRoot/Requested-Directory does not contain
index.shtml
  line 3: rewrite request to Requested-Directory/index.page
 
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}//index.shtml !-f
RewriteRule / %{REQUEST_URI}index.page [L,NC,QSA,R=301]

__
And these two handle the default document when index.shtml does not
exist.
  line 1: if DocRoot/EDS/index.shtml does not exist
  line 2: and request is /, then rewrite request for EDS/index.page 
 
RewriteCond %{DOCUMENT_ROOT}/EDS/index.shtml !-f
RewriteRule ^/$ %{REQUEST_URI}EDS/index.page [L,NC,QSA,R=301]
 
__

The downside for this is our virtual Host entries have grown with the
addition of the rules.  
 
VirtualHost 10.5.128.143:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /cust/IBMHttpServer/htdocs/egov
 ServerName www.domain.us
 ScriptAlias /cgi-bin /cust/IBMHttpServer/cgi-bin
 DirectoryIndex /EDS/index.shtml
 CheckSpelling off
 RewriteEngine on
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}//index.shtml !-f
 RewriteRule / %{REQUEST_URI}index.page [L,NC,QSA,R=301]
 RewriteCond %{DOCUMENT_ROOT}/EDS/index.shtml !-f
 RewriteRule ^/$ %{REQUEST_URI}EDS/index.page [L,NC,QSA,R=301]
 JkMount  /*.page ajp13
 JkOptions -ForwardDirectories
/VirtualHost

Charlotte Townsley
Information Analyst - Web Developer 



-Original Message-
From: Townsley, Charlotte [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2008 5:18 PM
To: users@tomcat.apache.org
Subject: Apache DirectoryIndex and mod_jk ForwardDirectories not playing
nicely

 
 
I'm trying to configure mod_jk 1.2.16.with Apache 1.3.26 and tomcat
5.0.28 on Solaris 9. I compiled the mod_jk from source for the Apache
version. Unfortunately, I'm stuck with this environment. 
 
Behavior with mod_jk ForwardDirectories:
 
When index.shtml exists

*   
GOOD http://www.domain.com/EDS/index.shtml - Loads as desired
*   
GOOD http://www.domain.com/EDS/index.page  - Loads as desired
*   
FAIL http://www.domain.com/EDS - Pulls index.page from Tomcat,
ignoring Apache DirectoryIndex
*   
FAIL http://www.domain.com/EDS/ - Pulls index.page from Tomcat,
ignoring Apache DirectoryIndex
*   
FAIL http://www.domain.com/ - Displays Tomcat site chooser,
ignoring Apache DirectoryIndex (which would display EDS/index.shtml) 

And now when index.shtml does not exist

*   GOOD http://www.domain.com/EDS - Pulls index.page from Tomcat,
ignoring Apache DirectoryIndex 
*   GOOD http://www.domain.com/EDS/ - Pulls index.page from Tomcat,
ignoring Apache DirectoryIndex 
*   GOOD http://www.domain.com/ - Displays Tomcat site chooser,
ignoring Apache DirectoryIndex (which would display EDS/index.shtml)


Behavior without mod_jk ForwardDirectories option:
 
When index.shtml exists

*   
GOOD http://www.domain.com/EDS/index.shtml - Loads as desired
*   
GOOD http://www.domain.com/EDS/index.page  - Loads as desired
*   
GOOD http://www.domain.com/EDS - Pulls index.shtml from Apache
DirectoryIndex
*   
GOOD http://www.domain.com/EDS/ - Pulls index.shtml from Apache
DirectoryIndex
*   
GOOD http://www.domain.com/ - Displays /EDS/index.shtml

And now when index.shtml does not exist

*   
FAIL http://www.domain.com/EDS - Apache Access Denied error
(does not send request for directory EDS to Tomcat)
*   
FAIL http://www.domain.com/EDS/ - Apache Access Denied error
(does not send request for directory EDS to Tomcat)
*   
FAIL http://www.domain.com/ - Apache Access Denied error (does
not send request for directory EDS to Tomcat)

Relevant apache configuration:
LoadModule jk_module libexec/mod_jk.so.0.0.0 JkWorkersFile
/cust/IBMHttpServer/conf/jk/worker.properties
JkShmFile   /cust/IBMHttpServer/logs/mod_jk.shm
JkLogFile/cust/IBMHttpServer/logs/mod_jk.log
JkLogLevel  debug
JkLogStampFormat [%a %b %d 

Reloading Tomcat Server

2008-10-06 Thread Barry Fawthrop
To All

I have a simple website that reads third party RSS feeds and displays them.
(1) I have tried with DocBuilder
(2) tried with rssutils
(3) Even tried with the rss xml file downloaded locally (using wget) and
then a reading the local file.

All three have the same Issue. You can get it the first time or within 3
minutes and then it stops and Tomcat shows the 500 Error Page.

I still do not understand tomcat enough to be able to trace or debug
correctly the error messages received.


My current solution is to stop and start the tomcat server every 2
minutes. I have tried this with Cron. But I keep getting CRON:
Authentication Failure   in the /var/log/syslog file.
The crontab was created using crontab -e (when logged in as root) and
thus should be run as root. But still fails.


Any help would be much appreciated.

Thank You
Barry

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



Re: Reloading Tomcat Server

2008-10-06 Thread Pid
Barry Fawthrop wrote:
 To All
 
 I have a simple website that reads third party RSS feeds and displays them.
 (1) I have tried with DocBuilder
 (2) tried with rssutils
 (3) Even tried with the rss xml file downloaded locally (using wget) and
 then a reading the local file.
 
 All three have the same Issue. You can get it the first time or within 3
 minutes and then it stops and Tomcat shows the 500 Error Page.
 
 I still do not understand tomcat enough to be able to trace or debug
 correctly the error messages received.
 
 
 My current solution is to stop and start the tomcat server every 2
 minutes. 

No! Bad!

Your tomcat version  operating system variant (some version of linux?)
would be useful.

Try to locate the main tomcat logfile, 'catalina.out' in the tomcat/logs
directory.  This logfile should contain a detailed error  stacktrace
for the 500 error page, please send that in your reply.


p



 I have tried this with Cron. But I keep getting CRON:
 Authentication Failure   in the /var/log/syslog file.
 The crontab was created using crontab -e (when logged in as root) and
 thus should be run as root. But still fails.
 
 
 Any help would be much appreciated.
 
 Thank You
 Barry
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Johnny Kewl


- Original Message - 
From: uprooter [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, October 06, 2008 6:48 PM
Subject: Re: Using tomcat to hold many open connections.




Thanks johnny.
Will TC can survive 20k polling clients ?


How much pipe do you have?
How real time do you want it?
Are you images displayed on google earth, or just 1 byte that represent on 
or off?


This is the design you have to do, this is the engineering you have to do... 
that will tell you how much pipe you need, TC is very likely not the 
restiriction, and if it was, you would use more than one.


Clients only poll for a specific item, if they open, if the user is on that 
view, and that in itself is no the issue normally... its a small question...
 have you got data for me? ... a few bytes... but then if you deliver 
google earth... thats the issue and there are other technologies here like 
ETAGS as work... ie if data has not changed... nothing is sent.


Thats the way it is... you are never going to be able to push to a client on 
a dail up for example... its the only way.


Server watches the machines close to perfect real time the web gets that 
as fast as the web allows... just think about your browser displaying 
video... theres a pragmatic limits, and thats what makes one solution well 
engineered and another a blindly applied technology, thats a disaster... you 
can make it good or you can make a terrible solution


Can you calculate the byte traffic?... that will tell you which way to go ;)
You got to engineer it... and becareful of all the IT spam out there, make 
sure you understand it...


Good Luck...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---



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



RE: Cannot load JDBC driver class in WebApp-specific lib

2008-10-06 Thread Martin Gainty

remembering every lookup is a complete roundtrip which can be slow during peak 
periods
try to maintain as direct a path as possible to the DB with as few lookups as 
possible to ensure best performance

thanks,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 6 Oct 2008 20:39:35 +0300
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Cannot load JDBC driver class in WebApp-specific lib
 
 McEahern, Mark S wrote:
  I have a JNDI resource defined in my application's context.xml like so:
  
?xml version=1.0 encoding=UTF-8?
Context reloadable=true debug=true allowLinking=true
  Resource
name=jdbc/v5/myjndi
type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
 ...
 
maxActive=4/
/Context
  
  When I try to put the ojdbc14.jar in the /WEB-INF/lib/*.jar of my web
  application, it results in the following error:
  
  Could not get JDBC Connection; nested exception is
  org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver
  class 'oracle.jdbc.driver.OracleDriver' 
 
 That happens because the resources are set up with the server classpath
 (Common classloader), which does not include any of the webapp libraries.
 See http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
 for classloader details.
 
 It has to be this way, because the resources actually do not belong
 into the webapp, but are part of the container.
 
  I'd like to package the ojdbc14.jar inside of my application--not so
  much because I expect it to be different across applications, but so as
  to minimize Tomcat setup necessary to run my applications.  As much as
  possible, I'd like my applications to be self-contained.
  
  How do I get the class loader used for this JNDI resource to use my
  application's /WEB-INF/lib folder's jars?
 
 I don't think you can; you'll need to weigh the pros and cons of different
 approaches here. You already have a feeling about the pros and cons of the
 standard, JNDI-based, approach. The other way (in order to be able to
 package the Oracle JARs within your application) would be to let go of
 JNDI, and declare your database dependencies in a more direct way. Just
 place the connection descriptor and account details into a properties file
 within WEB-INF, and have a database interface class to pick them up from
 there at application startup.
 -- 
 ..Juha
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Authentication behaviour

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maurizio,

Maurizio Lotauro wrote:
 I already read this rfc and now I have read it again, but I'm unable to found 
 where it 
 describe that the server can answer with 401 before the client has finished  
 to send all data.

There's nothing that says it can't, either. There's no reason for the
server to wait for all the request data when it knows what it's going to
return already. The HTTP specifications give a lot of latitude to both
clients and servers. Is it a problem to get this 401 before the request
is complete? You need to upgrade your client to tolerate this behavior,
because I'm certain it won't be changed.

 In that case the client must anyway send the rest of data before making a new 
 request (or 
 close the connection). I don't see any advantage to early send the 401 
 (that was what 
 caused the problem to my client).

The advantage is higher performance on the server.

 The rfc 2616, section 6, write: After receiving and interpreting a request 
 message, a server 
 responds with an HTTP response message..
 The request message include the message body (see section 5).
 
 It seems to me that send the response before receive the whole request 
 doesn't follow the 
 rfc.
 What do you think?

That's a reasonable interpretation of the spec, but obviously not a
practical one. What is the problem with the server ignoring this
additional data?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqX88ACgkQ9CaO5/Lv0PBK7wCff1XrqunzQYWLQUKqyQD3qyoi
tnsAoJqlBx7jrrWz03m2dHVhG5bwwTQ9
=01qb
-END PGP SIGNATURE-

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



Question about TLS Ciphers in tomcat

2008-10-06 Thread Farid Izem
Hi,

I'm trying to enforce the https connections of my tomcat server by
disabling weakness ciphers.
In the tomcat documentation, there is a directive cipher which allow
to specify a list of ciphers.
Has anyone use this directive and how does il work ?

Kind Regards,

Farid

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



Re: Tomcat 5.5.x - Logging Issues

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Piercey,

piercey wrote:
 This setup worked ok in Tomcat 4.1.x, but I decided to upgrade to a
 newer version (with support for JDK 1.4.2).

Note that Tomcat 4.1.x should happily work under JDK 1.4.x.

 Anyway, the problem comes when I try to log in to the webapp, I get an
 Exception with the root cause being:
 java.lang.NoClassDefFoundError: org/apache/log4j/Priority

[snip]

 However now Tomcat is using log4j as its form of logging which isn't
 something I wanted. Is there an easier solution to getting it to behave like
 it did on Tomcat 4.1.x? Admittedly I am a complete noobie when it comes to
 Tomcat (and Java logging) so please excuse my ignorance if I'm making a
 glaring mistake.

If you want to move to Tomcat 5.5 and keep your logging working similar
to your 4.1.x setup, you'll have to read
http://tomcat.apache.org/tomcat-5.5-doc/logging.html (perhaps a second
time).

You are not required to use log4j at the Tomcat level (though it's weird
that you had to put log4j.jar into common/endorsed) to get things to
work. Tomcat really should allow you to load your log4j.jar file from
the webapp's WEB-INF/lib directory (we do this right now on 5.5.26 with
no problems).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqZQUACgkQ9CaO5/Lv0PC9GgCcCIkoXGpp7OvhtO75BZX/ja6M
gXAAnjBysLl1C2ibcW0M0TWqClzUdxNY
=ljD0
-END PGP SIGNATURE-

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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Kees Jan Koster

Dear Uprooter,

I'm looking for a server that has to hold many (web services) remote  
clients

for controlling them.
I want to do things like sending power off command to a bunch of  
machines

remotely.


Building a botnet? :-)


The clients are usually windows machines behind firewalls  NAT or web
proxies that only allow HTTP (this is why I thought of webservices)

The regular request-response fashion that servlet follows  is not  
suitable

here since the initiator of the operation is the server.
What can I do in order to solve this and still use web services?


If you have the resources, you can just block in the servlet on your  
server. It's pretty expensive since Tomcat uses a thread per request I  
believe. Java threads are expensive (256kB each?), so that adds up  
quickly. You could spend some time tuning your thread stacks, though.  
Depending on your actual number of clients, you should be able to get  
this to work with a few GB of RAM.


But then, 20K client polling once an hour might be cheaper. You may  
want to find a way to stagger the requests though.


--
Kees Jan

http://java-monitor.com/forum/
[EMAIL PROTECTED]
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin  
Disraeli



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



Re: Question about TLS Ciphers in tomcat

2008-10-06 Thread Mark Thomas
Farid Izem wrote:
 Hi,
 
 I'm trying to enforce the https connections of my tomcat server by
 disabling weakness ciphers.
 In the tomcat documentation, there is a directive cipher which allow
 to specify a list of ciphers.
 Has anyone use this directive and how does il work ?

It is ciphers not cipher.

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

The ciphers enabled by default with a 1.6.0_05 JVM are:
SSL_RSA_WITH_RC4_128_MD5
SSL_RSA_WITH_RC4_128_SHA
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_DHE_RSA_WITH_AES_128_CBC_SHA
TLS_DHE_DSS_WITH_AES_128_CBC_SHA
SSL_RSA_WITH_3DES_EDE_CBC_SHA
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
SSL_RSA_WITH_DES_CBC_SHA
SSL_DHE_RSA_WITH_DES_CBC_SHA
SSL_DHE_DSS_WITH_DES_CBC_SHA
SSL_RSA_EXPORT_WITH_RC4_40_MD5
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA

The full list (all the ones you can use) is:
SSL_RSA_WITH_RC4_128_MD5
SSL_RSA_WITH_RC4_128_SHA
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_DHE_RSA_WITH_AES_128_CBC_SHA
TLS_DHE_DSS_WITH_AES_128_CBC_SHA
SSL_RSA_WITH_3DES_EDE_CBC_SHA
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
SSL_RSA_WITH_DES_CBC_SHA
SSL_DHE_RSA_WITH_DES_CBC_SHA
SSL_DHE_DSS_WITH_DES_CBC_SHA
SSL_RSA_EXPORT_WITH_RC4_40_MD5
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_RSA_WITH_NULL_MD5
SSL_RSA_WITH_NULL_SHA
SSL_DH_anon_WITH_RC4_128_MD5
TLS_DH_anon_WITH_AES_128_CBC_SHA
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
SSL_DH_anon_WITH_DES_CBC_SHA
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
TLS_KRB5_WITH_RC4_128_SHA
TLS_KRB5_WITH_RC4_128_MD5
TLS_KRB5_WITH_3DES_EDE_CBC_SHA
TLS_KRB5_WITH_3DES_EDE_CBC_MD5
TLS_KRB5_WITH_DES_CBC_SHA
TLS_KRB5_WITH_DES_CBC_MD5
TLS_KRB5_EXPORT_WITH_RC4_40_SHA
TLS_KRB5_EXPORT_WITH_RC4_40_MD5
TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA
TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5

Mark



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



Re: Apache DirectoryIndex and mod_jk ForwardDirectories not playing nicely

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charlotte,

 I'm trying to configure mod_jk 1.2.16.with Apache 1.3.26 and tomcat
 5.0.28 on Solaris 9. I compiled the mod_jk from source for the Apache
 version. Unfortunately, I'm stuck with this environment.

Ouch. Thanks for pointing out that you are stuck, as I'm sure a lot of
folks (including me) would say wow, that environment is outdated and
you should really upgrade.

You should be aware that Tomcat 5.0 is now no longer supported at all
(though the other components are supported at various patch levels...
upgrading to httpd 1.3.41 would be a good idea, though).

 VirtualHost 10.10.10.10:80
 DocumentRoot /cust/IBMHttpServer/htdocs/data
 ServerName www.domain.com
 ScriptAlias /cgi-bin /cust/IBMHttpServer/cgi-bin
 DirectoryIndex /EDS/index.shtml

This is a very odd configuration. Check
http://httpd.apache.org/docs/1.3/mod/mod_dir.html#directoryindex for
configuration syntax. I think that having a / in the DirectoryIndex file
is contributing to the confusion. Are you attempting to set the file
that is served for http://www.domain.com/any/path/that/might/be/there/
to instead serve /EDS/index.shtml? I think you want to do that with
either 'Redirect' or 'Rewrite', not by using DirectoryIndex.

 RewriteEngine on
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]

Note that this can be done with simpler Limit configuration, and
mod_rewrite is kind of a beast.

 JkOptions +ForwardDirectories

You may need to repeat this in your VirtualHost. Note that Tomcat only
gets a crack at the directory request if httpd doesn't find anything.
So, if the request is being served by Tomcat, then your apache httpd
configuration is broken. Why do you want Tomcat serving these
directories, anyway?

 Does anyone have any ideas? I tried increasing the Apache log level
 to debug, thinking it could be a mod_dir problem, but there was no
 additional logging output.
I'm not sure I really understand what you're trying to accomplish. I see
what the configuration is trying to do, but maybe if I understood what
you were really trying to do, I might be able offer a more natural solution.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqacoACgkQ9CaO5/Lv0PA4kQCfS3oABTbgUVpLpPOYIChthlIT
GlMAoL1cXDEJEJDkcdn5LBxF++x07osW
=SPdJ
-END PGP SIGNATURE-

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



Re: how to avoid multiple requests from the same client

2008-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Tim J Schumacher wrote:
 We do this in our project by using the TokenProcessor in struts.  Are
 you using struts by chance?

I think Colin is more worried about repeated requests for /any/ page,
not just form submissions (which struts' tokens are intended to protect).

Colin, what is it that is taking so long in your page requests? Are your
users being asked /not/ to re-load pages when they take a long time to load?

Are you using user sessions in your application? If so, you could write
a filter to store a token in the session during processing of a request.
If you get another request and the session holds that token, you can
refuse to process the (additional) request. Just be aware that you have
to clean that token up eventually or else the user might get stuck until
their session times out.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqa3QACgkQ9CaO5/Lv0PBHMACfUQMD8FaJV8F3pSHtmjYOoZmE
e8wAnAncv8dhtWq4bOI1OygNicToxLBq
=iZwq
-END PGP SIGNATURE-

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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Clemens Eisserer
Jetty has a special api to allow exactly this kind of request efficiently.
The thread is not kept assignd to the sleeping connection, but is re-used.

lg Clemens

2008/10/6 Kees Jan Koster [EMAIL PROTECTED]:
 Dear Uprooter,

 I'm looking for a server that has to hold many (web services) remote
 clients
 for controlling them.
 I want to do things like sending power off command to a bunch of machines
 remotely.

 Building a botnet? :-)

 The clients are usually windows machines behind firewalls  NAT or web
 proxies that only allow HTTP (this is why I thought of webservices)

 The regular request-response fashion that servlet follows  is not suitable
 here since the initiator of the operation is the server.
 What can I do in order to solve this and still use web services?

 If you have the resources, you can just block in the servlet on your server.
 It's pretty expensive since Tomcat uses a thread per request I believe. Java
 threads are expensive (256kB each?), so that adds up quickly. You could
 spend some time tuning your thread stacks, though. Depending on your actual
 number of clients, you should be able to get this to work with a few GB of
 RAM.

 But then, 20K client polling once an hour might be cheaper. You may want to
 find a way to stagger the requests though.

 --
 Kees Jan

 http://java-monitor.com/forum/
 [EMAIL PROTECTED]
 06-51838192

 The secret of success lies in the stability of the goal. -- Benjamin
 Disraeli


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



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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Johnny Kewl


- Original Message - 
From: Kees Jan Koster [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 06, 2008 9:22 PM
Subject: Re: Using tomcat to hold many open connections.



Dear Uprooter,

I'm looking for a server that has to hold many (web services) remote 
clients

for controlling them.
I want to do things like sending power off command to a bunch of 
machines

remotely.


Building a botnet? :-)


The clients are usually windows machines behind firewalls  NAT or web
proxies that only allow HTTP (this is why I thought of webservices)

The regular request-response fashion that servlet follows  is not 
suitable

here since the initiator of the operation is the server.
What can I do in order to solve this and still use web services?


If you have the resources, you can just block in the servlet on your 
server. It's pretty expensive since Tomcat uses a thread per request I 
believe. Java threads are expensive (256kB each?), so that adds up 
quickly. You could spend some time tuning your thread stacks, though. 
Depending on your actual number of clients, you should be able to get 
this to work with a few GB of RAM.


But then, 20K client polling once an hour might be cheaper. You may  want 
to find a way to stagger the requests though.


--
Kees Jan


Yes Kees exactly... this is why I say engineer it... these guys find a 
hammer, and then everything look like a nail... ha ha
Without more details we cant engineer it... but I do think, web services are 
not the right tool, at most an addendum, not the core... and that there are 
two distinct processes at work, web side and machine side... they interface 
but cant be combined... to do this right, you got to be a good general 
coder...


---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread ayden
Im no techo but I think this is might help
Have a look at icefaces.org
if you can work out how to do it and whats required from tomcat side (NIO
etc) please let me know :)


 - Original Message -
 From: Kees Jan Koster [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, October 06, 2008 9:22 PM
 Subject: Re: Using tomcat to hold many open connections.


 Dear Uprooter,

 I'm looking for a server that has to hold many (web services) remote
 clients
 for controlling them.
 I want to do things like sending power off command to a bunch of
 machines
 remotely.

 Building a botnet? :-)

 The clients are usually windows machines behind firewalls  NAT or web
 proxies that only allow HTTP (this is why I thought of webservices)

 The regular request-response fashion that servlet follows  is not
 suitable
 here since the initiator of the operation is the server.
 What can I do in order to solve this and still use web services?

 If you have the resources, you can just block in the servlet on your
 server. It's pretty expensive since Tomcat uses a thread per request I
 believe. Java threads are expensive (256kB each?), so that adds up
 quickly. You could spend some time tuning your thread stacks, though.
 Depending on your actual number of clients, you should be able to get
 this to work with a few GB of RAM.

 But then, 20K client polling once an hour might be cheaper. You may
 want
 to find a way to stagger the requests though.

 --
 Kees Jan

 Yes Kees exactly... this is why I say engineer it... these guys find a
 hammer, and then everything look like a nail... ha ha
 Without more details we cant engineer it... but I do think, web services
 are
 not the right tool, at most an addendum, not the core... and that there
 are
 two distinct processes at work, web side and machine side... they
 interface
 but cant be combined... to do this right, you got to be a good general
 coder...

 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---


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




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



RE: Deploying to a subfolder

2008-10-06 Thread McEahern, Mark S
  -Original Message-
  From: Mark Thomas [mailto:[EMAIL PROTECTED]
  Sent: Sunday, October 05, 2008 1:41 PM
  To: Tomcat Users List
  Subject: Re: Deploying to a subfolder
 
  I can repeat this now. It looks like I missed this 
 combination in my 
  testing. I'll get it fixed for 6.0.19+
 
  Mark
  
  Awesome, thanks for looking into that.
  
  Do you have an ETA for that release?
 I am afraid not. However, the patch is a simple one. If you 
 need the fix in a hurry, you could with a local pacth. Shout 
 if you want/need the steps to do this.

That would be very helpful, thanks!

// m


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



Re: Question about TLS Ciphers in tomcat

2008-10-06 Thread David Wall

We've used the following in Tomcat 5.5 with JDK 1.6:

   Connector port=8443 maxHttpHeaderSize=8192 maxPostSize=0
  maxThreads=2000 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 scheme=https secure=true
   keystoreFile=XX keystorePass=
ciphers=TLS_DHE_DSS_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,SSL_DHE_DSS_WITH_3D
ES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SH
A,SSL_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_RC4_128_MD5,TLS_DHE_RSA_WITH_AES_128_CBC_SHA
  clientAuth=false sslProtocol=TLS /

David


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



Re: Using tomcat to hold many open connections.

2008-10-06 Thread Filip Hanik - Dev Lists

tomcat has one too, it's called the CometProcessor

Filip

Clemens Eisserer wrote:

Jetty has a special api to allow exactly this kind of request efficiently.
The thread is not kept assignd to the sleeping connection, but is re-used.

lg Clemens

2008/10/6 Kees Jan Koster [EMAIL PROTECTED]:
  

Dear Uprooter,



I'm looking for a server that has to hold many (web services) remote
clients
for controlling them.
I want to do things like sending power off command to a bunch of machines
remotely.
  

Building a botnet? :-)



The clients are usually windows machines behind firewalls  NAT or web
proxies that only allow HTTP (this is why I thought of webservices)

The regular request-response fashion that servlet follows  is not suitable
here since the initiator of the operation is the server.
What can I do in order to solve this and still use web services?
  

If you have the resources, you can just block in the servlet on your server.
It's pretty expensive since Tomcat uses a thread per request I believe. Java
threads are expensive (256kB each?), so that adds up quickly. You could
spend some time tuning your thread stacks, though. Depending on your actual
number of clients, you should be able to get this to work with a few GB of
RAM.

But then, 20K client polling once an hour might be cheaper. You may want to
find a way to stagger the requests though.

--
Kees Jan

http://java-monitor.com/forum/
[EMAIL PROTECTED]
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin
Disraeli


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





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


  



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



RE: Reloading Tomcat Server

2008-10-06 Thread Martin Gainty

one of 3 things that could possibly be causing this
the response is too big
the response is taking too long (timeout)
you need to authenticate to the url

I would use wget or curl to determine what the error is
if you point us to the URL i can test it out here
and then we can suggest an appropriate solution

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 6 Oct 2008 13:53:14 -0400
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Reloading Tomcat Server
 
 To All
 
 I have a simple website that reads third party RSS feeds and displays them.
 (1) I have tried with DocBuilder
 (2) tried with rssutils
 (3) Even tried with the rss xml file downloaded locally (using wget) and
 then a reading the local file.
 
 All three have the same Issue. You can get it the first time or within 3
 minutes and then it stops and Tomcat shows the 500 Error Page.
 
 I still do not understand tomcat enough to be able to trace or debug
 correctly the error messages received.
 
 
 My current solution is to stop and start the tomcat server every 2
 minutes. I have tried this with Cron. But I keep getting CRON:
 Authentication Failure   in the /var/log/syslog file.
 The crontab was created using crontab -e (when logged in as root) and
 thus should be run as root. But still fails.
 
 
 Any help would be much appreciated.
 
 Thank You
 Barry
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

RE: Using tomcat to hold many open connections.

2008-10-06 Thread Martin Gainty

Jan-

BB software has the potential to cause a considerable amount of havoc and 
heartache
you could be damaging the disks if you dont quiesce all of your DB,mail,ftp, tc 
servers first

I can see the utility to either turn on or turn off smart appliances though..

Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Mon, 6 Oct 2008 15:22:38 -0600
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Using tomcat to hold many open connections.
 
 tomcat has one too, it's called the CometProcessor
 
 Filip
 
 Clemens Eisserer wrote:
  Jetty has a special api to allow exactly this kind of request efficiently.
  The thread is not kept assignd to the sleeping connection, but is re-used.
 
  lg Clemens
 
  2008/10/6 Kees Jan Koster [EMAIL PROTECTED]:

  Dear Uprooter,
 
  
  I'm looking for a server that has to hold many (web services) remote
  clients
  for controlling them.
  I want to do things like sending power off command to a bunch of machines
  remotely.

  Building a botnet? :-)
 
  
  The clients are usually windows machines behind firewalls  NAT or web
  proxies that only allow HTTP (this is why I thought of webservices)
 
  The regular request-response fashion that servlet follows  is not suitable
  here since the initiator of the operation is the server.
  What can I do in order to solve this and still use web services?

  If you have the resources, you can just block in the servlet on your 
  server.
  It's pretty expensive since Tomcat uses a thread per request I believe. 
  Java
  threads are expensive (256kB each?), so that adds up quickly. You could
  spend some time tuning your thread stacks, though. Depending on your actual
  number of clients, you should be able to get this to work with a few GB of
  RAM.
 
  But then, 20K client polling once an hour might be cheaper. You may want to
  find a way to stagger the requests though.
 
  --
  Kees Jan
 
  http://java-monitor.com/forum/
  [EMAIL PROTECTED]
  06-51838192
 
  The secret of success lies in the stability of the goal. -- Benjamin
  Disraeli
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Managing Tomcat 6 threads : How to make tomcat destroy threads when idle?

2008-10-06 Thread Rohan Sahgal
Hi,

I tried increasing the number of tomcat threads.

However, I cannot get tomcat to destroy the threads once they get created
even though tomcat is idle.

I have modified my connector as follows :-
Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
maxThreads=2000 minSpareThreads=20 maxSpareThreads=100
   redirectPort=8443 /

However I have observed that once 2000 threads are created (I am monitoring
with jconsole), the number never comes down.
The minSpareThreads and maxSpareThreads are ignored.

I could not find their mention in the tomcat docs either, but this was
something I found on a blog post for Tomcat 5.x.

Is there a way to make tomcat reduce the number of threads?

Appreciate all the help.

Thanks,
Rohan


RE: Using tomcat to hold many open connections.

2008-10-06 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Re: Using tomcat to hold many open connections.

 Does CometProcessor and/or NIO come pre-installed 
 pre-configured as part of Tomcat 6?

All part of the basic package:
http://tomcat.apache.org/tomcat-6.0-doc/aio.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Monitoring of services deployed in tomcat

2008-10-06 Thread Raghunandan
Dear All,

 

 Is it required to monitor the deployed services in tomcat? Is there option
for auto restart if the service goes down?

 

If it is necessary to monitor the deployed services, what are the different
ways of monitoring.

 

 

 

Regards

 

Raghu