Re: Rollback in Tomcat7 under parallel deployment
On 28/10/2011 21:53, Christopher Schultz wrote: > Ellecer, > > On 10/27/2011 7:11 PM, Ellecer Valencia wrote: >> On Thursday, October 27, 2011, Mark Thomas >> wrote: >>> A better way to handle the rollback scenario is to deploy a >>> copy of ROOT##001.war as ROOT#003.war. > >> That's the first option we saw, but just wanted to confirm that >> there wasn't another rollback feature similar to parallel >> deployment. I guess in a rollback scenario it's probably more >> prudent to just end those sessions since the app is broken >> anyway. The idea of "parallel rollback" hurts my head just >> imagining how it would be implemented! =) > > I might be worried that ROOT##001 had been marked for > eventual-undeployment and you might find yourself in a situation > where your "rollback" essentially causes an outage. > > Mark, can you confirm the behavior in this situation? The (brief) > documentation says that the "latest version" will be used if a > session does not yet exist. Is the "latest version" defined as the > highest version number yet deployed (in which case the above > scenario will occur) or is it defined as the highest version number > currently deployed? And the code says...? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Static files not being displayed
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] Static files not being displayed > For some reason, the US likes to spend most of it's money on sports > that nobody in the rest of the world cares about. And vice versa. Some of us in the USA still follow test match cricket... - 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.
Re: [OT] Static files not being displayed
On Fri, Oct 28, 2011 at 22:58, Christopher Schultz wrote: [...] > > For some reason, the US likes to spend most of it's money > "its" ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Static files not being displayed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/28/2011 4:02 PM, André Warnier wrote: > Rajkumar Singh wrote: >> Thanks once again for replying to my mail. Have a nice weekend. >> And please support Patriots against the Steelers:) > > No political comments are allowed on the list. ;-) I can't tell if you're kidding, so I'll go ahead and make it not funny: those are American "football" teams, not political parties. For some reason, the US likes to spend most of it's money on sports that nobody in the rest of the world cares about. And vice versa. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rF3oACgkQ9CaO5/Lv0PDuMwCfUvt1TqLOJ0Q1VvKJ/Y5rUs1p et4AoLt0sUOzVdXS+DNDdEsVChVj9LdF =rzNH -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 & 7 Logging to rsyslog
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 10/27/2011 7:58 PM, John Schwartzman wrote: > Can anyone point me to documentation concerning logging of > authentication information (login, logout, lockout) to a remote > syslog in Tomcat 6 & 7? 1. Don't hijack threads. 2. Don't post twice. 3. Don't hijack the same thread twice. 4. Read the documentation on logging. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rFoEACgkQ9CaO5/Lv0PDBAACgmRkSIaBZF/yf8Ij2i5SC6Zkg tbAAnA6QVMEYx0PG9eM/s6buOq5EohYl =1RHi -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Rollback in Tomcat7 under parallel deployment
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ellecer, On 10/27/2011 7:11 PM, Ellecer Valencia wrote: > On Thursday, October 27, 2011, Mark Thomas > wrote: >> A better way to handle the rollback scenario is to deploy a copy >> of ROOT##001.war as ROOT#003.war. > > That's the first option we saw, but just wanted to confirm that > there wasn't another rollback feature similar to parallel > deployment. I guess in a rollback scenario it's probably more > prudent to just end those sessions since the app is broken anyway. > The idea of "parallel rollback" hurts my head just imagining how it > would be implemented! =) I might be worried that ROOT##001 had been marked for eventual-undeployment and you might find yourself in a situation where your "rollback" essentially causes an outage. Mark, can you confirm the behavior in this situation? The (brief) documentation says that the "latest version" will be used if a session does not yet exist. Is the "latest version" defined as the highest version number yet deployed (in which case the above scenario will occur) or is it defined as the highest version number currently deployed? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rFkEACgkQ9CaO5/Lv0PBR9ACghJGnUy7tSYzmo7MJNA73eWsZ GYAAnR/7fvwFtzeFRcnhhouAW88VOrBX =zn6f -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: context.xml not being read
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jilen, On 10/27/2011 9:06 PM, jilen wrote: > This is the question i've asked before > > in org.apache.catalina.startup.HostConfig.deployWAR(ContextName, > File, String) i found some code like these > > context.setName(cn.getName()); context.setPath(cn.getPath()); > context.setWebappVersion(cn.getVersion()); > context.setDocBase(file); ... name and path attribute are override > with the war name *So these attribute are not work. * You got an answer before. Did you not like the answer you got? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rFQsACgkQ9CaO5/Lv0PByZwCfcU+z22ji05sNrFISvjAFyGjS AXwAn0xZz16m0XTNUq0peYDCUeIta8f0 =/zCh -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Adding SSL information into access log
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tapio, On 10/28/2011 8:31 AM, Tapio Niemi wrote: > How do I configure Tomcat to put certain information related to > SSL request into access log? In particular, I need to log the > client certificate's O, OU, and CN fields, or if that's not > possible, at least the serial number of the certificate. > > For example, in Apache httpd I can do: > > LogFormat "%h %{SSL_CLIENT_M_SERIAL}x %{SSL_PROTOCOL}x > %{SSL_CIPHER}x" > > I already tried: pattern="%{SSL_CLIENT_M_SERIAL}r %h %l %u %t > "%r" %s %b" on access log valce configuration, which > caused server not to start That shouldn't have happened: Tomcat should start with the above log pattern. > , and pattern="%{CLIENT_AUTH}r %h %l %u %t "%r" %s %b", > which just causes "-" to appear on the log. That's because "CLIENT_AUTH" doesn't appear to be a request attribute. > Also tried %{SSL_CLIENT_M_SERIAL}x and s with varying results. Why did you try that? Just guessing? > I've been searching FAQ, Howtos, Access Log Valve reference and > even some of the javadocs for answer to no avail without direct > answer, only being able to make guesses how this would work. The servlet spec 3.0, section 3.8 is titled "SSL Attributes". You could start there. If you can't find a standard request attribute that meets your needs, you could always write a Filter (or Valve, if it's necessary to run before the AccessLogValve) that puts anything you want into the request for logging purposes. - -chris - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rFHMACgkQ9CaO5/Lv0PAFMwCffudP6f4zt5w0NfeNNE7QKCTX CioAoICulhqpxO5vn5ugNKfHDYUWQHrE =DgCs -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: catalina_pid file contains +1 pid number instead of correct pid
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 10/28/2011 8:43 AM, Cooper man wrote: > And this is a bit of a hack but something like this will give you > the correct pid. Set application.name or soehting similar as a jave > env variable and then > > if [ ! -z "$CATALINA_PID" ]; then ps aux | grep tomcat | grep > application.name=YOUR_APP_NAME | head -n 1 | awk '{ print $2 }' > > $CATALINA_PID Some *NIX's have a program called "pidof" which might be helpful. If you run many processes with the same, it might not be so helpful. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6rCxQACgkQ9CaO5/Lv0PBDXQCeNbb9Yo2HJKgxNPCoCrrzbTwj 4MIAmQES9A7tQxJxonrfAdLxz292xkXz =GuGg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Rajkumar Singh wrote: Hi Guys, Please ignore this. My system admin asked me to run some freakin SUDO command and that helped to retrieve all the images. I am sorry If I wasted your time but this email exchanged has helped to understand how to send XML files to the tomcat user group .. but still not how to not top-post and most importantly it has helped me to dig deeper into the "AccessLogValve". I will try to get more from my system admin as what SUDO did exactly. I have worked on tomcat before but never encountered such problems. But now we are also curious, as to what sudo command could help solve a problem of static files not found. Come on, tell us. Thanks once again for replying to my mail. Have a nice weekend. And please support Patriots against the Steelers:) No political comments are allowed on the list. ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:57 PM Subject: Re: Static files not being displayed Ok, had a closer look at the application's web.xml, and I feel incompetent to help for that problem. There are a lot of filters there, and some dispatching going on, and I don't know a thing about Spring. I am now wondering if this issue would not better be asked on the Spring user's list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hi Andre, Please ignore this. I have already sent a mail a short while ago. Thanks Raj Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
Re: Static files not being displayed
Ok, had a closer look at the application's web.xml, and I feel incompetent to help for that problem. There are a lot of filters there, and some dispatching going on, and I don't know a thing about Spring. I am now wondering if this issue would not better be asked on the Spring user's list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Hi Guys, Please ignore this. My system admin asked me to run some freakin SUDO command and that helped to retrieve all the images. I am sorry If I wasted your time but this email exchanged has helped to understand how to send XML files to the tomcat user group and most importantly it has helped me to dig deeper into the "AccessLogValve". I will try to get more from my system admin as what SUDO did exactly. I have worked on tomcat before but never encountered such problems. Thanks once again for replying to my mail. Have a nice weekend. And please support Patriots against the Steelers:) Thanks Raj From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:47 PM Subject: Re: Static files not being displayed > > > From: > André Warnier > To: > Tomcat Users List > Date: > 10/28/2011 03:35 PM > Subject: > Re: Static files not being displayed > > > > Francis GALIEGUE wrote: >> On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: >>> Rajkumar Singh wrote: Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS > Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files > like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I > noticed was that all the static files are not fetched from the server. I get 404 > error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even > my application is making the database call and making right transaction > with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you > all know, this is the first time I am working on the tomcat 6 version. >>> To my knowledge, there is nothing "special" in terms of configuration >>> required to allow Tomcat to serve static files, if they are in the > right >>> place. >>> (Of course, this applies to a "standard" Tomcat downloaded from >>> tomcat.apache.org; things may be different for pre-packaged Tomcat's > from >>> other sources). >>> >>> To get more help, you will need to provide some additional information. >>> Since you are using firebug, you should be able to see which exact URL > the >>> browser requests for one of these static elements. >>> Give us an example, and also tell us the path of this same element on > disk. >>> What may also help is the content of the ./WEB-INF/web.xml file of your >>> application, and the ./META-INF/context.xml if there is one (all > comments >>> and passwords removed). >>> >>> And also tell us where you got your Tomcat from, and where you find > Tomcat's >>> "server.xml" file. >>> >>> >> I'd say, first, configure an AccessLogValve and give the output of it. >> Tomcat definitely cannot find the requested files and there has to be >> a reason for it. >> > There is certainly a reason, but we don't know yet if it is really Tomcat > sending the 404 > replies. > The access log would help, presuming the requests really go to that same > Tomcat. > But the firebug data should tell us that. > Rajkumar, this way : Rajkumar Singh wrote: > I am sure all the request are going to the tomcat server since firebug > clearly shows the same domain name for the file that are retrieved and > those that are not. > (reply at the end, not at the beginning) Then, in your server.xml, uncomment this section : That will make Francis happy. :-) Then, answer ny other questions : - what is a request URL for one of these static files, as firebug clearly shows it for the request line ? (I mean, paste that URL here please) - what is the path on disk of that same file ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
Re: Static files not being displayed
From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:35 PM Subject: Re: Static files not being displayed Francis GALIEGUE wrote: On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: Rajkumar Singh wrote: Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I noticed was that all the static files are not fetched from the server. I get 404 error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even my application is making the database call and making right transaction with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you all know, this is the first time I am working on the tomcat 6 version. To my knowledge, there is nothing "special" in terms of configuration required to allow Tomcat to serve static files, if they are in the right place. (Of course, this applies to a "standard" Tomcat downloaded from tomcat.apache.org; things may be different for pre-packaged Tomcat's from other sources). To get more help, you will need to provide some additional information. Since you are using firebug, you should be able to see which exact URL the browser requests for one of these static elements. Give us an example, and also tell us the path of this same element on disk. What may also help is the content of the ./WEB-INF/web.xml file of your application, and the ./META-INF/context.xml if there is one (all comments and passwords removed). And also tell us where you got your Tomcat from, and where you find Tomcat's "server.xml" file. I'd say, first, configure an AccessLogValve and give the output of it. Tomcat definitely cannot find the requested files and there has to be a reason for it. There is certainly a reason, but we don't know yet if it is really Tomcat sending the 404 replies. The access log would help, presuming the requests really go to that same Tomcat. But the firebug data should tell us that. Rajkumar, this way : Rajkumar Singh wrote: > I am sure all the request are going to the tomcat server since firebug > clearly shows the same domain name for the file that are retrieved and > those that are not. > (reply at the end, not at the beginning) Then, in your server.xml, uncomment this section : That will make Francis happy. :-) Then, answer ny other questions : - what is a request URL for one of these static files, as firebug clearly shows it for the request line ? (I mean, paste that URL here please) - what is the path on disk of that same file ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Static files not being displayed
> From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] > Subject: Re: Static files not being displayed > I am sure all the request are going to the tomcat server since firebug > clearly shows the same domain name for the file that are retrieved and > those that are not. That means almost nothing, since Tomcat may be front-ended by something else. Turn on the access log. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
On Fri, Oct 28, 2011 at 21:34, André Warnier wrote: [...] >> >> I'd say, first, configure an AccessLogValve and give the output of it. >> Tomcat definitely cannot find the requested files and there has to be >> a reason for it. >> > There is certainly a reason, but we don't know yet if it is really Tomcat > sending the 404 replies. Which is exactly why I suggested that ;) If 404 is not seen in the Tomcat access log file, then we know Tomcat isn't the culprit ;) -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
I am sure all the request are going to the tomcat server since firebug clearly shows the same domain name for the file that are retrieved and those that are not. From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:35 PM Subject: Re: Static files not being displayed Francis GALIEGUE wrote: > On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: >> Rajkumar Singh wrote: >>> Hello guys, >>> >>> I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. >>> >>> I created a war file named ROOT.war and dropped it under the tomcat >>> "webapps" folder. The WAR consists of JSP, JAR, XML and static files like >>> images, javascript and CSS. >>> >>> The tomcat expanded the WAR file properly and I was able to get to the >>> dynamic files of my application through the URL. However what I noticed was >>> that all the static files are not fetched from the server. I get 404 error >>> in my firebug (Using firefox as my browser). >>> >>> And the dynamic files are shown correctly, no problem with that. Even my >>> application is making the database call and making right transaction with it >>> >>> Can someone please help me in resolving the issue? Is there any >>> configuration that needs to be done on the tomcat server. To let you all >>> know, this is the first time I am working on the tomcat 6 version. >>> >> To my knowledge, there is nothing "special" in terms of configuration >> required to allow Tomcat to serve static files, if they are in the right >> place. >> (Of course, this applies to a "standard" Tomcat downloaded from >> tomcat.apache.org; things may be different for pre-packaged Tomcat's from >> other sources). >> >> To get more help, you will need to provide some additional information. >> Since you are using firebug, you should be able to see which exact URL the >> browser requests for one of these static elements. >> Give us an example, and also tell us the path of this same element on disk. >> What may also help is the content of the ./WEB-INF/web.xml file of your >> application, and the ./META-INF/context.xml if there is one (all comments >> and passwords removed). >> >> And also tell us where you got your Tomcat from, and where you find Tomcat's >> "server.xml" file. >> >> > > I'd say, first, configure an AccessLogValve and give the output of it. > Tomcat definitely cannot find the requested files and there has to be > a reason for it. > There is certainly a reason, but we don't know yet if it is really Tomcat sending the 404 replies. The access log would help, presuming the requests really go to that same Tomcat. But the firebug data should tell us that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
Re: Static files not being displayed
Rajkumar Singh wrote: Oops, sorry, I am new to the list : Let me nitpick a bit more then, by way of greeting : 2) you forgot to remove the comments. XML files are already pretty hard to read when wrapped by the email programs. Having a lot of not-used lines doesn't make it any easier. 1) preferably, do not top-post. Write your answer below the question, it makes it easier to follow the flow of the conversation. Try again. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Static files not being displayed
The tomcat was installed by one of our system administrator. I am not sure from where he got it from but most likely it is not from the third party. From: "Caldarale, Charles R" To: Tomcat Users List Date: 10/28/2011 03:28 PM Subject: RE: Static files not being displayed > From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] > Subject: Re: Static files not being displayed > Please find the files as an attachment. The list strips attachments; paste the information inline. And the answers to the rest of André's questions? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
Re: Static files not being displayed
Francis GALIEGUE wrote: On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: Rajkumar Singh wrote: Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I noticed was that all the static files are not fetched from the server. I get 404 error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even my application is making the database call and making right transaction with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you all know, this is the first time I am working on the tomcat 6 version. To my knowledge, there is nothing "special" in terms of configuration required to allow Tomcat to serve static files, if they are in the right place. (Of course, this applies to a "standard" Tomcat downloaded from tomcat.apache.org; things may be different for pre-packaged Tomcat's from other sources). To get more help, you will need to provide some additional information. Since you are using firebug, you should be able to see which exact URL the browser requests for one of these static elements. Give us an example, and also tell us the path of this same element on disk. What may also help is the content of the ./WEB-INF/web.xml file of your application, and the ./META-INF/context.xml if there is one (all comments and passwords removed). And also tell us where you got your Tomcat from, and where you find Tomcat's "server.xml" file. I'd say, first, configure an AccessLogValve and give the output of it. Tomcat definitely cannot find the requested files and there has to be a reason for it. There is certainly a reason, but we don't know yet if it is really Tomcat sending the 404 replies. The access log would help, presuming the requests really go to that same Tomcat. But the firebug data should tell us that. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Oops, sorry, I am new to the list : server.xml starts server.xml ends META-INF/context.xml starts META-INF/context.xml ends WEB-INF/web.xml starts http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> asw webAppRootKey ROOT log4jConfigLocation /WEB-INF/log4j.properties log4jRefreshInterval 6 log4jExposeWebAppRoot false com.pack.spring.MyLog4jConfigListener org.springframework.web.context.ContextLoaderListener logging-filter org.springframework.web.filter.Log4jNestedDiagnosticContextFilter XSS XSSFilter com.pack.security.CrossScriptingFilter encoding-filter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy logging-filter *.jspx logging-filter *.htm logging-filter *.do logging-filter *.jsp XSSFilter /* encoding-filter /* springSecurityFilterChain /* main com.pack.spring.SpringStartupServlet envBeanName site.environment 2 dwr org.directwebremoting.spring.DwrSpringServlet debug false crossDomainSessionSecurity false main *.htm main *.jspx main *.do dwr /dwr/* 60 index.jspx index.htm index.jsp 404 /notfound.do jdbc/test javax.sql.DataSource Container serverURLPrefix java.lang.String mediaServerUrlPrefix java.lang.String logLocation java.lang.String http://java.sun.com/jstl/core /WEB-INF/tld/c.tld http://java.sun.com/jstl/fn /WEB-INF/tld/fn.tld http://java.sun.com/jstl/fmt /WEB-INF/tld/fmt.tld http://jsptags.com/tags/navigation/pager /WEB-INF/tld/pager-taglib.tld http://framework.company.com/framework /WEB-INF/tld/framework.tld WEB-INF/web.xml ends From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:28 PM Subject: Re: Static files not being displayed Rajkumar Singh wrote: > Hi Andre > > Please find the files as an attachment. You have to paste the content in the text of your message. The list strips most attachments. > > > > Thanks > Raj > > > > From: > André Warnier > To: > Tomcat Users List > Date:
RE: Static files not being displayed
> From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] > Subject: Re: Static files not being displayed > Please find the files as an attachment. The list strips attachments; paste the information inline. And the answers to the rest of André's questions? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Rajkumar Singh wrote: Hi Andre Please find the files as an attachment. You have to paste the content in the text of your message. The list strips most attachments. Thanks Raj From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:10 PM Subject: Re: Static files not being displayed Rajkumar Singh wrote: Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I noticed was that all the static files are not fetched from the server. I get 404 error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even my application is making the database call and making right transaction with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you all know, this is the first time I am working on the tomcat 6 version. To my knowledge, there is nothing "special" in terms of configuration required to allow Tomcat to serve static files, if they are in the right place. (Of course, this applies to a "standard" Tomcat downloaded from tomcat.apache.org; things may be different for pre-packaged Tomcat's from other sources). To get more help, you will need to provide some additional information. Since you are using firebug, you should be able to see which exact URL the browser requests for one of these static elements. Give us an example, and also tell us the path of this same element on disk. What may also help is the content of the ./WEB-INF/web.xml file of your application, and the ./META-INF/context.xml if there is one (all comments and passwords removed). And also tell us where you got your Tomcat from, and where you find Tomcat's "server.xml" file. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Hi Andre Please find the files as an attachment. Thanks Raj From: André Warnier To: Tomcat Users List Date: 10/28/2011 03:10 PM Subject: Re: Static files not being displayed Rajkumar Singh wrote: > Hello guys, > > I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. > > I created a war file named ROOT.war and dropped it under the tomcat > "webapps" folder. The WAR consists of JSP, JAR, XML and static files like > images, javascript and CSS. > > The tomcat expanded the WAR file properly and I was able to get to the > dynamic files of my application through the URL. However what I noticed > was that all the static files are not fetched from the server. I get 404 > error in my firebug (Using firefox as my browser). > > And the dynamic files are shown correctly, no problem with that. Even my > application is making the database call and making right transaction with > it > > Can someone please help me in resolving the issue? Is there any > configuration that needs to be done on the tomcat server. To let you all > know, this is the first time I am working on the tomcat 6 version. > To my knowledge, there is nothing "special" in terms of configuration required to allow Tomcat to serve static files, if they are in the right place. (Of course, this applies to a "standard" Tomcat downloaded from tomcat.apache.org; things may be different for pre-packaged Tomcat's from other sources). To get more help, you will need to provide some additional information. Since you are using firebug, you should be able to see which exact URL the browser requests for one of these static elements. Give us an example, and also tell us the path of this same element on disk. What may also help is the content of the ./WEB-INF/web.xml file of your application, and the ./META-INF/context.xml if there is one (all comments and passwords removed). And also tell us where you got your Tomcat from, and where you find Tomcat's "server.xml" file. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: > Rajkumar Singh wrote: >> >> Hello guys, >> >> I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. >> >> I created a war file named ROOT.war and dropped it under the tomcat >> "webapps" folder. The WAR consists of JSP, JAR, XML and static files like >> images, javascript and CSS. >> >> The tomcat expanded the WAR file properly and I was able to get to the >> dynamic files of my application through the URL. However what I noticed was >> that all the static files are not fetched from the server. I get 404 error >> in my firebug (Using firefox as my browser). >> >> And the dynamic files are shown correctly, no problem with that. Even my >> application is making the database call and making right transaction with it >> >> Can someone please help me in resolving the issue? Is there any >> configuration that needs to be done on the tomcat server. To let you all >> know, this is the first time I am working on the tomcat 6 version. >> > > To my knowledge, there is nothing "special" in terms of configuration > required to allow Tomcat to serve static files, if they are in the right > place. > (Of course, this applies to a "standard" Tomcat downloaded from > tomcat.apache.org; things may be different for pre-packaged Tomcat's from > other sources). > > To get more help, you will need to provide some additional information. > Since you are using firebug, you should be able to see which exact URL the > browser requests for one of these static elements. > Give us an example, and also tell us the path of this same element on disk. > What may also help is the content of the ./WEB-INF/web.xml file of your > application, and the ./META-INF/context.xml if there is one (all comments > and passwords removed). > > And also tell us where you got your Tomcat from, and where you find Tomcat's > "server.xml" file. > > I'd say, first, configure an AccessLogValve and give the output of it. Tomcat definitely cannot find the requested files and there has to be a reason for it. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Static files not being displayed
Rajkumar Singh wrote: Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I noticed was that all the static files are not fetched from the server. I get 404 error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even my application is making the database call and making right transaction with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you all know, this is the first time I am working on the tomcat 6 version. To my knowledge, there is nothing "special" in terms of configuration required to allow Tomcat to serve static files, if they are in the right place. (Of course, this applies to a "standard" Tomcat downloaded from tomcat.apache.org; things may be different for pre-packaged Tomcat's from other sources). To get more help, you will need to provide some additional information. Since you are using firebug, you should be able to see which exact URL the browser requests for one of these static elements. Give us an example, and also tell us the path of this same element on disk. What may also help is the content of the ./WEB-INF/web.xml file of your application, and the ./META-INF/context.xml if there is one (all comments and passwords removed). And also tell us where you got your Tomcat from, and where you find Tomcat's "server.xml" file. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Static files not being displayed
Hello guys, I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. I created a war file named ROOT.war and dropped it under the tomcat "webapps" folder. The WAR consists of JSP, JAR, XML and static files like images, javascript and CSS. The tomcat expanded the WAR file properly and I was able to get to the dynamic files of my application through the URL. However what I noticed was that all the static files are not fetched from the server. I get 404 error in my firebug (Using firefox as my browser). And the dynamic files are shown correctly, no problem with that. Even my application is making the database call and making right transaction with it Can someone please help me in resolving the issue? Is there any configuration that needs to be done on the tomcat server. To let you all know, this is the first time I am working on the tomcat 6 version. Thanks Raj Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
Re: catalina_pid file contains +1 pid number instead of correct pid
Maybe you can get somewhere looking at the parent process ID (PPID) column in ps output and knowing the PID of cronolog process. Best regards, Konstantin Kolinko 2011/10/28 Cooper man : > > The danger with that is if you have multiple jvms running on one machine as > we do, you will get a list of ids > > > Raghu GS wrote: >> >> Thank you so much for coming up with a solution for this problem. >> I found a better hack for this problem here >> http://www.tomcatexpert.com/comment/reply/249/220 >> >> >> Cooper man wrote: >>> >>> No problem , glad I can be of help as it took me so long to figure it out >>> too >>> >>> >>> You need to change the block where the pid is assigned which should be >>> just under the line I described >>> >>> if [ ! -z "$CATALINA_PID" ]; then >>> >>> fi >>> >>> And this is a bit of a hack but something like this will give you the >>> correct pid. >>> Set application.name or soehting similar as a jave env variable and then >>> >>> if [ ! -z "$CATALINA_PID" ]; then >>> ps aux | grep tomcat | grep application.name=YOUR_APP_NAME | >>> head -n 1 | awk '{ print $2 }' > $CATALINA_PID >>> fi >>> >>> >>> >>> >>> >>> Raghu GS wrote: Hi Cooper Man You are a genius. you have perfectly guessed our setup and problem. And I am very happy about finding the root cause finally. Is there any solution for this problem? Cooper man wrote: > > Hi Raghu, > > My guess is that you have changed the logging to use cronolog and as > such the PID being written is actually the logging process and not the > catalina process. Check your catalina.sh file > If you see something like this > > org.apache.catalina.startup.Bootstrap "$@" start 2>&1 > |/usr/bin/cronolog "$CATALINA_BASE" > > Then there is your answer > > > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: catalina_pid file contains +1 pid number instead of correct pid
The danger with that is if you have multiple jvms running on one machine as we do, you will get a list of ids Raghu GS wrote: > > Thank you so much for coming up with a solution for this problem. > I found a better hack for this problem here > http://www.tomcatexpert.com/comment/reply/249/220 > > > Cooper man wrote: >> >> No problem , glad I can be of help as it took me so long to figure it out >> too >> >> >> You need to change the block where the pid is assigned which should be >> just under the line I described >> >> if [ ! -z "$CATALINA_PID" ]; then >> >> fi >> >> And this is a bit of a hack but something like this will give you the >> correct pid. >> Set application.name or soehting similar as a jave env variable and then >> >> if [ ! -z "$CATALINA_PID" ]; then >> ps aux | grep tomcat | grep application.name=YOUR_APP_NAME | >> head -n 1 | awk '{ print $2 }' > $CATALINA_PID >> fi >> >> >> >> >> >> Raghu GS wrote: >>> >>> Hi Cooper Man >>> >>> You are a genius. >>> you have perfectly guessed our setup and problem. >>> And I am very happy about finding the root cause finally. >>> Is there any solution for this problem? >>> >>> Cooper man wrote: Hi Raghu, My guess is that you have changed the logging to use cronolog and as such the PID being written is actually the logging process and not the catalina process. Check your catalina.sh file If you see something like this org.apache.catalina.startup.Bootstrap "$@" start 2>&1 |/usr/bin/cronolog "$CATALINA_BASE" Then there is your answer Raghu GS wrote: > > Thanks for showing your interest in helping me resolve the issue. > Do you want me to post bash/shell output or catalina.out file's > output? > > > Christopher Schultz-2 wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Raghu, >> >> On 9/29/2011 1:30 AM, Raghu GS wrote: > I have recently enabled catalina_pid functionality using > environment variable. The PID file got created and contains +1 > PID number. >> >> So, when you look at the PID file you get, say "1235" but when you >> run >> a "ps" you see your JVM process is PID "1234"? >> >> I'm surprised that's the case. I would buy that the pid of the >> /script/ was "1234" and that the JVM is "1235" but I guess strange >> things can sometimes happen. >> >>> Actually the PID number in the PID file is not wildly incorrect. >>> So, please suggest me an easy to implement solution. >> >> We're not entirely sure of the problem, so coming up with a solution >> isn't going to be terribly easy. >> >> Can you show us what happens when you do this: >> >> $ bin/shutdown.sh >> $ bin/startup.sh >> $ cat "$CATALINA_PID" >> $ ps aux | grep 'java\PID' >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.10 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAk6EkTQACgkQ9CaO5/Lv0PCXPQCfbsvgBvgDP85OKgFVrkJ9Lb6L >> EWgAn2zBw4rPnqAkMKvP19gzI11ZGSCq >> =zVEw >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> > > >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/catalina_pid-file-contains-%2B1-pid-number-instead-of-correct-pid-tp32521407p32738842.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: catalina_pid file contains +1 pid number instead of correct pid
Thank you so much for coming up with a solution for this problem. I found a better hack for this problem here http://www.tomcatexpert.com/comment/reply/249/220 Cooper man wrote: > > No problem , glad I can be of help as it took me so long to figure it out > too > > > You need to change the block where the pid is assigned which should be > just under the line I described > > if [ ! -z "$CATALINA_PID" ]; then > > fi > > And this is a bit of a hack but something like this will give you the > correct pid. > Set application.name or soehting similar as a jave env variable and then > > if [ ! -z "$CATALINA_PID" ]; then > ps aux | grep tomcat | grep application.name=YOUR_APP_NAME | head > -n 1 | awk '{ print $2 }' > $CATALINA_PID > fi > > > > > > Raghu GS wrote: >> >> Hi Cooper Man >> >> You are a genius. >> you have perfectly guessed our setup and problem. >> And I am very happy about finding the root cause finally. >> Is there any solution for this problem? >> >> Cooper man wrote: >>> >>> Hi Raghu, >>> >>> My guess is that you have changed the logging to use cronolog and as >>> such the PID being written is actually the logging process and not the >>> catalina process. Check your catalina.sh file >>> If you see something like this >>> >>> org.apache.catalina.startup.Bootstrap "$@" start 2>&1 |/usr/bin/cronolog >>> "$CATALINA_BASE" >>> >>> Then there is your answer >>> >>> >>> Raghu GS wrote: Thanks for showing your interest in helping me resolve the issue. Do you want me to post bash/shell output or catalina.out file's output? Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Raghu, > > On 9/29/2011 1:30 AM, Raghu GS wrote: I have recently enabled catalina_pid functionality using environment variable. The PID file got created and contains +1 PID number. > > So, when you look at the PID file you get, say "1235" but when you run > a "ps" you see your JVM process is PID "1234"? > > I'm surprised that's the case. I would buy that the pid of the > /script/ was "1234" and that the JVM is "1235" but I guess strange > things can sometimes happen. > >> Actually the PID number in the PID file is not wildly incorrect. >> So, please suggest me an easy to implement solution. > > We're not entirely sure of the problem, so coming up with a solution > isn't going to be terribly easy. > > Can you show us what happens when you do this: > > $ bin/shutdown.sh > $ bin/startup.sh > $ cat "$CATALINA_PID" > $ ps aux | grep 'java\PID' > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk6EkTQACgkQ9CaO5/Lv0PCXPQCfbsvgBvgDP85OKgFVrkJ9Lb6L > EWgAn2zBw4rPnqAkMKvP19gzI11ZGSCq > =zVEw > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/catalina_pid-file-contains-%2B1-pid-number-instead-of-correct-pid-tp32521407p32738120.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: catalina_pid file contains +1 pid number instead of correct pid
No problem , glad I can be of help as it took me so long to figure it out too You need to change the block where the pid is assigned which should be just under the line I described if [ ! -z "$CATALINA_PID" ]; then fi And this is a bit of a hack but something like this will give you the correct pid. Set application.name or soehting similar as a jave env variable and then if [ ! -z "$CATALINA_PID" ]; then ps aux | grep tomcat | grep application.name=YOUR_APP_NAME | head -n 1 | awk '{ print $2 }' > $CATALINA_PID fi Raghu GS wrote: > > Hi Cooper Man > > You are a genius. > you have perfectly guessed our setup and problem. > And I am very happy about finding the root cause finally. > Is there any solution for this problem? > > Cooper man wrote: >> >> Hi Raghu, >> >> My guess is that you have changed the logging to use cronolog and as such >> the PID being written is actually the logging process and not the >> catalina process. Check your catalina.sh file >> If you see something like this >> >> org.apache.catalina.startup.Bootstrap "$@" start 2>&1 |/usr/bin/cronolog >> "$CATALINA_BASE" >> >> Then there is your answer >> >> >> Raghu GS wrote: >>> >>> Thanks for showing your interest in helping me resolve the issue. >>> Do you want me to post bash/shell output or catalina.out file's output? >>> >>> >>> Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raghu, On 9/29/2011 1:30 AM, Raghu GS wrote: >>> I have recently enabled catalina_pid functionality using >>> environment variable. The PID file got created and contains +1 >>> PID number. So, when you look at the PID file you get, say "1235" but when you run a "ps" you see your JVM process is PID "1234"? I'm surprised that's the case. I would buy that the pid of the /script/ was "1234" and that the JVM is "1235" but I guess strange things can sometimes happen. > Actually the PID number in the PID file is not wildly incorrect. > So, please suggest me an easy to implement solution. We're not entirely sure of the problem, so coming up with a solution isn't going to be terribly easy. Can you show us what happens when you do this: $ bin/shutdown.sh $ bin/startup.sh $ cat "$CATALINA_PID" $ ps aux | grep 'java\PID' - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6EkTQACgkQ9CaO5/Lv0PCXPQCfbsvgBvgDP85OKgFVrkJ9Lb6L EWgAn2zBw4rPnqAkMKvP19gzI11ZGSCq =zVEw -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/catalina_pid-file-contains-%2B1-pid-number-instead-of-correct-pid-tp32521407p32737967.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Adding SSL information into access log
Hi, How do I configure Tomcat to put certain information related to SSL request into access log? In particular, I need to log the client certificate's O, OU, and CN fields, or if that's not possible, at least the serial number of the certificate. For example, in Apache httpd I can do: LogFormat "%h %{SSL_CLIENT_M_SERIAL}x %{SSL_PROTOCOL}x %{SSL_CIPHER}x" I already tried: pattern="%{SSL_CLIENT_M_SERIAL}r %h %l %u %t "%r" %s %b" on access log valce configuration, which caused server not to start, and pattern="%{CLIENT_AUTH}r %h %l %u %t "%r" %s %b", which just causes "-" to appear on the log. Also tried %{SSL_CLIENT_M_SERIAL}x and s with varying results. I've been searching FAQ, Howtos, Access Log Valve reference and even some of the javadocs for answer to no avail without direct answer, only being able to make guesses how this would work. I'm running Tomcat 7.0.22 configured to require client certificate authentication, which itself is working fine. Thanks in advance! -Tapio Niemi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: cannot read complete HTTP request body. It reads only 8192 characters
Konstantin Kolinko wrote: 2011/10/27 Christopher Schultz : On 10/27/2011 4:58 AM, Anantaneni Harish wrote: Thanks for the directions the Rainer. Actually the issue is just solved. We have changed from BufferedReader in = request.getReader(); to BufferedReader in = new BufferedReader(new InputStreamReader(request.getInputStream())); Now whole body has been read at my client's environment as well. But would like to know, what causes the issue. Do you have any idea, why same method can read whole data in my environment and does not read whole data at my customer's environment? You'll have to provide more information, such as the code you are using. I'm fairly sure Tomcat is not the source of the problem. +1. I think you need to pay more attention on the documentation of the java.io.Reader#read() method, or maybe look for a tutorial. See also documentation for java.io.InputStream#available(). In short: the read() method returns a portion of data that is currently available. If you need more data you must call read() repeatedly in a loop until it returns -1. .. and the difference between two systems, may be that on one system, the network is faster (or the system slower, or the buffer bigger) and so by the time you do the read, there are more bytes available in the buffer. If you had provided some of your source code that performs reading, we would be able to point at the exact error in your code. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: cannot read complete HTTP request body. It reads only 8192 characters
2011/10/27 Christopher Schultz : > On 10/27/2011 4:58 AM, Anantaneni Harish wrote: >> Thanks for the directions the Rainer. Actually the issue is just >> solved. >> >> We have changed from BufferedReader in = request.getReader(); >> >> to >> >> BufferedReader in = new BufferedReader(new >> InputStreamReader(request.getInputStream())); >> >> Now whole body has been read at my client's environment as well. >> >> But would like to know, what causes the issue. Do you have any >> idea, why same method can read whole data in my environment and >> does not read whole data at my customer's environment? > > You'll have to provide more information, such as the code you are > using. > > I'm fairly sure Tomcat is not the source of the problem. > +1. I think you need to pay more attention on the documentation of the java.io.Reader#read() method, or maybe look for a tutorial. See also documentation for java.io.InputStream#available(). In short: the read() method returns a portion of data that is currently available. If you need more data you must call read() repeatedly in a loop until it returns -1. If you had provided some of your source code that performs reading, we would be able to point at the exact error in your code. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: context.xml not being read
On 28 Oct 2011, at 02:07, jilen wrote: > On 10/28/2011 06:45 AM, Rajkumar Singh wrote: >> Hi Chuck, >> >> Once again appreciate your response. >> >> What I did was I created a WAR file and dropped it under the tomcat >> webapps folder and started it. This helped in overcoming my problem. >> >> This process created conf/Catalina/[host]/[appName].xml and copied all the >> property from my local META-INF/context.xml into the new [appName].xml. >> This helped the tomcat in reading all the environment variables. >> >> Thank you everyone who replied to my mail. Please keep up the good work. >> >> Thanks >> Raj >> >> >> >> >> From: >> "Caldarale, Charles R" >> To: >> Tomcat Users List >> Date: >> 10/27/2011 05:55 PM >> Subject: >> RE: context.xml not being read >> >> >> >>> From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] >>> Subject: Re: context.xml not being read >>> If the context.xml file is being ignored then why the variable that I >> have >>> defined in the server.xml is not being read? Should I delete the >>> META-INF/context.xml file completely? >> Having a element in server.xml is strongly discouraged these >> days. Better to keep it in META-INF/context.xml of the webapp, or in >> conf/Catalina/[host]/[appName].xml. Regardless, you must have it in only >> one place; having it in multiple places means the behavior is undefined. >> >> Note that if you want to define the default webapp, it should be named >> ROOT (case sensitive). You must not use path attribute when the >> element is in META-INF/context.xml or in >> conf/Catalina/[host]/[appName].xml. Read the docs on the >> element for more details. >> >> - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> >> >> Disclaimer >> The information in this email and any attachments may contain proprietary >> and confidential information that is intended for the addressee(s) only. If >> you are not the intended recipient, you are hereby notified that any >> disclosure, copying, distribution, retention or use of the contents of this >> information is prohibited. When addressed to our clients or vendors, any >> information contained in this e-mail or any attachments is subject to the >> terms and conditions in any governing contract. If you have received this >> e-mail in error, please immediately contact the sender and delete the e-mail. >> > This is the question i've asked before > > in org.apache.catalina.startup.HostConfig.deployWAR(ContextName, File, String) > i found some code like these > > context.setName(cn.getName()); > context.setPath(cn.getPath()); > context.setWebappVersion(cn.getVersion()); > context.setDocBase(file); > ... > name and path attribute are override with the war name > *So these attribute are not work. * Seems like they work like tgey're supposed to, to me. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org