Re: a servlet-related Java question

2010-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/22/2010 5:53 PM, Konstantin Kolinko wrote: 2010/4/23 Christopher Schultz ch...@christopherschultz.net: I'd love to see the code that enforces this. Search for applicationDispatcher.specViolation.request and

Re: a servlet-related Java question

2010-04-22 Thread Bill Barker
Christopher Schultz ch...@christopherschultz.net wrote in message news:4bcf5f41.6060...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote: Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas

Re: a servlet-related Java question

2010-04-22 Thread Pid
On 21/04/2010 19:52, André Warnier wrote: Hi. A while ago, I wrote a servlet filter which has served me well since, to wrap a servlet for which I do not have nor can obtain the source code, and of which I only generally know what it does. Now it seems that with a new version of this servlet,

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 2:37 AM, Bill Barker billwbar...@verizon.net wrote: Christopher Schultz ch...@christopherschultz.net wrote in message news:4bcf5f41.6060...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote:

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: It's pretty inaccessible for novice Java programmers, but you could use the proxy API which is [just] about the coolest thing available in Java IMO. If it does a forward or include done the line,

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 3:40 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: It's pretty inaccessible for novice Java programmers, but you could use the proxy API which is [just] about

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work with any remotely recent version of Tomcat. These versions enforce the spec requirement that the Request has to be a

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work with any remotely recent

Re: a servlet-related Java question

