Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Mark Thomas
On 15/12/2010 03:03, Gary Lawrence Murphy wrote: On Tue, Dec 14, 2010 at 7:00 PM, Mark Thomas ma...@apache.org wrote: Actually, this makes sense to me: the default mapping for the JSP servlet is *.jsp. Your path doesn't end in .jsp, and therefore does not match the url-pattern. this is the

Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Chinmoy Chakraborty
Hello, Is it possible to rename a jsp file in tomcat? I noticed I can rename from 'abc.jsp.out' to 'abc.jsp' but it does not allow renaming from 'abc.jsp' to 'abc.jsp.out' after I access the jsp. I guess once the jsp is accessed tomcat creates the jsp class and then onwards it maintains one to

RE: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Caldarale, Charles R
From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Subject: Is it possible to rename a jsp file in tomcat? Is it possible to rename a jsp file in tomcat? I noticed I can rename from 'abc.jsp.out' to 'abc.jsp' but it does not allow renaming from 'abc.jsp' to 'abc.jsp.out' after I access the

Re: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Mark Thomas
On 15/12/2010 13:44, Caldarale, Charles R wrote: From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Subject: Is it possible to rename a jsp file in tomcat? Is it possible to rename a jsp file in tomcat? I noticed I can rename from 'abc.jsp.out' to 'abc.jsp' but it does not allow renaming

Re: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Chinmoy Chakraborty
Thanks for your reply...my requirement is i want to disable and enable a jsp repeatedly (whether accessed or not) depending on certain custom flag. how i can achieve this in tomcat? On Wed, Dec 15, 2010 at 7:14 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Chinmoy

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
On Wed, Dec 15, 2010 at 4:54 AM, Mark Thomas ma...@apache.org wrote: Go read the spec. The JSP Servlet is mapped *based on file extension* not path. heh, how very quaint. Where did they get this idea? from MSDOS? Oh never mind. I don't think I want to know, and I suppose I just should be

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Mark Thomas
On 15/12/2010 14:03, Gary Lawrence Murphy wrote: On Wed, Dec 15, 2010 at 4:54 AM, Mark Thomas ma...@apache.org wrote: Go read the spec. The JSP Servlet is mapped *based on file extension* not path. heh, how very quaint. Where did they get this idea? from MSDOS? Oh never mind. I don't

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
thanks. I just might :) I can probably find it on Google, but would you happen to have the url for the jsr-315 spec? I still find it incredible that a 15 year mature unix-originating project in 2010 would still be demanding CPM/MSDOS filename extensions and not simply using the standard regex

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Mark Thomas
On 15/12/2010 14:48, Gary Lawrence Murphy wrote: thanks. I just might :) I can probably find it on Google, but would you happen to have the url for the jsr-315 spec? You can grab it from http://jcp.org/en/jsr/detail?id=315 Mark I still find it incredible that a 15 year mature

Re: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Pid
On 15/12/2010 13:51, Chinmoy Chakraborty wrote: Thanks for your reply...my requirement is i want to disable and enable a jsp repeatedly (whether accessed or not) depending on certain custom flag. how i can achieve this in tomcat? I dread to think what the answer will be, but why, exactly? p

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-15 Thread Pid
On 15/12/2010 02:40, Srikanth Konjarla wrote: I could catch Axis threadlocals from the app to clean up. However, I have a question wrt following tomcat's log at the time of undeploy of app. The message suggests that it is removing the same threadlocal twice. Is it because it was not removed in

RE: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Martin Gainty
Hi Gary this copied text comes straight from the Doc: Java Platform Standard Ed. 7 DRAFT ea-b121 java.net.Class URI java.lang.Object extended by java.net.URI All Implemented Interfaces: Serializable, ComparableURI public final class URI extends Object implements ComparableURI,

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-15 Thread Srikanth Konjarla
On 12/15/10 7:13 AM, Pid wrote: On 15/12/2010 02:40, Srikanth Konjarla wrote: I could catch Axis threadlocals from the app to clean up. However, I have a question wrt following tomcat's log at the time of undeploy of app. The message suggests that it is removing the same threadlocal twice.

Tomcat 7.0.2: Cannot stop thread started by web application

2010-12-15 Thread Näcker, Stephan (UIT)
Hey there, I 'm working on the following log file output: 15.12.2010 15:37:51 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SCHWERWIEGEND: The web application [/phoenix-webapp] appears to have started a thread named [Replication Thread] but has failed to stop it. This is

