Re: JK Connector errors under heavy load

2007-05-15 Thread Johnny Kewl

Hi Brantley,
I've never really had a reason to examine this kind of data... so I'm no 
expert on this... just guessing... as usual ;)


I think that error count is an indication of socket errors... which one 
expects to have a few of.
There isnt really much we can do about socket errors other than make 
sure the machine has enuf memory. To give you an idea of the type of socket 
errors that can occur, on MS system anyway... have a look at this 
http://msdn2.microsoft.com/en-us/library/ms740668.aspx


So for example when a machine gets really busy... the user gets fast enuf to 
upset things a little... so for example a user can rudely close the 
connection on the server, or impatiently ask for another connection... and 
there is one already... so socket errors occur.
As u can see there are lots of other things that can happen... but the 
things I would consider worthwhile looking at are things like... has the 
machine got enuf memory, is there perhaps a proxy server or firewall that is 
not coping... that sort of thing.


Also wot are u using to load test... you see a home written load tester that 
rudely whacks away at the server will cause them... I like Jmeter... it 
opens many connections... but each one is well behaved.  The other thing I 
have have seen is that people blame tomcat because they believe socket 
errors are caused only by blocking sockets... ie the listening socket can 
only serve one session at a time... tomcat would not be a multithreading 
environment if that were the case... so I dont think thats the cause.
I like to think of it as normally a users reaction time is far slower than 
the server... but that changes when a server gets busy... for example on the 
web when you close a page because the thing is taking too long... the server 
see's an interrupted connection... socket error.


The thing that doesnt seem right is ure session manager if you have not 
touched the maxSessions setting... it should be unlimited... which is the 
way I would leave it just check the machines memory under full load to 
make sure its ok. So the only other thing I can think of is that you not 
using sticky sessions correctly. you need to make sure that when a 
client comes in and hits a page with a session... that it then sticks to the 
page... so other clients will toggle between servers, but once a session is 
established... that client always goes back to the same server... unless you 
doing something else fancy, like replicating sessions.
Without sticky sessions... or you will be getting new sessions and seeing 
weird things like, forms not remembering the data etc etc.


good luck

- Original Message - 
From: Brantley Hobbs [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, May 14, 2007 10:25 PM
Subject: JK Connector errors under heavy load



All,

I'm doing some load testing and I'm having a bit of trouble trying to 
interpret the numbers on the Tomcat Manager's Server Status page.


Specifically, each defined connector (http or jk) has a block telling you 
the values of maxThreads, minSpareThreads, etc.


In my testing, I've found that I start getting some errors under heavy 
load and the Error count number starts going way up on my JK connector. 
Can someone tell me what Error count indicates?


Additional symptoms are that Tomcat appears to not have properly 
associated a session with an incoming user (it doesn't get the wrong 
session, it appears to get a new, empty session).


When I first started seeing this, I found that I was bumping up against 
maxThreads, but now I have maxThreads sitting at approximately 125% of the 
number of users I'm using to test, and I'm getting this same issue.


I'm unsure of where else to start looking for bottlenecks now.  I'm not 
CPU, I/O or database bound, but there's no other log entries.


For the record, it's Apache 2.0.52/mod_jk 1.2.22/Tomcat 5.5.23.


Thanks,
Brantley Hobbs

-
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: Run Xalan on Tomcat

2007-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rashmi,

Rashmi Rubdi wrote:
 On 5/14/07, Christopher Schultz [EMAIL PROTECTED] wrote:
 Rashmi Rubdi wrote:
  One way to use Xalan is with JSTL XML tags inside a JSP.

 A much better way is to use Cocoon (http://cocoon.apache.org).
 
 I've not tried Cocoon yet, so I really cant compare JSTL XML tags with
 Cocoon but I know that with JSTL XML tags you only need 3 lines of
 code to transform an XML with an XSLT file, and show the output on a
 JSP --- and it requires Xalan JAR files.

Cocoon requires no JSP at all, is configured entirely using XML, and
comes with all required libraries.

- -chris

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

iD8DBQFGSaYm9CaO5/Lv0PARAvJdAJ9+/n6eTIh3gn6qzPyN8BzNQmPtWQCfVFvh
Uu5EQCJCSBjac9X1+nBWYdE=
=FHFl
-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: Handling javax.net.ssl.SSLHandshakeException: null cert chain

2007-05-15 Thread Subscriber
Thanks Bill - that was the solution to my problem, but unfortuantely a 
new one saw the day :-)


The patch works fine with Mozilla Firefox, but it is like Internet 
Explorer closes the SSL socket instantly, which results in this Stacktrace:


2007-05-15 13:03:10 org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
java.net.SocketException: Socket Closed
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:201)
at java.net.Socket.setSoTimeout(Socket.java:991)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.setSoTimeout(SSLSocketImpl.java:1971)
at 
org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Support.java:99)
at 
org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:67)
at 
org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupport.java:121)
at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1127)