2010-04-22 Thread Konstantin Kolinko
2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kris, On 4/22/2010 4:48 PM, Kris Schneider wrote: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: The following filter works as expected on Tomcat 6.0.26 (some changes were required to make it actually

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/22/2010 4:53 PM, Konstantin Kolinko wrote: 2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- On 4/22/2010

Re: a servlet-related Java question

2010-04-22 Thread Konstantin Kolinko
2010/4/23 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/22/2010 4:53 PM, Konstantin Kolinko wrote: 2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz

a servlet-related Java question

2010-04-21 Thread André Warnier
Hi. A while ago, I wrote a servlet filter which has served me well since, to wrap a servlet for which I do not have nor can obtain the source code, and of which I only generally know what it does. Now it seems that with a new version of this servlet, the servlet itself crashes when wrapped by

Re: a servlet-related Java question

2010-04-21 Thread Mark Thomas
On 21/04/2010 19:52, André Warnier wrote: Hi. A while ago, I wrote a servlet filter which has served me well since, to wrap a servlet for which I do not have nor can obtain the source code, and of which I only generally know what it does. Now it seems that with a new version of this servlet,

Re: a servlet-related Java question

2010-04-21 Thread André Warnier
Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor anything of the kind, I would not want to even come under suspicion of reverse-engineering. So is there something that just lists the standard calls/methods used

Re: a servlet-related Java question

2010-04-21 Thread Mark Thomas
On 21/04/2010 20:24, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor anything of the kind, I would not want to even come under suspicion of reverse-engineering. So is there something

Re: a servlet-related Java question

2010-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:24 PM, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor anything of the kind, I would not want to even come under

Re: a servlet-related Java question

2010-04-21 Thread André Warnier
Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor anything of the kind, I would not want to even come under suspicion of reverse-engineering. So is

Re: a servlet-related Java question

2010-04-21 Thread Mark Thomas
On 21/04/2010 20:46, André Warnier wrote: Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor anything of the kind, I would not want to even come under

Re: a servlet-related Java question

2010-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote: Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD and decompile it. Thanks. But although my intentions are not obnoxious nor illegal nor

Re: a servlet-related Java question

2010-04-21 Thread Kris Schneider
On Wed, Apr 21, 2010 at 4:25 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote: Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas wrote: ... I'd just use JAD

Re: a servlet-related Java question

2010-04-21 Thread André Warnier
Mark, Chris and Kris, thanks. You have all impressed the hell out of me. You have also lost me.. at a guess about 50 lines ago. But I get the idea, and it is nice to learn that such things exist. I also believe this may be helpful to someone else some day looking for a solution to a case much

OT: a java question - static initialization

2008-02-20 Thread Dave
class Foo { private static int; static { a = 100; } Foo() { } } Class.forName(package.Foo).newInstance(); The static init block of Foo is not called. I am using Java 1.5 update14. It is a bug? Thanks

Re: OT: a java question - static initialization

2008-02-20 Thread Jim Cox
On Feb 20, 2008 10:47 AM, Dave [EMAIL PROTECTED] wrote: class Foo { private static int; static { a = 100; } Foo() { } } Class.forName(package.Foo).newInstance(); The static init block of Foo is not called. I am using Java 1.5

RE: a java question - static initialization

2008-02-20 Thread Caldarale, Charles R
From: Dave [mailto:[EMAIL PROTECTED] Subject: OT: a java question - static initialization class Foo { private static int; static { a = 100; } Foo() { } } Class.forName(package.Foo).newInstance(); The static init block of Foo

Re: OT: a java question - static initialization

2008-02-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth, Kenneth Westelinck wrote: | Did a quick test on 1.6.0 update 2 and the static block does get called. I | guess this is a bug. Er, this code doesn't look like it should compile: | class Foo { | | private static int; | Isn't there an

Re: Java Question

2006-02-24 Thread Mehdi Tahanizadeh
? Andrew -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:22 AM To: Tomcat Users List Subject: RE: Java Question From: Andrew English [mailto:[EMAIL PROTECTED] I have looked for the filenames.* on all the servers

RE: Java Question

2006-02-23 Thread Peter Crowther
From: Andrew English [mailto:[EMAIL PROTECTED] Is there anyway to check this theory? -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] [...] I suspect an operations issue. Has someone configured a revision control system (such as CVS or Subversion) on the

RE: Java Question

2006-02-23 Thread Ramin Farhanian
: Java Question From: Andrew English [mailto:[EMAIL PROTECTED] I have looked for the filenames.* on all the servers including the linux ones and not come up with anything except for what's on the two servers. I suspect an operations issue. Has someone configured a revision

Java Question

2006-02-22 Thread Andrew English
Does anyone know of a mailing list were I can ask some java related questions? The number one question I have is if it's possible to write code within Java that changes all your HTML files back to their original default? A client of mine runs, dare I say it here JBoss 2.4 and I found two

RE: Java Question

2006-02-22 Thread Andrew English
Andrew -Original Message- From: Robert Harper [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 10:10 AM To: 'Tomcat Users List' Subject: RE: Java Question Are the pages static or is there some process, servlet, script, or something else that creates these? There could also

RE: Java Question

2006-02-22 Thread Robert Harper
List Subject: RE: Java Question I have looked for the filenames.* on all the servers including the linux ones and not come up with anything except for what's on the two servers. I have not had a chance to check all the jar files, are ear files like jar files if so what's a good tool for opening both

RE: Java Question

2006-02-22 Thread Peter Crowther
From: Andrew English [mailto:[EMAIL PROTECTED] I have looked for the filenames.* on all the servers including the linux ones and not come up with anything except for what's on the two servers. I suspect an operations issue. Has someone configured a revision control system (such as CVS or

RE: Java Question

2006-02-22 Thread Andrew English
Is there anyway to check this theory? Andrew -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:22 AM To: Tomcat Users List Subject: RE: Java Question From: Andrew English [mailto:[EMAIL PROTECTED] I have looked for the filenames

RE: Java Question

2006-02-22 Thread Mauricio Fernandez A.
search for USB-Java and javaspain in www.yahoogroups.com Mauricio Fernandez A. Ingeniero de Sistemas Universidad Autonoma de Manizales -Mensaje original- De: Andrew English [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 22 febrero, 2006 16:12 Para: Tomcat Users List Asunto: Java

RE: Java Question

2006-02-22 Thread Sethuraman, Prabhu \(Cognizant\)
:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 9:12 AM To: Tomcat Users List Subject: Java Question Does anyone know of a mailing list were I can ask some java related questions? The number one question I have is if it's possible to write code within Java that changes all your HTML files

RE: Java Question

2006-02-22 Thread Andrew English
(Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 5:18 PM To: Tomcat Users List Subject: RE: Java Question Andrew, You will be surprised but here is what it is: JBoss is actually sending the calls made to your production server to the test server. This is because

Re: Java Question

2006-02-22 Thread Parsons Technical Services
of data(code written to do it), it is about the only way data is going to be removed. Doug - Original Message - From: Andrew English [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, February 22, 2006 5:47 PM Subject: RE: Java Question Thanks for the info

RE: Java Question

2006-02-22 Thread Andrew English
is the oldest version they have information on. :( Thanks Andrew -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 9:15 PM To: Tomcat Users List Subject: Re: Java Question Okay. Now for a few of my hair brain ideas. Every