Policy files

2013-04-24 Thread Christian Beikov
Hello there! I am using tomcat as an embedded container for a while now, it is really amazing, but now I got stuck on a topic. I am implementing a testsuite for automatic testing of uploaded solutions by students. The deployment works like a charm, I also found your StuckThreadDetectionValve

Re: Configuring IIS to use the JK ISAPI redirector plugin when URL paths are different

2013-04-24 Thread Rainer Jung
On 24.04.2013 06:53, Beavers, Melinda K (Kay) wrote: We have installed the IIS-Tomcat redirector (isapi_redirect.dll) on an IIS 6 server so that http://iis.company.com/website/myfile.jsp will correctly redirect according to our 'isapi_redirect.properties', 'workers.properties', and

Re: two responses from one request - how is it possible ?

2013-04-24 Thread André Warnier
Shanti Suresh wrote: André Please kindly share the half-page that you have written up so far. Actually, would you please finish it up and then post? Well, here you go. Luckily, it was still in my drafts folder. Remember that it was a draft, and that a more accurate explanation is available

Re: two responses from one request - how is it possible ?

2013-04-24 Thread André Warnier
André Warnier wrote: Shanti Suresh wrote: André Please kindly share the half-page that you have written up so far. Actually, would you please finish it up and then post? Well, here you go. Luckily, it was still in my drafts folder. Remember that it was a draft, and that a more accurate

Re: two responses from one request - how is it possible ?

2013-04-24 Thread Shanti Suresh
Hi André, Those notes are very succinct. Appreciate it. Thank you for sharing. -Shanti On Wed, Apr 24, 2013 at 4:45 AM, André Warnier a...@ice-sa.com wrote: André Warnier wrote: Shanti Suresh wrote: André Please kindly share the half-page that you have

Re: Setting Nio connector in embedded tomcat7

2013-04-24 Thread Praveen Peddi
Hi, Not sure if anyone has used NIO connector in embedded tomcat 7 but I am out of luck so far. It seems so simple but I could not get it work. I am wondering if this is a bug in embedded version of tomcat because it works fine on standalone version. If this turns out to be a bug in tomcat 7

RE: Question on servlet determination

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] Sent: Tuesday, April 23, 2013 5:29 PM To: Tomcat Users List Subject: Re: Question on servlet determination From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]

RE: Question on servlet determination

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, April 23, 2013 10:35 PM To: Tomcat Users List Subject: RE: Question on servlet determination From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: Question on servlet

RE: Configuring IIS to use the JK ISAPI redirector plugin when URL paths are different

2013-04-24 Thread Beavers, Melinda K (Kay)
Rainer, thank you for that link!! I have put this line in my isapi_redirect.properties file: rewrite_rule_file=C:\Avaya\TomcatFilter\rewrite.properties and put my rewrite.properties file in place with just a single line in it: /apps/cepv/website/=/website/ and reset IIS. It is not working

AsyncListener.onError and disconnected client

2013-04-24 Thread Rossen Stoyanchev
Hi, I've seen various discussions here and on the web but I haven't found a conclusive answer. Why does an AsyncListener not receive onError notifications when a client disconnects? The scenario is that async processing starts (via request.startAsync), the Servlet container thread is exited,

Re: Configuring IIS to use the JK ISAPI redirector plugin when URL paths are different

2013-04-24 Thread André Warnier
Beavers, Melinda K (Kay) wrote: Rainer, thank you for that link!! I have put this line in my isapi_redirect.properties file: rewrite_rule_file=C:\Avaya\TomcatFilter\rewrite.properties and put my rewrite.properties file in place with just a single line in it: /apps/cepv/website/=/website/ and

Re: Configuring IIS to use the JK ISAPI redirector plugin when URL paths are different

2013-04-24 Thread Rainer Jung
Hi Katy, On 24.04.2013 16:38, Beavers, Melinda K (Kay) wrote: Rainer, thank you for that link!! I have put this line in my isapi_redirect.properties file: rewrite_rule_file=C:\Avaya\TomcatFilter\rewrite.properties and put my rewrite.properties file in place with just a single line in it:

Re: AsyncListener.onError and disconnected client

2013-04-24 Thread Mark Thomas
On 24/04/2013 16:33, Rossen Stoyanchev wrote: Hi, I've seen various discussions here and on the web but I haven't found a conclusive answer. Why does an AsyncListener not receive onError notifications when a client disconnects? Because the Servlet EG says that is the required behaviour. The