at org.apache.coyote.Request.action(Request.java:349)
at 
org.apache.catalina.authenticator.SSLAuthenticator.authenticate(SSLAuthenticator.java:138)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)

at java.lang.Thread.run(Thread.java:595)

Is this Internet Explorer behaviour - and can this be fixed?

regards,
kews

Bill Barker wrote:
Subscriber [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi,

Thanks for your answer Mark! I would like to add custom code to Tomcat to 
make this work, but I can't figure out where to start...I can't see any 
alternative solution to my problem. Besides that, I'm hard hung up on 
Tomcat anyway. I've tried to download the Tomcat source code, but I can 
see the exception occurs within the JSSE - this is where the confusio 
starts :-)


...solutions are very welcome!



http://issues.apache.org/bugzilla/show_bug.cgi?id=41337


regards,
kews

Mark Thomas wrote:

Subscriber wrote:

Hi,

How do I handle this exception, when the user clicks Cancel upon SSL
Client authentication when prompted for a certificate.

Basically you can't without some custom Tomcat code. Since the
handshake occurs before any HTTP traffic is sent, Tomcat doesn't know
which web app the user was eventually going to try and connect to.
Therefore, this has to be handled entirely within Tomcat rather than
by any particular web app.

This is going to be the same for every container - each will require a
custom solution. If you want your app to be portable, I wouldn't
bother going down this road.

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]


__ NOD32 2264 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com




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







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


__ NOD32 2266 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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: Handling javax.net.ssl.SSLHandshakeException: null cert chain

2007-05-15 Thread Subscriber

One additional comment:

The exception is not thrown when the user clicks Cancel - it's thrown 
when IE accesses the page and presents the Choose certificate dialog 
box. So the exception is thrown before any user interaction (besides 
from typing the URL) :-)


regards,
kews

Subscriber wrote:
Thanks Bill - that was the solution to my problem, but unfortuantely a 
new one saw the day :-)


The patch works fine with Mozilla Firefox, but it is like Internet 
Explorer closes the SSL socket instantly, which results in this Stacktrace:


2007-05-15 13:03:10 org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
java.net.SocketException: Socket Closed
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:201)
at java.net.Socket.setSoTimeout(Socket.java:991)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.setSoTimeout(SSLSocketImpl.java:1971) 

at 
org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Support.java:99) 

at 
org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:67) 

at 
org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupport.java:121) 

at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1127)

at org.apache.coyote.Request.action(Request.java:349)
at 
org.apache.catalina.authenticator.SSLAuthenticator.authenticate(SSLAuthenticator.java:138) 

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) 

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

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

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

at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 

at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 

at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) 


at java.lang.Thread.run(Thread.java:595)

Is this Internet Explorer behaviour - and can this be fixed?

regards,
kews

Bill Barker wrote:
Subscriber [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi,

Thanks for your answer Mark! I would like to add custom code to 
Tomcat to make this work, but I can't figure out where to start...I 
can't see any alternative solution to my problem. Besides that, I'm 
hard hung up on Tomcat anyway. I've tried to download the Tomcat 
source code, but I can see the exception occurs within the JSSE - 
this is where the confusio starts :-)


...solutions are very welcome!