Re: Tomcat 7.0.2: Cannot stop thread started by web application

2010-12-15 Thread Mark Thomas
On 15/12/2010 15:41, Näcker, Stephan (UIT) wrote: Hey there, I 'm working on the following log file output: 15.12.2010 15:37:51 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SCHWERWIEGEND: The web application [/phoenix-webapp] appears to have started a thread

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
Thanks so much for that snippet; I notice in there no mention of filename extensions but instead they talk of parsing the string form and give no special meaning to the dot. It is a difficult question hard to answer in an email without a great deal of study, but to be naive and bold about it,

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Mark Thomas
On 15/12/2010 16:24, Gary Lawrence Murphy wrote: I mean, clearly I'm wrong, I'm just trying to see *why* I am wrong. To my mind, a URI should be completely implementation independent and all valid URI token characters should be valid regardless of the underlying technology. Again, go and

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/14/2010 10:08 PM, Gary Lawrence Murphy wrote: I am in a high-volume real-time environment where editing the web.xml to insert a new service is simply not an option, the recognition of .jsp scripts with pathinfo appended needs to be

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/14/2010 5:56 PM, Gary Lawrence Murphy wrote: oh, and I did try /test.jsp/* even though needing to explicitly match every jsp in the project would be prohibitively inflexible, but there again, it produced a parsing error and the webapp

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
On Wed, Dec 15, 2010 at 11:29 AM, Christopher Schultz ch...@christopherschultz.net wrote: A high-volume real-time environment where on-the-fly JSP compilation is allowed and ad-hoc insertion of new dynamic content is allowed? Sounds like madness. yes it is. such is the real world. we

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
I was guessing it was an error, or a mis-parsing; there was no trace printed, but the webapp containing that servlet-mapping was listed in the admin as not-loaded. Correcting that line in the web.xml, the webapp loaded fine. I can investigate further. On Wed, Dec 15, 2010 at 11:33 AM,

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/15/2010 11:24 AM, Gary Lawrence Murphy wrote: http://host:8080/clock/thetimeis.now/utc what I am hearing in the thread here is that I have introduced a CPM/MSDOS convention from the middle 70's that now changes the URI from a valid

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
well, first I'll have to completely digest the spec before I could answer this and ok, I guess we can throw MacOS in on the blame ;) as a total aside that may work for me, in the URL spec cited above, they used the notation of #extra-material -- what is the java method that returns that extra

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/15/2010 11:40 AM, Gary Lawrence Murphy wrote: Resin will only work on single CPU although it will use all the cores of that CPU; to work with multiple CPU we could license the pro version, but the cost for us is prohibitive. That's

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/15/2010 11:54 AM, Gary Lawrence Murphy wrote: as a total aside that may work for me, in the URL spec cited above, they used the notation of #extra-material -- what is the java method that returns that extra material? There is none:

Re: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/15/2010 8:51 AM, Mark Thomas wrote: On 15/12/2010 13:44, Caldarale, Charles R wrote: From: Chinmoy Chakraborty [mailto:cch...@gmail.com] Subject: Is it possible to rename a jsp file in tomcat? Is it possible to rename a jsp file in

Re: Is it possible to rename a jsp file in tomcat?

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chinmoy, On 12/15/2010 8:51 AM, Chinmoy Chakraborty wrote: Thanks for your reply...my requirement is i want to disable and enable a jsp repeatedly (whether accessed or not) depending on certain custom flag. how i can achieve this in tomcat? Might

Problem starting tomcat server.

2010-12-15 Thread Gaurav Pruthi
I am unable to start tomcat service using tomcat6w.exe and even I have tried on command line using commands setclasspath.bat followed by startup.bat but still no results . I have also trying changing port numbers but that too doesn't bear fruit.There is another issue also when I install some

JVM http.proxyHost param is not activated

2010-12-15 Thread Noriyo Koyama
Hi, ALL, I'd like to have your advice on the recent strange behavior on the proxy JVM param. I use tomcat 6 with the JVM param such as below for enabling the proxy when the application access to the external network. -DproxySet=true -DproxyHost=proxy-out -DproxyPort=3128

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
Yeah, that's what I thought as well, moments after asking ;) On Wed, Dec 15, 2010 at 12:03 PM, Christopher Schultz ch...@christopherschultz.net wrote: most user agents aren't going to send the anchor to the server because it's not relevant. -- *Have Blog, Will Travel: blog.teledyn.com* *A

Re: troubleshooting getPathInfo in jsp files

2010-12-15 Thread Gary Lawrence Murphy
with the latest resin the pro and unpro are the same code, just with code disabled until unlocked (which also sounds like the oldschool pricing models :( but the parsing of the jsp is the same as before, the pathinfo after the .jsp/ is accessible. It is a very elegant syntax actually. I'll look

Re: jndi-lookup fails, cured by tomcat restart

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 12/14/2010 6:13 PM, Dale Ogilvie wrote: There are a few of them, examples below. Some work for us to track down it would seem. SEVERE: The web application [/OLP] appears to have started a thread named [ActiveMQ Scheduler] but has

Re: [OT] JVM http.proxyHost param is not activated

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Noriyo, (Marking OT as this has nothing to do with Tomcat). On 12/15/2010 1:17 PM, Noriyo Koyama wrote: I'd like to have your advice on the recent strange behavior on the proxy JVM param. I use tomcat 6 with the JVM param such as below for

Re: Problem starting tomcat server.

2010-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaurav, On 12/15/2010 12:08 PM, Gaurav Pruthi wrote: I am unable to start tomcat service using tomcat6w.exe and even I have tried on command line using commands setclasspath.bat followed by startup.bat but still no results. You should just be

Re: [OT] JVM http.proxyHost param is not activated

2010-12-15 Thread Noriyo Koyama
Hi, Chris, Thanks for the prompt reply. You are right that this may not relate to Tomcat at all. How are you launching Tomcat? How are you setting these JVM parameters? The below is how I start up the tomcat /usr/bin/java -Djava.util.logging.config.file=/opt/xxx/conf/logging.properties -server

can't find jni.h compiling jsvc on Mac Os X

2010-12-15 Thread Edoardo Panfili
I am trying to install tomcat 7.0.5 on Mac os X 10.6.5 but during jsvc build: ./configure --with-java=/System/Library/Frameworks/JavaVM.framework/Home make [...] $gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\i386\ -Wall -Wstrict-prototypes

Tomcat 6 not shutting down

2010-12-15 Thread April Easton
Good day, I've been searching for information on how to determine what process is keeping Tomcat from shutting down properly. From other posts, I've been able to determine that the threads started from an Axis2 1.5.3 servlet on Tomcat were still processing when the shutdown.sh command was

RE: Tomcat 6 not shutting down

2010-12-15 Thread Caldarale, Charles R
From: April Easton [mailto:aeas...@shawneecourt.org] Subject: Tomcat 6 not shutting down How do I determine what process is keeping Tomcat from shutting down properly? Thread, not process. This is the culprit: Timer-2 prio=10 tid=0x50b72800 nid=0x6697 in Object.wait()

Re: http-tomcat - AJP ilink receive failed - 500/503 errors

2010-12-15 Thread Shantanu Pavgi
Sorry for the late reply. But it might help someone having similar issue. There was a firewall between two systems (distinct from CentOS iptables), which dropped (idle) connections after some time. Not sure about exact firewall config here. The Apache web server would throw an 500/503 error

Re: Tomcat vs. web sockets

2010-12-15 Thread Ben Xiong
Tomcat does not support websocket so far. I have used Jetty 7 for websocket, it's surprisingly easy, much easier than glassfish mode. Try this: http://blogs.webtide.com/gregw/entry/jetty_websocket_server On Tue, Dec 14, 2010 at 9:27 PM, Jess Holle je...@ptc.com wrote: Does Tomcat 7 provide

Monitoring tomcat6 as a windows service with jvisualvm

2010-12-15 Thread Johan Cwiklinski
Hello, I'm trying to monitor a Tomcat6 (6.0.29) instance which is running as a service une der windows (2003 server) using Oracle's JDK 1.6.0_21. In tomcat service, under java tab, I've added the following: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9002

Re: Where does my stderr go?

2010-12-15 Thread Thomas Kloeber
Andre, André Warnier wrote on 14.12.2010 11:10: Yes. What about these ? * Redirect Stdout: auto * Redirect Stderr: auto Do you know what that does ? Why don't you try to set the Redirect Stderr to some file path on your server, and see what arrives in it ? You could also try to