Re: two responses from one request - how is it possible ?

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeffrey, On 4/23/13 11:24 AM, Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 22, 2013 4:31 PM To: Tomcat Users List Subject: Re: two responses from one

Re: Question regarding tomcat upgrade from 7.0.23. to 7.0.37

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Madhu, On 4/24/13 1:33 AM, Madhu Purohit wrote: Hi We have recently upgraded tomcat fom 7.0.23 to 7.037 and also Java from 1.6.0_21 to 1.7.0_15. When we run the load runner testcases we get the following error “content was blocked because it

Re: Policy files

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christian, On 4/24/13 2:29 AM, Christian Beikov wrote: I am using tomcat as an embedded container for a while now, it is really amazing, but now I got stuck on a topic. I am implementing a testsuite for automatic testing of uploaded solutions by

Re: Question on servlet determination

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 5:45 PM, Jeffrey Janner wrote: -Original Message- From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Sent: Tuesday, April 23, 2013 4:34 PM To: 'Tomcat Users List' Subject: RE: Question on servlet determination

Re: Question on servlet determination

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 4/23/13 11:35 PM, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: Question on servlet determination url-pattern/Servlet1/url-pattern url-pattern/Servlet2/url-pattern What happens

Re: resource-ref in web.xml

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 11:40 AM, Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, April 18, 2013 5:01 PM To: Tomcat Users List Subject: Re: resource-ref in web.xml

Re: AsyncListener.onError and disconnected client

2013-04-24 Thread Rossen Stoyanchev
- Original Message - From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 24, 2013 12:47:54 PM Subject: Re: AsyncListener.onError and disconnected client On 24/04/2013 16:33, Rossen Stoyanchev wrote: Hi, I've seen various

Fwd: Re: Policy files

2013-04-24 Thread Christian Beikov
Accidently mailed on tomee-list before Thanks for the quick answer but it seems I didn't explain my situation completely. We use Maven for all assignments, I can control what base project they have to use for a specific assignment. Also in my testsuite I automatically build these projects

RE: Question on servlet determination

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, April 24, 2013 12:20 PM To: Tomcat Users List Subject: Re: Question on servlet determination -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 5:45 PM, Jeffrey

Re: Policy files

2013-04-24 Thread Christian Beikov
Yes we are talking about security manager policies. So there is no possibility to just push the policy file to the WebappClassLoader? As stated in the reply to Matrin Gainty there do exist methods to restrict the webapp, but unfortunately no method for supplying a policy file. So this means

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-24 Thread Shanti Suresh
Hi Konstantin, On Tue, Apr 23, 2013 at 6:48 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: I can't tell what I'm missing. Also, steps #2 and #3 are not even required if I am using the RemoteAddrValve, correct? No. They are not related to RemoteAddrValve. Thanks! I would

RE: resource-ref in web.xml

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, April 24, 2013 12:28 PM To: Tomcat Users List Subject: Re: resource-ref in web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/23/13 11:40 AM, Jeffrey Janner

Re: AsyncListener.onError and disconnected client

2013-04-24 Thread Mark Thomas
On 24/04/2013 18:38, Rossen Stoyanchev wrote: - Original Message - From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 24, 2013 12:47:54 PM Subject: Re: AsyncListener.onError and disconnected client On 24/04/2013 16:33, Rossen

RE: resource-ref in web.xml

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, April 24, 2013 1:12 PM To: Tomcat Users List Subject: RE: resource-ref in web.xml -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent:

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-24 Thread Konstantin Kolinko
2013/4/24 Shanti Suresh sha...@umich.edu: Hi Konstantin, On Tue, Apr 23, 2013 at 6:48 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: I can't tell what I'm missing. Also, steps #2 and #3 are not even required if I am using the RemoteAddrValve, correct? No. They are not related

Re: Question on servlet determination

2013-04-24 Thread Konstantin Kolinko
2013/4/24 Christopher Schultz ch...@christopherschultz.net: On 4/23/13 11:35 PM, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: Question on servlet determination url-pattern/Servlet1/url-pattern url-pattern/Servlet2/url-pattern What happens