http://issues.apache.org/bugzilla/show_bug.cgi?id=41337


regards,
kews

Mark Thomas wrote:

Subscriber wrote:

Hi,

How do I handle this exception, when the user clicks Cancel upon SSL
Client authentication when prompted for a certificate.

Basically you can't without some custom Tomcat code. Since the
handshake occurs before any HTTP traffic is sent, Tomcat doesn't know
which web app the user was eventually going to try and connect to.
Therefore, this has to be handled entirely within Tomcat rather than
by any particular web app.

This is going to be the same for every container - each will require a
custom solution. If you want your app to be portable, I wouldn't
bother going down this road.

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]


__ NOD32 2264 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com




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







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


__ NOD32 2266 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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]


__ NOD32 2267 (20070515) Information

tomcat 6.0.13 and maven 2

2007-05-15 Thread Sebastiaan van Erk

Hi,

I noticed the tomcat web pages are updated and the 6.0.13 version is 
available.


With maven I was able to use 6.0.10 with the following repository:

   repository
   idtomcat-repository/id
   urlhttp://tomcat.apache.org/dev/dist/m2-repository//url
   /repository

However the 6.0.13 version is not there yet. Are there any plans to 
release the 6.0.13 version in this repository?


While I'm asking, is this the correct repository to use for the tomcat 6 
branch jars?


Regards,
Sebastiaan

-
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: Handling javax.net.ssl.SSLHandshakeException: null cert chain

2007-05-15 Thread Martin Gainty
]







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


__ NOD32 2266 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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]


__ NOD32 2267 (20070515) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





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





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



RE: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-15 Thread Jean-Francois Beaulac
Hi,

Just for the record, have you checked if isapi_redirect.dll is blocked by
Windows 2003 protection for files downloaded from the internet?

If you go in the properties of the dll file, and it is blocked, a big
unblock button will be shown. I had this problem on Windows Server 2003 in
both 32/64bits. The green arrow shows up, everything seems normal but it
won't work if it's blocked.

Hope that helps! 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: May 14, 2007 4:46 PM
To: Tomcat Users List
Subject: Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

I tried adding the following lines to workers.properties from your config
files, Marcus,

worker.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0
worker.java_home=C:\Program Files\Java\jdk1.6.0

I tried using single quotes as well.  I also tried your isapi_redirect.dll.
Thanks
for the contribution, but neither resolved the problem.

I think my next step will be to start over and use pathnames without
any spaces.  It can't hurt anything at this point.


Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]


   
 [EMAIL PROTECTED] 
 sea.com   
To 
 05/14/2007 10:09  Tomcat Users List 
 AMusers@tomcat.apache.org   
cc 
   
 Please respond to Subject 
   Tomcat Users   Re: RES: RES: Tomcat 6.0 on Windows 
   List   Server 2003 IIS 6.0 connector not   
 [EMAIL PROTECTED] functioning 
 che.org  
   
   
   
   
   




I added one specific example explicity to get this:

