Re: Can't access tomcat manager
Lava Saleem wrote: Thanks everyone for the replies, it is working now it was a port problem. Would you care to explain that ? We don't have that one in our probabilities table yet. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.
2010/12/3 Bill Wang : > Is it possible? I do not think that it is possible. Maybe you are running more than 2 tomcat instances (e.g. failed to stop some old one properly). Maybe one of them runs with wrong $CATALINA_HOME or wrong $CATALINA_BASE. Maybe one of them runs with root (nobody should configure their tomcats like that, but mention here for completeness). What are your exact Tomcat versions? What connectors do you use? How do you start them? (jsvc, scripts; are those versions from tomcat.apache.org, or repacked ones). Maybe you had symlinks somewhere. Maybe you deleted the xml files from ${catalina.base}/conf/Catalina/localhost. That also will cause undeployment. Anyway, when Tomcat autodeploys or undeploys a webapp, it prints relevant messages in its logs. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.
Hi All, Let me explain the situation. We got running tomcat with application ABC in /export/home/xyz/apache-tomcat/webapp/ABC, applicaiton ABC is deployed by ABC.war, and owner is xyz We plan to migrate to /opt/tomcat/apache-tomcat/webapp/ABC, so I install the second tomcat under /opt/tomcat, owner is tcadmin, Idid the adjust such as java path, catalina home path or others. account xyz and tcadmin are in different groups. Today, with the new tomcat running, I accident delete the war file under /opt/tomcat/apache-tomcat/webapp, then /opt/tomcat/apache-tomcat/webapp/ABC is disappeared. It is fine, I shouldn't clean war file when the services is running, then I'd like to copy the folder /export/home/xyz/apache-tomcat/webapp/ABC to /opt/tomcat/apache-tomcat/webapp/ABC. Then the strange thing happened. the old app: /export/home/xyz/apache-tomcat/webapp/ABC is disappeared. Is it possible? I have checked history, all commands running in both account: xyz and tcadmin. There is no any rm command running by xyz. So I need your help to give me the suggestion. Regards, Bill
Re: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
2010/12/3 Mark Thomas : > On behalf of the Tomcat committers I am pleased to announce that Sylvain > Laurent (slaurent) has been voted in as a new Tomcat committer. > > Please join me in welcoming him. > Welcome Sylvain! -- Keiichi.Fujino - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
02.12.2010 20:44, Pid: > On 12/2/10 12:34 PM, Justin Case wrote: >>> From: Pid >>> If the request isn't being routed to your application, then without a >>> ROOT application the host hasn't got a mechanism to serve any response >>> other than an error. >> >> Error is fine, as long it's a 404 (and not this enigmatic 400)... > > 400 isn't enigmatic and /is/ an error. ;) Yes, it is an error. But in this case, I, too, consider the error erroneous. A status code of 400 basically means that the request was syntactically b0rked. But, as I understand it, that's not the problem here: the request is syntactically fine - it fails because the server is misconfigured. Therefore a status code of 500 seems more appropriate to me. -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: automatic deployment without server.xml - bad request
> From: Justin Case [mailto:send_lotsa_spam_h...@yahoo.com] > Subject: Re: automatic deployment without server.xml - bad request > ...or maybe I should consider whether my application can be > both root AND answer to the context... Really, you *must* have a default webapp. Why don't you just deploy your webapp as ROOT and be done with it? Don't make life difficult for yourself. - 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: Comet while migrating to Tomcat 7
Op donderdag, 2 december 2010 20:37 schreef Pid :> On 12/2/10 3:28 PM, Ronald Klop wrote: > Hello, > > I'm trying Tomcat 7. The Comet classes have been moved from the > org.apache.catalina package to the org.apache.catalina.comet package. > That is fine by me. But for deployment reasons it would be easy if I can > deploy the same war on Tomcat 6 and Tomcat 7. In that way I don't need a > turn-key upgrade of my Tomcat servers. > > Is there a way to make it dynamic which package is used? Something like > a Proxy or some other trick I don't know yet. This wouldn't require code changes? > How do others do this? Recompile, or produce two versions of the app. :s p Hi, My problem is not changing the code, but I now have to maintain two versions of the code. One with import org.apache.catalina.CometProcessor and one with org.apache.catalina.comet.CometProcessor. And Eclipse has to resolve both of them. Look. I can now choose to develop against Tomcat 7, but when I have a problem with it in production in a couple of weeks I would like to have the ability to switch back to Tomcat 6 easily. Somehow we wil manage this, but I was wondering how other people are doing this migration. Maybe I'm missing something clever. In the end I'm expected to switch to ServletRequest.doAsync(), or am I not? Ronald.
Re: automatic deployment without server.xml - bad request
> From: Pid > > On 12/2/10 10:24 PM, Justin Case wrote: > > Yeah I probably will do that - but I will still regard it as a dirty hack... > > A ROOT app should be mandatory. It's not - yet :) so I'm all legal without. But what do you think about the 400 error? Is it really appropriate as answer in this setup? And is it really my particular need to write an application only to convert the 400 into 404? I'm just surprised... ...or maybe I should consider whether my application can be both root AND answer to the context... Cheers, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to schedule events on Tomcat?
Thanks! > -Original Message- > From: David kerber [mailto:dcker...@verizon.net] > Sent: Thursday, December 02, 2010 05:05 PM > To: Tomcat Users List > Subject: Re: How to schedule events on Tomcat? > > On 12/2/2010 3:17 PM, Joseph Morgan wrote: > > Why can't you use process scheduling of your OS? > > > > -Original Message- > > From: Brian [mailto:bbprefix-tom...@yahoo.com] > > Sent: Thursday, December 02, 2010 1:52 PM > > To: users@tomcat.apache.org > > Subject: How to schedule events on Tomcat? > > > > Hi, > > > > I have a regular app in my Tomcat server, based on the request/response > paradigm. > > > > I need some processes tu run at some specific intervals, lets say after 30 > minutes of some events, or maybe every 30 minutes. Is there a way to do that > on Tomcat, to schedule events? > > > > I don't want to try tying this process to the requests, because it would make > them run slower, and it would run twice at the same time if two requests > arrive almous simultaneously. > > I use java.util.Timer and java.util.TimerTask for this. > > D > > - > 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: How to schedule events on Tomcat
Mark, This is what I call a perfect solution. I already did it using your advice. Thanks! > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Thursday, December 02, 2010 04:13 PM > To: Tomcat Users List > Subject: Re: How to schedule events on Tomcat > > On 02/12/2010 21:08, Brian wrote: > > Wht I want to do is to call a method inside an object in the same java web > app. Trying to do that from the OS would not be a good solution for me. > > java.util.Timer and friends combined with a ServletContextListener > > Mark > > - > 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: automatic deployment without server.xml - bad request
On 12/2/10 10:24 PM, Justin Case wrote: > Yeah I probably will do that - but I will still regard it as a dirty hack... A ROOT app should be mandatory. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
RE: APR/Native: when to use it?
Would it provide better performance for AJP connector processing? Thanks, David -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, December 02, 2010 3:09 PM To: Tomcat Users List Subject: RE: APR/Native: when to use it? > From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] > Subject: APR/Native: when to use it? > Is it always advisable to use APR if tomcat is the main > web server? No. > Does it provide better performance for core tomcat engine > or do you need to write code to take advantage of it? That's not really an "or" situation. Depending on your circumstances, it may or may not provide better performance (also dependent on what you happen to mean by "performance"). You never need to write code to take advantage of it. > What are the pros and cons of using it? Are there cons? Look here: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Connector%20Compari son > Will it provide better performance for SSL connectors? Pretty much always. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: GET and POST data in same request
On 02/12/2010 22:21, Larry wrote: > Hello, > > I need to have an apache mod_rewrite pass a request ( which contains > POST data ) along to my servlet with some GET parameters. > > I think when Tomcat sees the GET params, it invokes my servlet's doGet > ( which annihilates my POST data ). > > I need to be able to access both the GET data from the request URL and > the POST data from the body. > > Is this possible? Maybe its not tomcat's fault ;) > > Any insight is welcome, thanks. The user agent needs to send this request using POST. Tomcat will merge parameters from the request body with those in the URL as per the rules in the Servlet spec. If the response body is being dropped then the user agent is either using GET or using POST and failing to set content type required for Tomcat to parse the request body. Again, this is defined in the Servlet spec. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: GET and POST data in same request
GET and POST are HTTP verbs/operations. It is impossible to have a combo GET/POST. Which ever verb is specified in the HTTP headers is what will control whether doGet or doPost is called. You are correct that GET and POST reference data differently, however they are actions and not "areas of data" in an HTTP request. Regards, Justin --Original Message-- From: Larry To: users ReplyTo: Tomcat Users List Subject: GET and POST data in same request Sent: Dec 2, 2010 17:21 Hello, I need to have an apache mod_rewrite pass a request ( which contains POST data ) along to my servlet with some GET parameters. I think when Tomcat sees the GET params, it invokes my servlet's doGet ( which annihilates my POST data ). I need to be able to access both the GET data from the request URL and the POST data from the body. Is this possible? Maybe its not tomcat's fault ;) Any insight is welcome, thanks. -Larry - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Sent from my BlackBerry device
Re: automatic deployment without server.xml - bad request
> From: Pid > > On 12/2/10 12:34 PM, Justin Case wrote: > > Error is fine, as long it's a 404 (and not this enigmatic 400)... > > 400 isn't enigmatic and /is/ an error. ;) It IS an error indeed, but we're not talking about throwing just ANY random error number here :) 400 is a specific error which to my untrained eye has absolutely nothing to do with the fact that under the named context there's no application deployed. That's why a 404 would have sent me much sooner in the right direction - resource not found, instead of trying endlessly to play with the request headers and the HTTP protocol details. But maybe it's just me. > I'd suggest you make a simple empty ROOT app. Tomcat will then serve > 404s for missing URLs. You could also customise the 404 response page > to suit. Yeah I probably will do that - but I will still regard it as a dirty hack... Otherwise thanks a lot for your support, I was obviously misunderstanding what the Path parameter of the Context is expected to do. Now I know what I have to change. Or I think so at least. Back to the drawing board. Thanks a lot to you all gals/guys, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Questions about installing APR
Thanks for your help. That worked. -Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] Sent: Thursday, December 02, 2010 4:27 PM To: Tomcat Users List Subject: Re: Questions about installing APR In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" To: Tomcat Users List Sent: Thu, December 2, 2010 1:08:38 PM Subject: Questions about installing APR My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
GET and POST data in same request
Hello, I need to have an apache mod_rewrite pass a request ( which contains POST data ) along to my servlet with some GET parameters. I think when Tomcat sees the GET params, it invokes my servlet's doGet ( which annihilates my POST data ). I need to be able to access both the GET data from the request URL and the POST data from the body. Is this possible? Maybe its not tomcat's fault ;) Any insight is welcome, thanks. -Larry - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to schedule events on Tomcat?
On 12/2/2010 3:17 PM, Joseph Morgan wrote: Why can't you use process scheduling of your OS? -Original Message- From: Brian [mailto:bbprefix-tom...@yahoo.com] Sent: Thursday, December 02, 2010 1:52 PM To: users@tomcat.apache.org Subject: How to schedule events on Tomcat? Hi, I have a regular app in my Tomcat server, based on the request/response paradigm. I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events? I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously. I use java.util.Timer and java.util.TimerTask for this. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/2/2010 10:47 AM, Mark Thomas wrote: > On behalf of the Tomcat committers I am pleased to announce that Sylvain > Laurent (slaurent) has been voted in as a new Tomcat committer. > > Please join me in welcoming him. Welcome to the team. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz4EIcACgkQ9CaO5/Lv0PDJdQCeLkjFR40MzEkJCqh/cr2jGaT2 a3MAoIYVgzeJAaGG5wZzUVFDqGG5jvKA =VBPJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: APR/Native: when to use it?
Thanks for your quick response, but I still don't know when should I use APR. That comparison table doesn't help me much (perhaps my ignorance here). -Original Message- > Is it always advisable to use APR if tomcat is the main > web server? No. > Does it provide better performance for core tomcat engine > or do you need to write code to take advantage of it? That's not really an "or" situation. Depending on your circumstances, it may or may not provide better performance (also dependent on what you happen to mean by "performance"). You never need to write code to take advantage of it. > What are the pros and cons of using it? Are there cons? Look here: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Connector%20Com parison > Will it provide better performance for SSL connectors? Pretty much always. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Questions about installing APR
In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" To: Tomcat Users List Sent: Thu, December 2, 2010 1:08:38 PM Subject: Questions about installing APR My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't access tomcat manager
Thanks everyone for the replies, it is working now it was a port problem. Lava On Thu, Dec 2, 2010 at 2:56 PM, André Warnier wrote: > Lava Saleem wrote: > >> Hi everyone, >> Thanks for the replies yeah I have checked the tomcat user xml file and >> there are no missing comments brackets or anything so is there any >> other >> reason for this to happen ? do I need to modify anything else ? >> >> Unfortunately now, as someone alredy pointed out, we have run out of > probabilities. > But wait, David is restarting from the beginning, so maybe we get to make a > second bet. > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Lava Saleem Ph.D Candidate Systems Engineering Dept. ETAS 357 University of Arkansas at Little Rock 2801 S University Avenue Little Rock, AR 72204 Tel: (501) 920 6261 Email: lnsal...@ualr.edu
Re: How to schedule events on Tomcat
On 02/12/2010 21:08, Brian wrote: > Wht I want to do is to call a method inside an object in the same java web > app. Trying to do that from the OS would not be a good solution for me. java.util.Timer and friends combined with a ServletContextListener Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Windows Service Uninstall
Hi Mark, On 11/30/2010 08:41 PM, Mark Eggers wrote: > Possibly Sysinternals? > http://technet.microsoft.com/en-us/sysinternals/default.aspx > See the Handle utility. Thanks for the tip, I usually install Sysinternals but didn't use the "find handle"-tool until now. Searching for the service name lists the processes having a handle on the service. Thanks for the tip! Regards, Thomas - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: APR/Native: when to use it?
> From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] > Subject: APR/Native: when to use it? > Is it always advisable to use APR if tomcat is the main > web server? No. > Does it provide better performance for core tomcat engine > or do you need to write code to take advantage of it? That's not really an "or" situation. Depending on your circumstances, it may or may not provide better performance (also dependent on what you happen to mean by "performance"). You never need to write code to take advantage of it. > What are the pros and cons of using it? Are there cons? Look here: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Connector%20Comparison > Will it provide better performance for SSL connectors? Pretty much always. - 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
Questions about installing APR
My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay
How to schedule events on Tomcat
Wht I want to do is to call a method inside an object in the same java web app. Trying to do that from the OS would not be a good solution for me. > -Original Message- > From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] > Sent: Thursday, December 02, 2010 03:17 PM > To: Tomcat Users List; bbprefix-tom...@yahoo.com > Subject: RE: How to schedule events on Tomcat? > > Why can't you use process scheduling of your OS? > > -Original Message- > From: Brian [mailto:bbprefix-tom...@yahoo.com] > Sent: Thursday, December 02, 2010 1:52 PM > To: users@tomcat.apache.org > Subject: How to schedule events on Tomcat? > > Hi, > > I have a regular app in my Tomcat server, based on the request/response > paradigm. > > I need some processes tu run at some specific intervals, lets say after 30 > minutes of some events, or maybe every 30 minutes. Is there a way to do that > on Tomcat, to schedule events? > > I don't want to try tying this process to the requests, because it would make > them run slower, and it would run twice at the same time if two requests > arrive almous simultaneously. > > > > Thanks, > > > > Brian > > > >
APR/Native: when to use it?
Couple of APR related questions: 1. Is it always advisable to use APR if tomcat is the main web server? Does it provide better performance for core tomcat engine or do you need to write code to take advantage of it? What are the pros and cons of using it? Are there cons? 2. Will it provide better performance for SSL connectors? Thanks. -Ajay
RE: How to schedule events on Tomcat?
Why can't you use process scheduling of your OS? -Original Message- From: Brian [mailto:bbprefix-tom...@yahoo.com] Sent: Thursday, December 02, 2010 1:52 PM To: users@tomcat.apache.org Subject: How to schedule events on Tomcat? Hi, I have a regular app in my Tomcat server, based on the request/response paradigm. I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events? I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously. Thanks, Brian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to Run a Single Application instead of all Applications under webapps
Caldarale, Charles R wrote: From: Johnny Clark [mailto:jcl...@acteksoft.com] Subject: How to Run a Single Application instead of all Applications under webapps I can't figure out how to get Tomcat to run a specific application as opposed to every application under the webapps directory. The proper terminology is "deploy", not "run". Turn off auto-deploy, and use the manager app to start, stop, and redeploy individual webapps as needed. http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment And I would like to add that the normal purpose for putting an application under /webapps/, is to have tomcat run it. If you don't want them to run, just don't put them there. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
Mark Thomas wrote: On behalf of the Tomcat committers I am pleased to announce that Sylvain Laurent (slaurent) has been voted in as a new Tomcat committer. Please join me in welcoming him. Welcome, Sylvain. But now wait. If you make them all committers, we're going to run out of users here. Or is that the point ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't access tomcat manager
Lava Saleem wrote: Hi everyone, Thanks for the replies yeah I have checked the tomcat user xml file and there are no missing comments brackets or anything so is there any other reason for this to happen ? do I need to modify anything else ? Unfortunately now, as someone alredy pointed out, we have run out of probabilities. But wait, David is restarting from the beginning, so maybe we get to make a second bet. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to schedule events on Tomcat?
Hi, I have a regular app in my Tomcat server, based on the request/response paradigm. I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events? I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously. Thanks, Brian
Re: automatic deployment without server.xml - bad request
On 12/2/10 12:34 PM, Justin Case wrote: >> From: Pid >> If the request isn't being routed to your application, then without a >> ROOT application the host hasn't got a mechanism to serve any response >> other than an error. > > Error is fine, as long it's a 404 (and not this enigmatic 400)... 400 isn't enigmatic and /is/ an error. ;) You can either implement a custom ErrorValve in your host, or provide a ROOT application. Any request to your server that doesn't match the path of a deployed application gets directed to ROOT. Which you don't have. I'd suggest you make a simple empty ROOT app. Tomcat will then serve 404s for missing URLs. You could also customise the 404 response page to suit. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: automatic deployment without server.xml - bad request
On 12/2/10 12:23 PM, Justin Case wrote: >> From: Pid >> This is either because your application is not deployed, or because the >> request path you're using does not match the actual request path deployed. >> >> When you start Tomcat, is there a message in the logs saying: >> >> 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory >> INFO: Deploying web application directory com.mycompany.myapp >> OR >> 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory >> INFO: Deploying web application directory myapp >> ? >> What is the exact URL (you may omit the actual domain if you wish) that >> you then request? > > Hmmm, it says "Deploying web application directory com.mycompany.myapp" > which > is somehow what I was expecting (it IS in that directory under wtpwebapps), > then > I'm calling it with http://localhost:8080/myapp (I need it that way) The app is under /com.mycompany.myapp not /myapp. That's the problem, Tomcat is then trying to find an app to serve that URL, can't so sends 400. > Now that you mention, I notice this difference: > - when I put it in the server.xml and it gets deployed automatically, Tomcat > creates under "work/Catalina/localhost" the directory myapp. All fine. Because you can specify the path in server.xml. Otherwise it's dependant on the app directory/war file name, unless you do some trickery with the conf/Catalina/localhost/myapp.xml file. > - when I use the standalone context.xml it creates under > "work/Catalina/localhost" a directory com.mycompany.myapp - which stays empty > afterwards. > I still don't know what and why it happens, but I feel it's getting closer to > the root cause :) Easy solution: rename the dir from "com.mycompany.myapp" to "myapp". WAR files are not packages, give them a sensible name. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Comet while migrating to Tomcat 7
On 12/2/10 3:28 PM, Ronald Klop wrote: > Hello, > > I'm trying Tomcat 7. The Comet classes have been moved from the > org.apache.catalina package to the org.apache.catalina.comet package. > That is fine by me. But for deployment reasons it would be easy if I can > deploy the same war on Tomcat 6 and Tomcat 7. In that way I don't need a > turn-key upgrade of my Tomcat servers. > > Is there a way to make it dynamic which package is used? Something like > a Proxy or some other trick I don't know yet. This wouldn't require code changes? > How do others do this? Recompile, or produce two versions of the app. :s p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
RE: How to Run a Single Application instead of all Applications under webapps
> From: Johnny Clark [mailto:jcl...@acteksoft.com] > Subject: How to Run a Single Application instead of all Applications under > webapps > I can't figure out how to get Tomcat to run a specific application > as opposed to every application under the webapps directory. The proper terminology is "deploy", not "run". Turn off auto-deploy, and use the manager app to start, stop, and redeploy individual webapps as needed. http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment - 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: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
On 02.12.2010 16:47, Mark Thomas wrote: On behalf of the Tomcat committers I am pleased to announce that Sylvain Laurent (slaurent) has been voted in as a new Tomcat committer. Please join me in welcoming him. Welcome Sylvain, and Congratulations! Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to Run a Single Application instead of all Applications under webapps
I have used Jboss for a long time, but recently we've removed our dependencies on a full blown J2EE container so that we can run in Tomcat. I am trying to modify my development environment to support our standard workflow, but I can't figure out how to get Tomcat to run a specific application as opposed to every application under the webapps directory. I've done a lot of searching, I'm beginning to think that Tomcat does not support this type of operation, but I wanted to verify that before I rethink our process. So IF Tomcat worked just like Jboss then this is how it WOULD work. I have two versions of my application, compiled and ready to run. They are in the following directories: C:\apache-tomcat-6\webapps\MyApp_V1 C:\apache-tomcat-6\webapps\MyApp_V2 When I want to start up MyApp_V1, I would pass that name into the startup.bat or catalina.bat. In my Jboss deployments I simply start Jboss using 'run -c MyApp_V1'. Our application's start up time is not insignificant, so starting both apps is a very bad thing, especially since I'll probably have more than two versions. Obviously, I could copy MyApp_Vx in and out of the webapps directory as needed, but this type of operation can confuse my IDE, so I'd like to avoid it. I am running on Windows XP and the tomcat version is 6.0.29. Thanks in advance for the assistance.
RE: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
Bonjour Monsieur Laurent Bon Chance! Martin __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 2 Dec 2010 19:49:50 +0300 > Subject: Re: [ANN] New Tomcat committer: Sylvain Laurent (slaurent) > From: knst.koli...@gmail.com > To: users@tomcat.apache.org > > 2010/12/2 Mark Thomas : > > On behalf of the Tomcat committers I am pleased to announce that Sylvain > > Laurent (slaurent) has been voted in as a new Tomcat committer. > > > > Please join me in welcoming him. > > Welcome, Sylvain! > > Best regards, > Konstantin Kolinko > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
Re: [ANN] New Tomcat committer: Sylvain Laurent (slaurent)
2010/12/2 Mark Thomas : > On behalf of the Tomcat committers I am pleased to announce that Sylvain > Laurent (slaurent) has been voted in as a new Tomcat committer. > > Please join me in welcoming him. Welcome, Sylvain! Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't access tomcat manager
02.12.2010 15:43, Lava Saleem: > Thanks for the replies yeah I have checked the tomcat user xml file and > there are no missing comments brackets or anything so is there any other > reason for this to happen ? do I need to modify anything else ? What *missing* comment brackets? What André tried to explain, is that you have to make sure to not add your role and user definitions *inside* the comment that, by default, spans everything between and . Did you correct your typo? Maybe you should repost the contents of your tomcat-users.xml - this time *entirely*. -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[ANN] New Tomcat committer: Sylvain Laurent (slaurent)
On behalf of the Tomcat committers I am pleased to announce that Sylvain Laurent (slaurent) has been voted in as a new Tomcat committer. Please join me in welcoming him. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't access tomcat manager
Ok ... checklist time ... - Comments around the and elements have been removed. From what I could tell in your original post this is taken care of. - The tomcat server has been restarted since the last time tomcat-users.xml has been edited. - You are accessing the manager app using the path /manger/html on the end of your tomcat urls. - You are sure tomcat is listening on the port specified in your URLs (if not specified, default is 80 for http, 443 for https) - Other apps are working in this tomcat instance and you can reach them. - Check your logs for messages during startup and the timestamp when you accessed the manager app - Please describe what you get instead of the expected manager app (login dialog, 403 response, 404 response, etc., ...) Checking back over this thread, I don't see enough detail to figure anything out. Please paint the picture for us. --David On 12/2/2010 9:43 AM, Lava Saleem wrote: > Hi everyone, > Thanks for the replies yeah I have checked the tomcat user xml file and > there are no missing comments brackets or anything so is there any other > reason for this to happen ? do I need to modify anything else ? > > Thank you > Lava > On Thu, Dec 2, 2010 at 3:52 AM, Pid wrote: > >> On 12/1/10 10:05 PM, Lava Saleem wrote: >>> Hi, >>> I have installed apache tomcat 7.0.4 on a centos linux box, >> 7.0.5 has just been released. >> >> >> p >> > > > -- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Comet while migrating to Tomcat 7
Hello, I'm trying Tomcat 7. The Comet classes have been moved from the org.apache.catalina package to the org.apache.catalina.comet package. That is fine by me. But for deployment reasons it would be easy if I can deploy the same war on Tomcat 6 and Tomcat 7. In that way I don't need a turn-key upgrade of my Tomcat servers. Is there a way to make it dynamic which package is used? Something like a Proxy or some other trick I don't know yet. How do others do this? Ronald.
Re: Can't access tomcat manager
Hi everyone, Thanks for the replies yeah I have checked the tomcat user xml file and there are no missing comments brackets or anything so is there any other reason for this to happen ? do I need to modify anything else ? Thank you Lava On Thu, Dec 2, 2010 at 3:52 AM, Pid wrote: > On 12/1/10 10:05 PM, Lava Saleem wrote: > > Hi, > > I have installed apache tomcat 7.0.4 on a centos linux box, > > 7.0.5 has just been released. > > > p > --
Re: automatic deployment without server.xml - bad request
> From: "Caldarale, Charles R" > > When you say "standalone context.xml", are you referring to a >element located in the webapp's META-INF/context.xml directory? Yes, that one. > Make sure you don't have a conf/Catalina/[host]/[appName].xml file, since > that > >will override anything inside the webapp. It usually gets created automatically, right? I remove it by hand each time before I plan some changes/redeploy. > Please post the entire (not just a fragment) server.xml you're using with > the >"standalone" context.xml, along with the element. Remove all >comments and obfuscate proprietary information first. Here it goes: Thank you, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: automatic deployment without server.xml - bad request
> From: Justin Case [mailto:send_lotsa_spam_h...@yahoo.com] > Subject: Re: automatic deployment without server.xml - bad request > when I use the standalone context.xml it creates under > "work/Catalina/localhost" a directory com.mycompany.myapp > - which stays empty afterwards. When you say "standalone context.xml", are you referring to a element located in the webapp's META-INF/context.xml directory? Make sure you don't have a conf/Catalina/[host]/[appName].xml file, since that will override anything inside the webapp. Please post the entire (not just a fragment) server.xml you're using with the "standalone" context.xml, along with the element. Remove all comments and obfuscate proprietary information first. - 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: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?
> From: Gregor Schneider > > I feel that ppl have a problem if they mistrust their developers in so > far that they have to lock their box even to their own developers > maintaing the apps. And I'm not talking about full access but I'm > talking about browsing the logs. > > Besides, when having a production-problem, one can react quickly if > the developer responsible for the app can read the logs. > > OTOH, some ppl might have no problems with outages and can wait for > the logs being mailed / ftp'ed / whatsoever by the usally always busy > server-admins...*sic* I'm living in such an environment. One of the reasons for this separation is fear of "quick fixes": production machines are not for testing patches - which otherwise you can bet it would happen if anything beyond log reading would be granted. But we have log reading allowed and everybody is happy - both paranoids and genies. JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?
Mladen, On Thu, Dec 2, 2010 at 12:37 PM, Mladen Turk wrote: > On 12/02/2010 12:05 PM, Gregor Schneider wrote: > > If your developers need to see the stdout of the Tomcat > on the production server then you have a serious problem. > The first one that I find (well funny) is that they can access > the box at the first place. > I disagree: Why should that be a problem? I feel that ppl have a problem if they mistrust their developers in so far that they have to lock their box even to their own developers maintaing the apps. And I'm not talking about full access but I'm talking about browsing the logs. Besides, when having a production-problem, one can react quickly if the developer responsible for the app can read the logs. OTOH, some ppl might have no problems with outages and can wait for the logs being mailed / ftp'ed / whatsoever by the usally always busy server-admins...*sic* Cheers Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
> From: Pid > If the request isn't being routed to your application, then without a > ROOT application the host hasn't got a mechanism to serve any response > other than an error. Error is fine, as long it's a 404 (and not this enigmatic 400)... Thank you, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
> From: Pid > This is either because your application is not deployed, or because the > request path you're using does not match the actual request path deployed. > > When you start Tomcat, is there a message in the logs saying: > > 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory com.mycompany.myapp > OR > 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory myapp > ? > What is the exact URL (you may omit the actual domain if you wish) that > you then request? Hmmm, it says "Deploying web application directory com.mycompany.myapp" which is somehow what I was expecting (it IS in that directory under wtpwebapps), then I'm calling it with http://localhost:8080/myapp (I need it that way) Now that you mention, I notice this difference: - when I put it in the server.xml and it gets deployed automatically, Tomcat creates under "work/Catalina/localhost" the directory myapp. All fine. - when I use the standalone context.xml it creates under "work/Catalina/localhost" a directory com.mycompany.myapp - which stays empty afterwards. I still don't know what and why it happens, but I feel it's getting closer to the root cause :) Thank you, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Admin page not installed
Thanks Mark I will look into jconsole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Admin page not installed
On 02/12/2010 11:39, terry.mcbr...@aero.bombardier.com wrote: > > Hello all > > I have downloaded and installed tomcat 6.0.29 on a windows server > I can access the Manager page, but there is no /admin page. > > /admin isnt listed under webapps > > How to I get access to the admin page?? You'd need to port the admin application from 5.5.x since it was removed from 6.0.x. I'd allow about a month of effort for that. Alternatively, just use JConsole. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat Admin page not installed
Hello all I have downloaded and installed tomcat 6.0.29 on a windows server I can access the Manager page, but there is no /admin page. /admin isnt listed under webapps How to I get access to the admin page?? Thanks so much - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?
On 12/02/2010 12:05 PM, Gregor Schneider wrote: Besides, all logs are owned by tomcat:tomcat (as it should be) - the only exception is catalina.out. I guess you agree that this is not what somebody would call "consistent" behaviour... The catalina.out is written by a parent process running under root user. If your developers need to see the stdout of the Tomcat on the production server then you have a serious problem. The first one that I find (well funny) is that they can access the box at the first place. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?
Chris, On Wed, Dec 1, 2010 at 10:10 PM, Christopher Schultz wrote: > > I agree with Mladen: MySQL doesn't actually need root privileges for > anything at all, so this is a good description of your desires, but not > a really great example. > Tomcat doesn't root-privileges either in our situation. We#re not even running on a privileged port (yet). However, where planning to kick out Apache soon and will be running our sites on Tomcat only - that's why we're already using jsvc (call it kond of a test). Still, our security-guidelines demand that Tomcat can only be started / stopped by either a user with root privileges or by a user having those privileges via the sudo-command. On the other hand, the devekopers responsible for their application have to be able to read the logs. Besides, all logs are owned by tomcat:tomcat (as it should be) - the only exception is catalina.out. I guess you agree that this is not what somebody would call "consistent" behaviour... > What does "directory is already umasked" mean? AFAIK, you can't umask a > directory. Do you mean you're using sticky bits? Sorry, my fault: Our general umask is set to 0022 - still, jsvc give root-owbership to catalina.out > Is it possible that if catalina.out already exists and is owned by, say, > "tomcat", that it's ownership will be retained when jsvc opens it for > append? If that's the case, you may have simply deleted the file during > your upgrade and had it re-created by jsvc (owned by root) after the fact. You picked the right thing here: When catalina.out is owned by tomcat:tomcat, jsvc opens that file for append and doesn't change the ownership. I wouldn't bet my bottom penny on the possibility that with the chowned catalina.out manually to tomcat:tomcat, but I'm quite sure that the ownership was not changed by us before. Unfortunately, I don't have the time to do a check on that one right now. > > Can you tell us what version of jsvc you were using in the past, and > what version you're using now? > Before, we've been using an acrhive called "jsvc.tar.gz", browsing the CHANGES.txt gives === [ snip ]= JAKARTA COMMONS DAEMON (UNIX) CHANGELOG: Last modified at [$Date: 2005-05-17 10:03:57 +0200 (Tue, 17 May 2005) $] Changes with 1.0.1 === [ snap ]= Now, we're using an archive called "commons-daemon-native.tar.gz". Browsing the file "RELEASE_NOTES.txt" gives === [ snip ]= $Id: RELEASE-NOTES.txt 915160 2010-02-23 03:32:02Z billbarker $ Commons Daemon Package Version 1.0.2 === [ snap ]= Since my workaround seems to be doing what we're expecting, I suggest we call this case closed. Thanks for your support! Cheers Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
On 12/2/10 9:01 AM, Justin Case wrote: >> From: "Caldarale, Charles R" > >> JSPs are only compiled upon first reference, not before. That results in a >> slight (usually very slight) pause for the first guy in, >> >> so if you want to pre-compile them, there is a script available to do so: >> http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Production%20Configuration >> n > > Interesting, thank you. I will look into this. > I would have still expected that in the automatic deployment with the single > context.xml, tomcat still does that. For the first user, with delay, no > problem. > But it threw an unlogged error 400 and didn't compile zit, thus my original > problem stays... This is either because your application is not deployed, or because the request path you're using does not match the actual request path deployed. When you start Tomcat, is there a message in the logs saying: 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory com.mycompany.myapp OR 02-Dec-2010 10:44:17 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory myapp ? What is the exact URL (you may omit the actual domain if you wish) that you then request? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: automatic deployment without server.xml - bad request
On 12/2/10 10:00 AM, Justin Case wrote: >> From: Konstantin Kolinko > >> >> Just curious: why wtpwebapps? Eclipse IDE uses that name. > > Precisely :) Only because Eclipse publishes it there, so the name was kept. > No > other reason. > >> Try with recent 6.0.x (build it yourself), or 6.0.30 (when it comes >> out), or 7.0.5 -- they will log such requests into AccessLog. >> Usually it means that this request was rejected by the connector, or >> by CoyoteAdapter. What is your client? > > Ummm, I wouldn't go into beta stuff... I have enough troubles as you can see > :) > and what do you mean by "client"? The browser? > >> Do you have a ROOT application deployed? You should have one. > > This is true, I don't have one. Might this be The/a problem? If the request isn't being routed to your application, then without a ROOT application the host hasn't got a mechanism to serve any response other than an error. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: automatic deployment without server.xml - bad request
> From: Konstantin Kolinko > > Just curious: why wtpwebapps? Eclipse IDE uses that name. Precisely :) Only because Eclipse publishes it there, so the name was kept. No other reason. > Try with recent 6.0.x (build it yourself), or 6.0.30 (when it comes > out), or 7.0.5 -- they will log such requests into AccessLog. > Usually it means that this request was rejected by the connector, or > by CoyoteAdapter. What is your client? Ummm, I wouldn't go into beta stuff... I have enough troubles as you can see :) and what do you mean by "client"? The browser? > Do you have a ROOT application deployed? You should have one. This is true, I don't have one. Might this be The/a problem? Thanks a lot, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
2010/12/1 Justin Case : > > deployOnStartup="false" > name="localhost" unpackWARs="true" xmlNamespaceAware="false" > xmlValidation="false"> > directory="logs" pattern="common" prefix="access_log." > resolveHosts="false" suffix=".txt" /> > reloadable="true" override="true"> > > auth="Container" > type="org.hibernate.SessionFactory" > > factory="com.mycompany.myapp.HibernateSessionFactoryTomcatFactory" > configuration="hibernate.cfg.xml" /> > > > > If I remove the context from server.xml and place a context.xml in my app's > META-INF, then enable the two deploy params, the deployment happens > succesfully > - that's what the console says at least. The application even starts ok, I can > see the logging of my classes. > BUT! > Each request to the application will throw immediately a HTTP error 400 - bad > request. Try with recent 6.0.x (build it yourself), or 6.0.30 (when it comes out), or 7.0.5 -- they will log such requests into AccessLog. Usually it means that this request was rejected by the connector, or by CoyoteAdapter. What is your client? Do you have a ROOT application deployed? You should have one. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: automatic deployment without server.xml - bad request
> From: "Caldarale, Charles R" > JSPs are only compiled upon first reference, not before. That results in a >slight (usually very slight) pause for the first guy in, > > so if you want to pre-compile them, there is a script available to do so: >http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Production%20Configuration >n Interesting, thank you. I will look into this. I would have still expected that in the automatic deployment with the single context.xml, tomcat still does that. For the first user, with delay, no problem. But it threw an unlogged error 400 and didn't compile zit, thus my original problem stays... Thanks a lot, JC - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Modifying logging levels logged in catalina.out at runtime
On 12/1/10 7:59 PM, Jason Pyeron wrote: > This may be slightly off-topic. > > I'll start off with I know how to do this from inside the webapp's code and > how > to do it by modifing properties files on the system at tomcat startup. But how > can it be done from outside the webapp with out restarting tomcat? Yes, it's possible via JMX. Connect JConsole, (or the more recent VisualVM with MBean plugin), to the running process and examine: java.util.logging:type=Logging There is an operation in which you can adjust the log level. This is available programmatically too. Have a good poke around in the MBeans while you're there. You may be surprised at what's else is available. p > We are using java.util.logging on tomcat 5.5.23 using jdk 1.6.0_17. > > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > - - > - Jason Pyeron PD Inc. http://www.pdinc.us - > - Principal Consultant 10 West 24th Street #100- > - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - > - - > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > This message is copyright PD Inc, subject to license 20080407P00. > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Can't access tomcat manager
On 12/1/10 10:05 PM, Lava Saleem wrote: > Hi, > I have installed apache tomcat 7.0.4 on a centos linux box, 7.0.5 has just been released. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature