Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread Chris Gamache
+1 here. This would be nice to have a standard way to manage different logical versions of the same webapp to handle split-braining client and server code. That's my million dollar problem. So, the idea floated by this fine group of list participants was to deploy and use cookies that a

Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hartmut, On 7/19/15 2:49 PM, Hartmut Honisch wrote: Hi everyone, I'm using Tomcat's parallel deployment feature, and I wonder whether there's a way to request a specific version of my webapp. Let's say I have a WAR named myapp##001.war

RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Rahul Kumar Singh
Do you have sufficient free space on your hard drive? Maybe your disk is full. No, Disk Space is enough approx. ~ 96 GB Did it happen once only, or this is a repeating error? No it occurs multiple times. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent:

RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Rahul Kumar Singh
Dear Konstantin, Do you have sufficient free space on your hard drive? Maybe your disk is full. Did it happen once only, or this is a repeating error? -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, July 21, 2015 3:50 PM To: Tomcat Users List

Re: Check if a URL exists programatically

2015-07-21 Thread Mitch Claborn
2015-07-17 18:48 GMT+03:00 Mitch Claborn mitch...@claborn.net: I spent some time yesterday digging through code without much luck. Today I'm going to experiment with this: getting a Request Dispatcher for the URL from the ServletContext, creating a dummy ServerRequest and ServerResponse object

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Arno
Felix Schumacher felix.schumacher at internetallee.de writes: I think tomcat will always inject a realm into to host when it finds none. But that realm should not interfere with your requests to your webapp. You are right, and I see, that I have misinterpreted my debugger sessions. Our realm

Re: Tomcat 7 (7.0.54) Login URL is Passing with JSESSION ID. | why there is different behaviour in Tomcat 6 and Tomcat 7

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 7/21/15 6:38 AM, Rahul Kumar Singh wrote: “;jsessionid=C1A67FB90E1300DF14EE027A3634A34B” passed in URL localhost:8080/login.jsp;jsessionid=C1A67FB90E1300DF14EE027A3634A34B is not received in tomcat 6(V6.0.28). It is received in

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Arno, On 7/21/15 10:05 AM, Arno wrote: Felix Schumacher felix.schumacher at internetallee.de writes: I think tomcat will always inject a realm into to host when it finds none. But that realm should not interfere with your requests to your

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Arno
Christopher Schultz chris at christopherschultz.net writes: Accessing a protected resource triggers an authorization check, which also required authentication. Some realms cache authentication information while others do not. The authenticator is a Valve which uses the Realm to perform the

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Felix Schumacher
Am 21. Juli 2015 17:50:43 MESZ, schrieb Arno arno.schae...@sqs.com: Christopher Schultz chris at christopherschultz.net writes: Accessing a protected resource triggers an authorization check, which also required authentication. Some realms cache authentication information while others do not.

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Arno
Mark Eggers its_toasted at yahoo.com.INVALID writes: It looks like one of the prior developers wrote a custom Realm. Was this application written to run on a prior version of Tomcat (Tomcat 6, for example)? If so, the custom Realm may not work with Tomcat 7. You would have to look at the

Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 7/21/15 11:07 AM, Chris Gamache wrote: +1 here. This would be nice to have a standard way to manage different logical versions of the same webapp to handle split-braining client and server code. That's my million dollar problem.

Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 7/21/15 10:32 AM, Rahul Kumar Singh wrote: Do you have sufficient free space on your hard drive? Maybe your disk is full. No, Disk Space is enough approx. ~ 96 GB Any quotas on the filesystem? Did it happen once only, or this is

Re: problem with x:set variables

2015-07-21 Thread Jerry Malcolm
Konstantin, thank you so much for the quick response. My comments below On 7/21/2015 6:07 AM, Konstantin Kolinko wrote: 2015-07-21 3:13 GMT+03:00 Jerry Malcolm techst...@malcolms.com: I have a large webapp that processes XML data into JSPs using XPath/JSTL plus some of my own custom tags.

Re: How to authenticate our webapp against our own relm only

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felix, On 7/21/15 11:13 AM, Felix Schumacher wrote: Am 21. Juli 2015 17:50:43 MESZ, schrieb Arno arno.schae...@sqs.com: Christopher Schultz chris at christopherschultz.net writes: Accessing a protected resource triggers an authorization

RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Rahul Kumar Singh
Some more reference from catalina.out Jul 17, 2015 10:15:36 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassFormatError: Truncated class file at java.lang.ClassLoader.defineClass1(Native Method)

Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread chris derham
BTW: The reason I'm asking is because that transparent shift from one app release to the next doesn't play along well with any caches (browser, caching proxies, CDNs etc.): When a shift to the next app release occurs, I generally need the client browsers to fetch a fresh copy of all files

Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 7/21/15 1:30 PM, chris derham wrote: BTW: The reason I'm asking is because that transparent shift from one app release to the next doesn't play along well with any caches (browser, caching proxies, CDNs etc.): When a shift to the next

RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Rahul Kumar Singh
Dear Christopher, Any quotas on the filesystem? No. Any idea which class it's having trouble loading? I have no idea on this but I have got the below exception: == 2015-07-17 09:53:50,860 ERROR

Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Konstantin Kolinko
2015-07-21 11:41 GMT+03:00 Rahul Kumar Singh rahul.si...@nectechnologies.in: Hello Tomcat team, Thanks for your always support !! Please do the needful on below problem. Web Application credential: - Servlet used :servelet3.0 MVC framework: Struts2.0

Re: Tomcat initialize SelectorContext twice when lookup for JNDI defined in web application (META-INF/context.xml)

2015-07-21 Thread Konstantin Kolinko
2015-07-21 8:35 GMT+03:00 Niranjan Karunanandham niranjan.k...@gmail.com: [sending to users list] On Thu, Jul 16, 2015 at 10:23 AM, Niranjan Karunanandham niranjan.k...@gmail.com wrote: Hi, On debugging Tomcat (7.0.59), I noticed that the SelectorContext is initialized twice when a

Re: problem with x:set variables

2015-07-21 Thread Konstantin Kolinko
2015-07-21 3:13 GMT+03:00 Jerry Malcolm techst...@malcolms.com: I have a large webapp that processes XML data into JSPs using XPath/JSTL plus some of my own custom tags. Are you using Apache (Jakarta/Tomcat) implementation of JSTL or some 3-rd party one? http://tomcat.apache.org/taglibs.html

RE: Tomcat 7 (7.0.54) Login URL is Passing with JSESSION ID. | why there is different behaviour in Tomcat 6 and Tomcat 7

2015-07-21 Thread Rahul Kumar Singh
Hello Tomcat Team, “;jsessionid=C1A67FB90E1300DF14EE027A3634A34B” passed in URL localhost:8080/login. jsp;jsessionid=C1A67FB90E1300DF14EE027A3634A34B is not received in tomcat 6(V6.0.28) . It is received in tomcat 7(V7.0.54) . What is reason for the different behavior? I used WGET command

Re: Tomcat 7 (7.0.54) Login URL is Passing with JSESSION ID. | why there is different behaviour in Tomcat 6 and Tomcat 7

2015-07-21 Thread Konstantin Kolinko
2015-07-21 14:38 GMT+03:00 Rahul Kumar Singh rahul.si...@nectechnologies.in: Hello Tomcat Team, “;jsessionid=C1A67FB90E1300DF14EE027A3634A34B” passed in URL localhost:8080/login. jsp;jsessionid=C1A67FB90E1300DF14EE027A3634A34B is not received in tomcat 6(V6.0.28) . It is received in tomcat

Re: Parallel Deployment: Can I request a specific webapp version?

2015-07-21 Thread Konstantin Kolinko
2015-07-19 22:49 GMT+03:00 Hartmut Honisch hartmut.honi...@gmail.com: Hi everyone, I'm using Tomcat's parallel deployment feature, and I wonder whether there's a way to request a specific version of my webapp. Let's say I have a WAR named myapp##001.war deployed on my server and just

RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-21 Thread Rahul Kumar Singh
Hello Tomcat team, Thanks for your always support !! Please do the needful on below problem. Web Application credential: - Servlet used :servelet3.0 MVC framework: Struts2.0 Java: Open JDK 1.7 We have observe the below

Re: Tomcat initialize SelectorContext twice when lookup for JNDI defined in web application (META-INF/context.xml)

2015-07-21 Thread Niranjan Karunanandham
Hi Tomcat Team, On Tue, Jul 21, 2015 at 4:21 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2015-07-21 8:35 GMT+03:00 Niranjan Karunanandham niranjan.k...@gmail.com : [sending to users list] On Thu, Jul 16, 2015 at 10:23 AM, Niranjan Karunanandham niranjan.k...@gmail.com wrote:

Re: Check if a URL exists programatically

2015-07-21 Thread Konstantin Kolinko
2015-07-17 18:48 GMT+03:00 Mitch Claborn mitch...@claborn.net: I spent some time yesterday digging through code without much luck. Today I'm going to experiment with this: getting a Request Dispatcher for the URL from the ServletContext, creating a dummy ServerRequest and ServerResponse