/servlets-examples/*=ajp13w
/examples/*=ajp13w
/examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w
/*=ajp13w

!/servlets-examples/*.jpeg=ajp13w

But I am still getting this from IIS:

2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET
/examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 3 50

And, yes, I've been reseting IIS after every change and frequently
tomcat too just to be safe.  At this point I'm trying hard not to take
anything for granted.  I've been stuck on this for more time than I
care to admit.  Clearly I'm missing something, but I can't seem to
find it.

Can you think of anything I might be missing in the redirect settings?
It seems to me this is the most likely place for my error, since I'm
also not getting a log file.  Here is the output when I export my
registry key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\logs\\isapi.log
log_level=debug
worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\conf\\workers.properties
worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
6.0\\conf\\uriworkermap.properties

I also have isapi_redirect.properties in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin:

# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\logs\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=debug

# Full path to the workers.properties file
worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\workers.properties

# Full path to the uriworkermap.properties file
worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\uriworkermap.properties

I know that the log file names do not match, but neither is getting
created.  If it finally does work, the log file name should tell me
which one is working.  I've also tried cutting and 

[ANN] Apache Tomcat 6.0.13 released

2007-05-15 Thread Remy Maucherat

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.13 stable. This release is the second stable release of the
6.0.x branch, and includes bugfixes over Apache Tomcat 6.0.10.

Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

-
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: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-15 Thread Sean_McKellips
That's one I haven't heard before.  I'll have to keep an eye out
for that in the future, but it isn't the case here.  I also did not
download any of the versions I'm using directly on the server,
so I should have been safe from that.

Thanks for the suggestion.

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]


   
 Jean-Francois 
 Beaulac   
 jean-francois.be  To 
 [EMAIL PROTECTED] 'Tomcat Users List'   
  users@tomcat.apache.org   
cc 
 05/15/2007 07:37  
 AMSubject 
   RE: RES: RES: Tomcat 6.0 on Windows 
   Server 2003 IIS 6.0 connector not   
 Please respond to functioning 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
 che.org  
   
   




Hi,

Just for the record, have you checked if isapi_redirect.dll is blocked by
Windows 2003 protection for files downloaded from the internet?

If you go in the properties of the dll file, and it is blocked, a big
unblock button will be shown. I had this problem on Windows Server 2003
in
both 32/64bits. The green arrow shows up, everything seems normal but it
won't work if it's blocked.

Hope that helps!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: May 14, 2007 4:46 PM
To: Tomcat Users List
Subject: Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

I tried adding the following lines to workers.properties from your config
files, Marcus,

worker.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0
worker.java_home=C:\Program Files\Java\jdk1.6.0

I tried using single quotes as well.  I also tried your isapi_redirect.dll.
Thanks
for the contribution, but neither resolved the problem.

I think my next step will be to start over and use pathnames without
any spaces.  It can't hurt anything at this point.


Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]



 [EMAIL PROTECTED]
 sea.com
To
 05/14/2007 10:09  Tomcat Users List
 AMusers@tomcat.apache.org
cc

 Please respond to Subject
   Tomcat Users   Re: RES: RES: Tomcat 6.0 on Windows
   List   Server 2003 IIS 6.0 connector not
 [EMAIL PROTECTED] functioning
 che.org









I added one specific example explicity to get this:

/servlets-examples/*=ajp13w
/examples/*=ajp13w
/examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w
/*=ajp13w

!/servlets-examples/*.jpeg=ajp13w

But I am still getting this from IIS:

2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET
/examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 3 50

And, yes, I've been reseting IIS after every change and frequently
tomcat too just to be safe.  At this point I'm trying hard not to take
anything for granted.  I've been stuck on this for more time than I
care to admit.  Clearly I'm missing something, but I can't seem to
find it.

Can you think of anything I might be missing in the redirect settings?
It seems to me this is the most likely place for my error, since I'm
also not getting a log file.  Here is the output when I export my
registry key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\logs\\isapi.log
log_level=debug
worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\conf\\workers.properties
worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
6.0\\conf\\uriworkermap.properties

I also have 

Running stand-alone Tomcat and Apache on the same server, port 80

2007-05-15 Thread Rob Tanner
Hi,

In Apache, you can run multiple servers (and virtual servers) all
listening on port 80 by having multiple IP addresses.  I would like to
do the same thing except I want to run Tomcat and Apache on the same
physical machine, both listening on port 80.  I've been through the
documentation on server.xml, and while I can specify specific ports, I
do not see any mechanism to specify which of the machine's several IPs
it should listen on.  Can I do that, and if so, how do I do that?

Thanks,
Rob


-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR



smime.p7s
Description: S/MIME Cryptographic Signature


RE: Running stand-alone Tomcat and Apache on the same server, port 80

2007-05-15 Thread Caldarale, Charles R
 From: Rob Tanner [mailto:[EMAIL PROTECTED] 
 Subject: Running stand-alone Tomcat and Apache on the same 
 server, port 80
 
 I've been through the documentation on server.xml, and while
 I can specify specific ports, I do not see any mechanism to
 specify which of the machine's several IPs it should listen on.

Look at the address attribute of the Connector element.

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



Dynamic URIs Using one Context

2007-05-15 Thread Nathan Hook
We've been given a difficult problem to solve and I'm hoping that some 
help/insight is available on this mailing list.


We are an Application Service Provider (ASP) that has numerous clients with 
the number of clients increasing rapidly.  All our clients use the same 
application but each client needs/wants a distinguishing element in the url 
to identify them to their users.


Here is our current setup:

Apache 2.2 with mod_jk sending requests to Tomcat 5.5.  Struts 1.3.8 is our 
current web framework.


In our httpd.conf we have a different domain name for each client:

VirtualHost *:80
   ServerName client name 1.server name.com
   DocumentRoot some directory/client name 1.server name.com
/VirtualHost

VirtualHost *:80
   ServerName client name 2.server name.com
   DocumentRoot some directory/client name 2.server name.com
/VirtualHost

Then in our server.xml config file for Tomcat we only declare one Host 
element with a Context that has many Alias':


Host name=client name 1.server name.com appBase=webapps
   Context path=/app 
   /Context
   Aliasclient name 2.server name.com/Alias
   Aliasclient name 3.server name.com/Alias
   ...etc for each of our clients...
/Host

So, what is the problem?  Well, when we add a new customer we have to edit 
the httpd.conf, the server.xml, restart both applications, and add the new 
customer.server name.com to DNS (Usually, we have to wait until late 
into the evening to do these tasks).  Our Client Services team want the 
ability to add customers without having to wait until we can restart our 
servers.


Is it possible to do the following with an Apache 2.2 and Tomcat 5.5 
combination while having only ONE instance of the application only once 
loaded in Tomcat?  (Meaning we do NOT want the application loaded by Tomcat 
x times, with x being the number of clients we have.)


base name.server name.com/client name 1/app
base name.server name.com/client name 2/app
base name.server name.com/client name 3/app

I'm not really the best with how the Context attribute works outside of 
having it placed in the server.xml.  I've tried reading the documentation on 
Contexts at:

http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html
But, I find what is explained a tad bit confusing.

Here is one thread from the archives that explained our problem pretty well, 
but there never really was an answer on how to accomplish the task except 
you're getting the right behavior with a 400 response:

http://marc.info/?l=tomcat-userm=115602705505727w=2

Finally, through some other research, it seems as though someone was trying 
to use mod_vhost_alias to accomplish the same thing.


Any thoughts or suggestions are welcome.

Thank you for your time.

_
Make every IM count. Download Messenger and join the i’m Initiative now. 
It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_MAY07



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



Tomcat thinks TCP port is in use

2007-05-15 Thread Owens_Ken
Hi Everyone,

I'm trying to get Tomcat 6.0 running on Windows XP.  Whenever I start it
I get the message:

java.net.BindException: Address already in use: JVM_Bind

I've tried three different port numbers.  I can't find any reason why
Tomcat would think the port was already bound.  According to 'netstat
-a' they are completely free.

Any ideas?

BTW, I've got the Apache server running on the box as well.

Ken

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



Re: Running stand-alone Tomcat and Apache on the same server, port 80

2007-05-15 Thread Rob Tanner
Thanks! The problem with the documentation (for me at least) is that
sometimes you already have to know what your looking for to find it in
the docs. So now I do. Thank you.

-- Rob

Caldarale, Charles R said the following on 05/15/2007 11:21 AM:
 From: Rob Tanner [mailto:[EMAIL PROTECTED] 
 Subject: Running stand-alone Tomcat and Apache on the same 
 server, port 80

 I've been through the documentation on server.xml, and while
 I can specify specific ports, I do not see any mechanism to
 specify which of the machine's several IPs it should listen on.
 

 Look at the address attribute of the Connector element.

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

   



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat thinks TCP port is in use

2007-05-15 Thread Tim Funk

Tomcat has a shutdown port it listens on too. Typically this is 8005

-Tim

[EMAIL PROTECTED] wrote:

Hi Everyone,

I'm trying to get Tomcat 6.0 running on Windows XP.  Whenever I start it
I get the message:

java.net.BindException: Address already in use: JVM_Bind

I've tried three different port numbers.  I can't find any reason why
Tomcat would think the port was already bound.  According to 'netstat
-a' they are completely free.



-
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 thinks TCP port is in use

2007-05-15 Thread Owens_Ken
That did it, Thanks!

Ken

 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 15, 2007 2:44 PM
To: Tomcat Users List
Subject: Re: Tomcat thinks TCP port is in use

Tomcat has a shutdown port it listens on too. Typically this is 8005

-Tim

[EMAIL PROTECTED] wrote:
 Hi Everyone,
 
 I'm trying to get Tomcat 6.0 running on Windows XP.  Whenever I start
it
 I get the message:
 
   java.net.BindException: Address already in use: JVM_Bind
 
 I've tried three different port numbers.  I can't find any reason why
 Tomcat would think the port was already bound.  According to 'netstat
 -a' they are completely free.
 

-
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: Dynamic URIs Using one Context

2007-05-15 Thread Hassan Schroeder

On 5/15/07, Nathan Hook [EMAIL PROTECTED] wrote:


We are an Application Service Provider (ASP) that has numerous clients with
the number of clients increasing rapidly.  All our clients use the same
application but each client needs/wants a distinguishing element in the url
to identify them to their users.



Then in our server.xml config file for Tomcat we only declare one Host
element with a Context that has many Alias':



So, what is the problem?  Well, when we add a new customer we have to edit
the httpd.conf, the server.xml, restart both applications, and add the new
customer.server name.com to DNS


OK, maybe I'm missing something, but if you want *one* context to
handle *all* requests -- why not just make that the default? Don't even
bother to specify any hostnames or aliases. Voila. :-)

You still have to have the DNS entries, but you knew that...

And it's not clear whether you're serving unique static content from the
httpd DocumentRoot you specify; if not, you could just get rid of that --
using httpd -- as well.

FWIW,
--
Hassan Schroeder  [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: Servlet class according to url-mapping

2007-05-15 Thread Tim Funk

Not really (via the Servlet Api)

-Tim

Milanez, Marcus wrote:

Hi,
 
Is it possible to get the full servlet class name (e.g:

com.test.MyServlet) according to its URL (e.g: /servlet/MyServlet)
programmatically ? 
 


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



mod_jk selective forwarding?

2007-05-15 Thread Jacob Rhoden

Hi,

I would like to be able to configure an apache virtual host, where all 
requests ending in .pl are served by apache, and everything else falls 
through to tomcat. I have no idea where to start. (I normally just copy 
and paste something into httpd.conf to setup my connector) Are there any 
good websites on how to do this?


Thanks,
Jacob


__
Jacob Rhoden - http://www.jacobrhoden.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: Handling javax.net.ssl.SSLHandshakeException: null cert chain

2007-05-15 Thread Subscriber
@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]


__ NOD32 2266 (20070514) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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]


__ NOD32 2267 (20070515) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





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





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


__ NOD32 2267 (20070515) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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: ACL (access control list) tutorial or example

2007-05-15 Thread Zachary Grafton
On Tuesday 08 May 2007 10:25, David Kerber wrote:
 I posted this on comp.lang.java.security yesterday, but haven't gotten a
 single answer, so I'm hoping you people can help:

 I'm trying to implement ACL's in my Tomcat-based webapp, and am having
 trouble applying what I read in the docs and in my googling to my
 real-life application.  Could somebody please point me to a good
 tutorial or some example code that shows how to set and check the
 permissions (read only vs read/write, administration vs general user,
 etc) that a given user will have to access a given object?

 I've got the authentication part going with no trouble, but am having
 trouble with the access control side of things.

 TIA!
 Dave



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

Dave,

I'm not a security expert or anything like that, but you might want to look 
into the Java Authentication and Authorization API.  While it may not be the 
best solution, it might work better for what you are trying to do.

Here's an url that might be a start: 
ftp://ftp.oreilly.com/pub/conference/java2001/Rich_Jaas.pdf


Good Luck,

Zack

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