Re: Policy files

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christian, On 4/24/13 1:51 PM, Christian Beikov wrote: Yes we are talking about security manager policies. Good :) There's a lot about Spring that I don't know about, so I was just checking that you weren't talking about some crazy IoC thing or

Re: resource-ref in web.xml

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/24/13 2:22 PM, Jeffrey Janner wrote: -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, April 24, 2013 1:12 PM To: Tomcat Users List Subject: RE: resource-ref in web.xml

Re: Question on servlet determination

2013-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 4/24/13 3:56 PM, Konstantin Kolinko wrote: 2013/4/24 Christopher Schultz ch...@christopherschultz.net: On 4/23/13 11:35 PM, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject:

Re: Question on servlet determination

2013-04-24 Thread Konstantin Kolinko
2013/4/25 Christopher Schultz ch...@christopherschultz.net: Konstantin, On 4/24/13 3:56 PM, Konstantin Kolinko wrote: 2013/4/24 Christopher Schultz ch...@christopherschultz.net: On 4/23/13 11:35 PM, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]

Tomcat 7.0.39 windows service setenv not used

2013-04-24 Thread Satyendra Singh
I have created multiple windows services and for one of the service, i have -Dcatalina.base=C:\servers\applications\service1 -Dcatalina.home=C:\servers\apache-tomcat-7.0.39 i have C:\servers\applications\service1\bin\setenv.bat where i have set JAVA_HOME= C:\ Set JAVA_OPTS=-D.. set

Re: Tomcat 7.0.39 windows service setenv not used

2013-04-24 Thread Konstantin Kolinko
2013/4/25 Satyendra Singh satya...@gmail.com: I have created multiple windows services and for one of the service, i have -Dcatalina.base=C:\servers\applications\service1 -Dcatalina.home=C:\servers\apache-tomcat-7.0.39 i have C:\servers\applications\service1\bin\setenv.bat where i have set

SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443]

2013-04-24 Thread James H. H. Lampert
We're trying to bring up SSL in Tomcat on a customer AS/400 (an E4C at V7R1, using the /QOpenSys/QIBM/ProdData/JavaVM/jdk60/64bit JVM), and every time we launch CATALINA, we get SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443] Throwable occurred:

RE: Tomcat 7.0.39 windows service setenv not used

2013-04-24 Thread Caldarale, Charles R
From: Satyendra Singh [mailto:satya...@gmail.com] Subject: Tomcat 7.0.39 windows service setenv not used running service1 does not seem to use these values, it only use those that i can see at tomcat7w.exe on this service. Services do not use _any_ .bat scripts, nor any environment

Re: Tomcat 7.0.39 windows service setenv not used

2013-04-24 Thread Satyendra Singh
Thanks!, so there is no other way to set these except to put in registry via tomcat7w.exe. On Wed, Apr 24, 2013 at 4:50 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2013/4/25 Satyendra Singh satya...@gmail.com: I have created multiple windows services and for one of the service, i

RE: resource-ref in web.xml

2013-04-24 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, April 24, 2013 3:28 PM To: Tomcat Users List Subject: Re: resource-ref in web.xml -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/24/13 2:22 PM, Jeffrey Janner

Re: SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443]

2013-04-24 Thread Neven Cvetkovic
James, Something else is listening on port 443 (SSL port). I am no AS/400 expert, but you should be able to see listening processes, e.g. Linux: netstat -vatpn | grep 443 Windows: netstat -aon | findstr 443 Did you try connecting to the port 443? Btw in your log null is actual real IP

Re: SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443]

2013-04-24 Thread James H. H. Lampert
Neven Cvetkovic wrote: Btw in your log null is actual real IP address, you just removed it for the mailing list, correct? That's the actual message from CATALINA.OUT, verbatim. Perhaps we're not specifying an IP address in the configuration files (how would one do that?), and (with several

Re: Policy files

2013-04-24 Thread Christian Beikov
Well I understand that there is only one SecurityManager per JVM, but as you mentioned I can restrict actions for specific CodeBases. This is what I am actually trying to do. I want the student web applications to have only a hand full of permissions defined in a policy file. I think I

Re: SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443]

2013-04-24 Thread Jakub 1983
James, try to set tomcat port to 1443 and check, and write us if it starts than, try to start knock knock server with default port, than change it to 443 port - http://docs.oracle.com/javase/tutorial/networking/sockets/examples/KnockKnockServer.java (link and explanation is here