mod_jk2 hangs?!
Hi, I use apache 2.0.46, mod_jk2, tomcat4.1.18 (the standard versions shipped with Suse 8.2). Sometimes the apache-tomcat connection seems to hang. After restarting apache (or I think waiting for a few minutes) everything works again. There are a lot of such messages in my apache errorlog: ... [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14357 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14358 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:27 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:28 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:29 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:30 2003] [notice] mod_jk2 Shutting down Whar means [error] mod_jk child init 1 -2 ? Please tell me if you need further information about my configuration. Thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connectors documents
Mark, Um, I think it's what you're trying to do. The server runs two virtual hosts: www.xxx.com and admin.xxx.com. Either can be accessed through the default page with just the domain name or by specifying the page (e.g. https://www.xxx.com/login.jsp). There's a certain amount of weirdness that I think may be a Sun Cobalt feature: httpd.conf contains perl script that rewrites an included file with SSL-related tags prior to including it. But basically there are virtual hosts specified in httpd.conf (via included files) which reference contexts that are defined in server.xml inside the container that specifies the warp connector. All a bit vague, as I don't have access to the server from here. Let me know if you need more detail and I'll mail you some files direct. Chris -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 01 October 2003 18:13 To: Tomcat Users List Subject: Re: connectors documents Chris But when you say its working, is it http://domain/webappname/action.do or what i'm trying to with http://domain/action.do unless its the root webapp i think its always going to need the nasty context path after the domain. Which could me being fussy but I think is a pretty poor show. The only way i can think of is to have a different server.xml for each webapp. But the administration will be again worse with a zillion files to edit.. But I'm sure somebody would have thought this through between mod_jserv and now jk2.. Or perhaps i'm just a hopeless optimist. Thanks for your reply Mark On Wednesday, October 1, 2003, at 04:32 PM, Walker Chris wrote: Yes, I'm using virtual hosts and so far it's running OK. I'll check on the sources I'm using. I suspect that my configuration has a major problem with unclaimed resources if you shut down and restart httpd and Tomcat (MySql is implicated, but I didn't restart that). After two disastrous days struggling to keep the site up I discovered that rebooting the server and leaving it alone works fine. Chris -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 01 October 2003 13:43 To: Tomcat Users List Subject: Re: connectors documents If you have mod_webapp running with virtual hosts then i'd be interested to know.. Webapp is an option, i'm using tc4.1.27 with apache2.0.47 I compiled from the accompanying connectors src. mod_jk/1.2.3-dev or mod_jk2/2.0.3-dev or mod_webapp/1.2.0-dev at this stage i really dont mind which i use. but I cant believe that this vhost issue is uncommon. Cheers Mark snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do i handle session-timeout in an acceptable manner?
The problem with your solution is, that the application does not know where to continue after the login page. This will result in an error. I have implemented this workaround: protected void doGet( HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { String reqURI = httpServletRequest.getRequestURI(); if ((reqURI.indexOf(/actions/) != -1)) { // Calling of 'actions' via get is not allowed String referer = httpServletRequest.getHeader(referer); if ((referer != null) (referer.endsWith(/loginpage.jsp))) { // if this happens, we probably had a Time-Out RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/timeout_info.jsp); dispatcher.forward(httpServletRequest, httpServletResponse); } else { throw new ServletException(Action forbidden.); } } else { // Call shared, standard request processing code. processRequest(httpServletRequest, httpServletResponse); } } What it does: if there is a get call to an URL that should be called as post, and the referer is the login page, then forward the request to some kind of informational message. Of course there can't be any guarantee this works with coming versions of Tomcat. So i would like to have an general solution. Hayo Schmidt - Shapira, Yoav wrote: Howdy, Here's an idea: add an HTML META refresh tag to each page whose redirect URL is the login page and whose timeout is the session timeout less a few seconds. That way the user will get redirected to the login page before the session timeout -- they won't be able to press the submit button. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hayo Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:16 AM To: Tomcat Users List Subject: How do i handle session-timeout in an acceptable manner? I have a built a web application on Tomcat 4.1.18. The application is running with a HTTPS connection. session-timeout is configured and works so far. But i am absolutely not satisfied with what happens when a timeout occurs. The web application is configured for form based authentication. When the connection has timed out, the user is presented the login page when he does his next action. And, all data saved with the session are lost. Fine - i could live with that. But what happens in a real case: - The user waits too long - timeout. - The user pushes an INPUT type=submit and creates a POST operation. - Tomcat redirects to the login page. - The user logs in. - Tomcat redirects to the original aim of the post operation, but he does it as a GET operation. Alternative 1: - My application does not allow get operations at this place == Application Error. Alternative 2: - The application allows the vulnerable get operation, but the button that was pushed is not passed anymore == Application Error. Now what can i do? I must interfere the session timeout to do an operation. Or i should be able to detemine that the current request is the first after a timeout. The way my application currently crashes is not acceptable. Hayo Schmidt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Major headache: why don't Apache en Tomcat communicate????????
Hi folks, Running apache server 2.0.42 with mod_jk 1.2.4 and tomcat 4.1.12 all on windows XP professional. Tomcat starts nicely and serves servlets fine via port 8080. Autoconfigured apache to run together with tomcat via mod_jk following the howto's by John Turner. Apache runs without any syntax errors and starts up ok. So everything seems to work fine except that those servlets won't be served via port 80 (static content, however, contained in the WEB-INF location of tomcat IS being served). The logs are not very informative; mod_jk.log is dead empty. However, I did manage to get some more info: Tomcat throws up the following message: SEVERE: BAD packet signature 256 01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 etc. ___ So there is communication but very poor. Second the apache erro log tells me: [error] [client 127.0.0.1] client denied by server configuration: C:/jakarta-tomcat-4.1.12/webapps/examples/WEB-INF/ So can anybody help me on this one? workers.properties file: # Definition for Ajp13 worker worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp12.type=ajp13 # End Thanks Arjen Dit bericht en eventuele aangehechte bestanden zijn vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Ongeautoriseerde verstrekking of bekendmaking aan en gebruik door anderen zijn niet toegestaan. Als u dit bericht per vergissing hebt ontvangen wordt u verzocht dit onmiddellijk aan de afzender te melden en het bericht van uw systemen te verwijderen. De werkgever van de afzender kan niet garanderen dat de verzonden en/of ontvangen informatie juist is en aanvaardt geen aansprakelijkheid voor schade die eruit kan voortvloeien. This message and any files transmitted with it may contain confidential information and is solely intended for the addressee(s). Any unauthorized disclosure or actions taken in reliance on it are forbidden. If you have received this message in error, please delete it and notify the sender. The employer of the sender does not guarantee that the information sent and/or received is correct and does not accept any liability for damages related thereto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
onjava example does not work on Tomcat 5.0
Hi What does following example need to work on tomcat 4.1x and 5.0.x. It works on 4.0.x but not successer. http://www.onjava.com/lpt/a/780 Thanks for any help gachsaran
onjava example does not work on Tomcat 5.0
Hi What does following example need to work on tomcat 4.1x and 5.0.x. It works on 4.0.x but not successer. http://www.onjava.com/lpt/a/780 Thanks for any help gachsaran
Re: onjava example does not work on Tomcat 5.0
Having had a very, very brief look at the article I would say that one problem would be the lack of mappings for the servlets. Since 4.1.12 the invoker servlet which handled default servlet mappings has been disabled. The reasons for this have been discussed ad nauseum on this list and are in the release notes. It's a shame that there are so many articles out there that assume the use of a Tomcat feature not in the Servlet spec :( gachsaran wrote: Hi What does following example need to work on tomcat 4.1x and 5.0.x. It works on 4.0.x but not successer. http://www.onjava.com/lpt/a/780 Thanks for any help gachsaran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Login problem
Hi! I got a little problem using form-based login that I hope to get some help with. The problem is the following: When using form-based authentication to get a nice looking login-page I am forced to use tomcats authentication-methods. This would be nice if I hadn't an apache infront of the tomcat since now apache doesn't know that the user has logged in or not and even worse letting request that isn't forwarded to tomcat (eg .jsp) through for resources that should be protected, resources that tomcat protectes if the request gets though tomcat. Is there a way to use form-based authestication and letting apache to know what resources that should be protected? Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoker servlet security
Hi all, I can think of a number of reasons why the invoker servlet is disabled with new Tomcat installations - security (as stated in the release notes) is not one of them. Could someone please point me to a thread where these implications have been discussed on this list. I've searched the archive, couldn't find one, though. Regards, Marcel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Invoker servlet security
FAQ http://jakarta.apache.org/tomcat/faq/misc.html#evil -Tim Marcel Stor wrote: Hi all, I can think of a number of reasons why the invoker servlet is disabled with new Tomcat installations - security (as stated in the release notes) is not one of them. Could someone please point me to a thread where these implications have been discussed on this list. I've searched the archive, couldn't find one, though. Regards, Marcel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: onjava example does not work on Tomcat 5.0
The article seems to declare the servlet but not map it. For example, this needs added to web.xml servlet-mapping servlet-namemyServletName/servlet-name url-pattern/myserlvetPattern/url-pattern /servlet-mapping -Tim Jon Wingfield wrote: Having had a very, very brief look at the article I would say that one problem would be the lack of mappings for the servlets. Since 4.1.12 the invoker servlet which handled default servlet mappings has been disabled. The reasons for this have been discussed ad nauseum on this list and are in the release notes. It's a shame that there are so many articles out there that assume the use of a Tomcat feature not in the Servlet spec :( gachsaran wrote: Hi What does following example need to work on tomcat 4.1x and 5.0.x. It works on 4.0.x but not successer. http://www.onjava.com/lpt/a/780 Thanks for any help gachsaran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 context configuration for multiuser enviroment
I have added Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase / That gives me mapping localhost:8080/~bob to /home/bob/public_html 1) now i have 300 users ( students) and i would like to specify CONTEXT reloadable value = TRUE is there any ways were i can write a general rule 2) it would be nice to put log file for each user in his public_html alexp cos our users /students are using Tomcat for not only depolyment but development as well Thanks a lot -- Sincerely Yours, Mr Oleksiy Podopryhora Information Officer Department of Computer Science King's College London, Strand, London, WC2R 2LS Mobile 07788 986 056 Tel +44 20 7848 2366 Fax +44 20 7848 2851 ICQ UIN #45961547 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i handle session-timeout in an acceptable manner?
The problem with your solution is, that the application does not know where to continue after the login page. This will result in an error. If you want your login page to redirect you back to the page that the user timed out on, then why don't you just add a hint to the login url so that after the user has logged in, then your application will know where to redirect them. I have implemented this workaround: protected void doGet( HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { String reqURI = httpServletRequest.getRequestURI(); if ((reqURI.indexOf(/actions/) != -1)) { // Calling of 'actions' via get is not allowed String referer = httpServletRequest.getHeader(referer); if ((referer != null) (referer.endsWith(/loginpage.jsp))) { // if this happens, we probably had a Time-Out RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/timeout_info.jsp); dispatcher.forward(httpServletRequest, httpServletResponse); } else { throw new ServletException(Action forbidden.); } } else { // Call shared, standard request processing code. processRequest(httpServletRequest, httpServletResponse); } } What it does: if there is a get call to an URL that should be called as post, and the referer is the login page, then forward the request to some kind of informational message. Of course there can't be any guarantee this works with coming versions of Tomcat. So i would like to have an general solution. Hayo Schmidt - Shapira, Yoav wrote: Howdy, Here's an idea: add an HTML META refresh tag to each page whose redirect URL is the login page and whose timeout is the session timeout less a few seconds. That way the user will get redirected to the login page before the session timeout -- they won't be able to press the submit button. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hayo Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:16 AM To: Tomcat Users List Subject: How do i handle session-timeout in an acceptable manner? I have a built a web application on Tomcat 4.1.18. The application is running with a HTTPS connection. session-timeout is configured and works so far. But i am absolutely not satisfied with what happens when a timeout occurs. The web application is configured for form based authentication. When the connection has timed out, the user is presented the login page when he does his next action. And, all data saved with the session are lost. Fine - i could live with that. But what happens in a real case: - The user waits too long - timeout. - The user pushes an INPUT type=submit and creates a POST operation. - Tomcat redirects to the login page. - The user logs in. - Tomcat redirects to the original aim of the post operation, but he does it as a GET operation. Alternative 1: - My application does not allow get operations at this place == Application Error. Alternative 2: - The application allows the vulnerable get operation, but the button that was pushed is not passed anymore == Application Error. Now what can i do? I must interfere the session timeout to do an operation. Or i should be able to detemine that the current request is the first after a timeout. The way my application currently crashes is not acceptable. Hayo Schmidt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSTL App Still Failing Under Tomcat 4.0.6
I'm still having that problem with a JSTL app failing under Tomcat 4.0.6. The error is No such tag redirect in the tag library imported with prefix c. The c.tld in the standard.jar calls for class org.apache.taglibs.standard.tag.el.core.RedirectTag to implement the tag. I can see that class, and its file path, in the standard.jar. I've got the standard.jar in the WEB-INF/lib of my WAR file, so I think it's in the CLASSPATH. I've deployed two other WARs that use JSTL (an echo application and an ad hoc SQL query page) under Tomcat 4.0.6, and they both deploy without a problem. ALL THREE JSTL apps deploy and run perfectly under Tomcat 4.1.27. I reinstalled Tomcat 4.0.6 and make sure that I didn't add a single JAR to the common/lib directory, except for JDK tools.jar. (Tomcat couldn't find it, for some reason.) What is so special about Tomcat 4.0.6 that I can't use JSTL in this one app? - MOD __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
One more piece of info regarding my problem: I deployed the apps in this order: echo, data-source, and big. The stderr.log was empty after I deployed echo and data-source. When I look in stderr.log after deploying big, I see a single line: No tags It's cryptic, and it obviously says something about the fact that Tomcat 4.0.6 isn't allowing me to use JSTL tags. But what does this mean? Has anyone seen this? Any guesses as to a root cause? - MOD __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
A Google search suggested that perhaps Tomcat 4.0.6 had an out-of-date servlet.jar, so I replaced it with the one from Tomcat 4.1.27. Still failed - No tags. MOD --- Michael Duffy [EMAIL PROTECTED] wrote: One more piece of info regarding my problem: I deployed the apps in this order: echo, data-source, and big. The stderr.log was empty after I deployed echo and data-source. When I look in stderr.log after deploying big, I see a single line: No tags It's cryptic, and it obviously says something about the fact that Tomcat 4.0.6 isn't allowing me to use JSTL tags. But what does this mean? Has anyone seen this? Any guesses as to a root cause? - MOD __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help explaining why lock box doesn't show up - PLEASE
Greetings, I'm running Apache with mod SSL on a linux box. I'm also running Tomcat and using the JkMount statements to send all of the jsp pages to Tomcat. The clients that I set this up for are complaining that the little lock box in the browser doesn't show up on the jsp pages - but isn't the connection still secure b/c it's going through apache? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 context configuration for multiuser enviroment
Oleksiy Podopryhora wrote: I have added Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase / That gives me mapping localhost:8080/~bob to /home/bob/public_html 1) now i have 300 users ( students) and i would like to specify CONTEXT reloadable value = TRUE is there any ways were i can write a general rule solution is DefaultContext reloadable=true /DefaultContext 2) it would be nice to put log file for each user in his public_html alexpcos our users /students are using Tomcat for not only depolyment but development as well Thanks a lot how to do 2 ? -- Sincerely Yours, Mr Oleksiy Podopryhora Information Officer Department of Computer Science King's College London, Strand, London, WC2R 2LS Mobile 07788 986 056 Tel +44 20 7848 2366 Fax +44 20 7848 2851 ICQ UIN #45961547 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i handle session-timeout in an acceptable manner?
Howdy, The problem with your solution is, that the application does not know where to continue after the login page. This will result in an error. If you want your login page to redirect you back to the page that the user timed out on, then why don't you just add a hint to the login url so that after the user has logged in, then your application will know where to redirect them. That's what I was thinking as well. Not to mention that the login page itself can look at the referrer header. I have implemented this workaround: As for this workaround, why wouldn't it work with future tomcat versions? There's nothing tomcat-specific in it, much less tomcat 4.1.x-specific. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Howdy, The google search result you read was wrong on that one, for sure ;) Tomcat 4.x has the same servlet jar: the one corresponding to the servlet specification v2.3. Don't feel free to swap jars between tomcat versions in general though ;) Nearly all the other jars that come with tomcat are different from version to version. Do you really have a file named stderr.log? Did you configure this yourself in server.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 9:21 AM To: Tomcat Users List Subject: Re: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 A Google search suggested that perhaps Tomcat 4.0.6 had an out-of-date servlet.jar, so I replaced it with the one from Tomcat 4.1.27. Still failed - No tags. MOD --- Michael Duffy [EMAIL PROTECTED] wrote: One more piece of info regarding my problem: I deployed the apps in this order: echo, data-source, and big. The stderr.log was empty after I deployed echo and data-source. When I look in stderr.log after deploying big, I see a single line: No tags It's cryptic, and it obviously says something about the fact that Tomcat 4.0.6 isn't allowing me to use JSTL tags. But what does this mean? Has anyone seen this? Any guesses as to a root cause? - MOD __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
You're right - it WAS a little dated (2001/2002 vintage). I'll put the original back. Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD @echo off rem Script for installing Tomcat 4.0.6 as a Windows service rem Michael O. Duffy Wed 23Jul2003 if %OS%==Windows_NT setlocal rem Change these for local environment set JAVA_HOME=C:\Tools\JDKs set CATALINA_HOME=C:\Tools\Tomcat\4.0.6-LE-jdk14 set TOMCAT_HOME=%CATALINA_HOME% set SERVICE_NAME=Apache-Tomcat-4.0.6 set BOOTSTRAP_SERVICE=org.apache.catalina.startup.BootstrapService set STDOUT=%TOMCAT_HOME%\logs\stdout.log set STDERR=%TOMCAT_HOME%\logs\stderr.log echo Service name: %SERVICE_NAME% echo Java HOME : %JAVA_HOME% echo Tomcat HOME : %TOMCAT_HOME% echo Bootstrap : %BOOTSTRAP_SERVICE% echo Output log : %STDOUT% echo Error log : %STDERR% tomcat.exe -install %SERVICE_NAME% %JAVA_HOME%\jre\bin\client\jvm.dll -server -Xms64m -Xmx256m -Djava.class.path=%TOMCAT_HOME%\bin\bootstrap.jar -Dcatalina.home=%TOMCAT_HOME% -Djava.endorsed.dirs=%TOMCAT_HOME%\common\endorsed -start %BOOTSTRAP_SERVICE% -params start -stop %BOOTSTRAP_SERVICE% -params stop -out %STDOUT% -err %STDERR% if %OS%==Windows_NT endlocal --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, The google search result you read was wrong on that one, for sure ;) Tomcat 4.x has the same servlet jar: the one corresponding to the servlet specification v2.3. Don't feel free to swap jars between tomcat versions in general though ;) Nearly all the other jars that come with tomcat are different from version to version. Do you really have a file named stderr.log? Did you configure this yourself in server.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 9:21 AM To: Tomcat Users List Subject: Re: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 A Google search suggested that perhaps Tomcat 4.0.6 had an out-of-date servlet.jar, so I replaced it with the one from Tomcat 4.1.27. Still failed - No tags. MOD --- Michael Duffy [EMAIL PROTECTED] wrote: One more piece of info regarding my problem: I deployed the apps in this order: echo, data-source, and big. The stderr.log was empty after I deployed echo and data-source. When I look in stderr.log after deploying big, I see a single line: No tags It's cryptic, and it obviously says something about the fact that Tomcat 4.0.6 isn't allowing me to use JSTL tags. But what does this mean? Has anyone seen this? Any guesses as to a root cause? - MOD __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrating Tomcat and Apache on RedHat 9.0
FYI, below is an article I wrote on integrating tomcat and apache on RedHat 9.0 that might be of interest. http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html It has a lot of general configuration info as well. It has been fairly well tested recently by a number of individuals who have provided feedback. It was published this month by Linux Gazette, but the link above has the latest and greatest w/ typos fixed and clarifications added. As much as I proofread the copy I sent to Linux Gazette, a few issues and typos were brought to my attention after I submitted it. http://linuxgazette.com/issue95/millson.html Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2 Tomcat4.1.27 name based virtual hosts
Hi Dave, I now have - as below in httpd.conf. The same prob exists. If capucino is 2nd all is ok if freshlyroast is 2nd it is not found. So The first VirtualHost section is used for requests without a known server name and so freshly is not a known server name??? Regards VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /coffeepp ServerName www.freshlyroastcoffee.biz ErrorLog logs/freshlyroastcoffee.error_log CustomLog logs/freshlyroastcoffee.biz-access_log combined JkMount /coffeepp ajp13 JkMount /coffeepp/*.jsp ajp13 JkMount /coffeepp/* ajp13 JkMount /coffeepp/servlet/JumpServlet ajp13 JkMount /coffeepp/servlet/AccAddrServlet ajp13 /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /coffeemy ServerName www.capucino.co.uk ErrorLog logs/capucino.error_log CustomLog logs/capucino.co.uk-access_log combined JkMount /coffeemy ajp13 JkMount /coffeemy/* ajp13 JkMount /coffeemy/*.jsp ajp13 JkMount /coffeemy/servlet/JumpServlet ajp13 JkMount /coffeemy/servlet/AccAddrServlet ajp13 /VirtualHost - Original Message - From: David Rees [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Very good. I'll do that right away and get back to you. Thank you - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Users on Apache/Tomcat on https
Hello Everyone! I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. Best Regards, Alex K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Users on Apache/Tomcat on https
Alex Korneyev wrote: Hello Everyone! I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase / if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. Best Regards, Alex K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely Yours, Mr Oleksiy Podopryhora Information Officer Department of Computer Science King's College London, Strand, London, WC2R 2LS Mobile 07788 986 056 Tel +44 20 7848 2366 Fax +44 20 7848 2851 ICQ UIN #45961547 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: make rule for tomcat
I cannot get it work. Is your working? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 12:08 PM To: Tomcat Users List Subject: RE: make rule for tomcat Howdy, Add a personal contact named Tomcat User List with [EMAIL PROTECTED] as the email address. Make a rule in Outlook that says mail sent to this contact is put in the Tomcat User List folder. Yoav Shapira Millennium ChemInformatics -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:02 PM To: [EMAIL PROTECTED] Apache. Org Subject: make rule for tomcat Hi, I probably should ask this question here but outlook but I think someone will know this. All my tomcat email goes into my MS Outlook inbox folder that I have a problem to make a rule to move to another folder because all the mail from is each user and to is [EMAIL PROTECTED] I also try subject or body for tomcat...but no luck. Cody Wang -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Chris, Thank you for pointing that out. (I'd forgotten about it.) I see that I'm set up to log in as the System account, but the checkbox that says Allow service to interact with local desktop was unchecked. H - could that have kept Tomcat from looking inside those JARs? I have two other JSTL apps that deployed and ran fine under that arrangement, but I'll try it with this one and see if that explains it. When I deploy on a test/prod server, should I ask the admin to set up the Tomcat service to log in as System with desktop access? Or is it better to set up a separate account? Please advise. Thanks - MOD Thanks for contributing to --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re[2]: Virtual Users on Apache/Tomcat on https
Hello Oleksiy, I am not sure how this is going to help me. This is a Tomcat side configuration. thanks Thursday, October 2, 2003, 10:18:48 AM, you wrote: OP Alex Korneyev wrote: Hello Everyone! I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? OP Listener className=org.apache.catalina.startup.UserConfig OP directoryName=public_html OP userClass=org.apache.catalina.startup.PasswdUserDatabase / if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. Best Regards, Alex K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Alexmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
I'd rather leave that one for somebody who has experience with Tomcat on a Win32 production server... Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:21 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Thank you for pointing that out. (I'd forgotten about it.) I see that I'm set up to log in as the System account, but the checkbox that says Allow service to interact with local desktop was unchecked. H - could that have kept Tomcat from looking inside those JARs? I have two other JSTL apps that deployed and ran fine under that arrangement, but I'll try it with this one and see if that explains it. When I deploy on a test/prod server, should I ask the admin to set up the Tomcat service to log in as System with desktop access? Or is it better to set up a separate account? Please advise. Thanks - MOD Thanks for contributing to --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Very good. Thanks for bringing up the question, Chris. It might even be something to ask my Windows admin. Perhaps they'll have a strong opinion about that. - MOD --- Walker Chris [EMAIL PROTECTED] wrote: I'd rather leave that one for somebody who has experience with Tomcat on a Win32 production server... Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:21 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Thank you for pointing that out. (I'd forgotten about it.) I see that I'm set up to log in as the System account, but the checkbox that says Allow service to interact with local desktop was unchecked. H - could that have kept Tomcat from looking inside those JARs? I have two other JSTL apps that deployed and ran fine under that arrangement, but I'll try it with this one and see if that explains it. When I deploy on a test/prod server, should I ask the admin to set up the Tomcat service to log in as System with desktop access? Or is it better to set up a separate account? Please advise. Thanks - MOD Thanks for contributing to --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo!
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Chris, I just tried my app after setting up the Windows service to login under the system account and checking the box to allow interaction with the local desktop. The echo and data source apps still succeeded, and the big app failed for the same reason: No tags in stderr.log. That's not it. Anybody else seen such behavior running Tomcat 4.0.6 as a Windows service? - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product
Re: Apache 2 Tomcat4.1.27 name based virtual hosts
On Thu, October 2, 2003 at 7:12 am, John Bell sent the following I now have - as below in httpd.conf. The same prob exists. If capucino is 2nd all is ok if freshlyroast is 2nd it is not found. So The first VirtualHost section is used for requests without a known server name and so freshly is not a known server name??? I'm sorry, I don't understand the problem you're having. Could you clarify? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: make rule for tomcat
Cody, Make sure you have a folder named 'Tomcat User List' otherwise it will not work. I'm assuming Yoav is referring to Microsoft Outlook and you're also using this e-mail client. -JM -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:21 To: 'Tomcat Users List' Subject: RE: make rule for tomcat I cannot get it work. Is your working? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 12:08 PM To: Tomcat Users List Subject: RE: make rule for tomcat Howdy, Add a personal contact named Tomcat User List with [EMAIL PROTECTED] as the email address. Make a rule in Outlook that says mail sent to this contact is put in the Tomcat User List folder. Yoav Shapira Millennium ChemInformatics -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:02 PM To: [EMAIL PROTECTED] Apache. Org Subject: make rule for tomcat Hi, I probably should ask this question here but outlook but I think someone will know this. All my tomcat email goes into my MS Outlook inbox folder that I have a problem to make a rule to move to another folder because all the mail from is each user and to is [EMAIL PROTECTED] I also try subject or body for tomcat...but no luck. Cody Wang -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI resources in web.xml
josh... I am not sure about specifying in web.xml...but you can specify it per application. This can be done by specifying the JNDI entries between the context tag for the application. sanjay. --- Josh G [EMAIL PROTECTED] wrote: How can I specify jndi resources in web.xml for an application rather than server.xml for all applications. Is it even possible? Cheers, -Josh -- [ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help explaining why lock box doesn't show up - PLEASE
On Thu, October 2, 2003 at 6:25 am, [EMAIL PROTECTED] sent the following Greetings, I'm running Apache with mod SSL on a linux box. I'm also running Tomcat and using the JkMount statements to send all of the jsp pages to Tomcat. The clients that I set this up for are complaining that the little lock box in the browser doesn't show up on the jsp pages - but isn't the connection still secure b/c it's going through apache? It should be unless for some reason the users are being redirected to another port. You should be able to detect this by looking through your server logs. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Users on Apache/Tomcat on https
On Thu, October 2, 2003 at 7:53 am, Alex Korneyev sent the following I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. You need the right JkMount statement in Apache. Something like: Directory /home/*/public_html JkMount /*.jsp ajp13 /Directory I hope you get the idea. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No mention of 4.1.27 hotfix on website
I just embarrassed myself on struts-dev complaining that the struts-blank webapp wouldn't reload, when the problem was that I hadn't applied the hotfix for Tomcat 4.1.27. I went to http://jakarta.apache.org/tomcat and clicked the 'Binaries' link in the left-hand menu. That got me to: http://jakarta.apache.org/site/binindex.cgi. From there, I chose to download the tomcat-4.1.27.zip file. There is no mention of the hotfix on either one of those two pages. I never got to this directory: http://www.apache.org/dist/jakarta/tomcat-4/binaries/ which I found with Google after being made aware there was a hotfix that I needed to apply. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using mod_jk with Apache Virtual Hosts
Hi, Looking for some help with the following please I have Apache HTTP Server set up to server three virtual hosts. Two of these I want to be serving Tomcat based content, the third serves purely static content. I have this working of a fashion, as I have Jkmount directives inside the two virtualhost sections of httpd.conf that map to the virtualhosts that will server tomcat based content. The relevant section of httpd.conf looks like this VirtualHost * ServerName VH1 DocumentRoot htdocs /VirtualHost VirtualHost * ServerName VH2 DocumentRoot htdocs/VH2 JkMount /* ajp13 /VirtualHost VirtualHost * ServerName VH3 DocumentRoot htdocs/VH3 JkMount /* ajp13 /VirtualHost So what I now have is three working virtual hosts, with both VH2 and VH3 redirected to tomcat. What I actually need is for VH2 to redirect to a webapp named VH2 running inside tomcat, and likewise for VH3 to redirect to a webapp named VH3. At the moment I need to put VH2/VH2 and VH3/VH3 into my browser for this to work. Both webapps are running in the same instance of Tomcat. Hope I've explained this in an understandable manner, some help would be appreciated. many thanks Dave
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Howdy, This is where I stop, not having much experience in setting up tomcat as a windows service. Glad I could help so far though ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 10:34 AM To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: make rule for tomcat
Howdy, I wouldn't suggest something that didn't work for me ;) Yes, it works, and Mr. Medeiros' suggestion is of course true. Yoav Shapira Millennium ChemInformatics -Original Message- From: Joao Medeiros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:43 AM To: 'Tomcat Users List' Subject: RE: make rule for tomcat Cody, Make sure you have a folder named 'Tomcat User List' otherwise it will not work. I'm assuming Yoav is referring to Microsoft Outlook and you're also using this e-mail client. -JM -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:21 To: 'Tomcat Users List' Subject: RE: make rule for tomcat I cannot get it work. Is your working? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 12:08 PM To: Tomcat Users List Subject: RE: make rule for tomcat Howdy, Add a personal contact named Tomcat User List with [EMAIL PROTECTED] as the email address. Make a rule in Outlook that says mail sent to this contact is put in the Tomcat User List folder. Yoav Shapira Millennium ChemInformatics -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:02 PM To: [EMAIL PROTECTED] Apache. Org Subject: make rule for tomcat Hi, I probably should ask this question here but outlook but I think someone will know this. All my tomcat email goes into my MS Outlook inbox folder that I have a problem to make a rule to move to another folder because all the mail from is each user and to is [EMAIL PROTECTED] I also try subject or body for tomcat...but no luck. Cody Wang -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** -- *** Incoming / Outgoing Mail scanned for known Viruses by CLUnet *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.catalina.startup.Bootstrap
Hello, I get a pop up icon for org.apache.catalina.startup.Bootstrap on my doc on MAC OS X when I click on the link in my web app which generates and sends a pdf file to the client browser. Once this popup is there the application works as expected, but if I quit this popup, tomcat shuts off automatically. Catalina.out doesn't show any log information for this action. If I run the same web app on Windows XP I do not get any pop ups. Here is the configuration of both platforms that I tested on, Platform: Mac OS X (10.2.6), Tomcat 4.1.18, jdk 1.4.1 Platform: Windows XP, Tomcat 4.1.18, jdk 1.4.1 From my search on the web, for this strange pop up behaviour, I learnt that org.apache.catalina.startup.Bootstrap is used to load the jar files at the application level. Here is the list of jar files that I use and are in WEB-INF/lib forlder of my application: 1. avalon-framework.jar 2. Batik.jar 3. fop.jar 4. xalan.jar 5. mysql-connector.jar (The first 4 are used in the pdf generation and the 5th jar is the mysql jdbc driver) I don't want this popup icon to appear in my doc of MAC OS X. Can anybody suggest as to what could be the reason for this pop up and what could be done so that it would not show up? Thanks, Mufaddal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI resources in web.xml
Howdy, You specify resource or env entry references in web.xml, whose runtime values are defined in server.xml Resource and Environment tags. See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm l Yoav Shapira Millennium ChemInformatics -Original Message- From: Sanjay Manchiganti [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:44 AM To: Tomcat Users List Subject: Re: JNDI resources in web.xml josh... I am not sure about specifying in web.xml...but you can specify it per application. This can be done by specifying the JNDI entries between the context tag for the application. sanjay. --- Josh G [EMAIL PROTECTED] wrote: How can I specify jndi resources in web.xml for an application rather than server.xml for all applications. Is it even possible? Cheers, -Josh -- [ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Anyone? :( Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Thursday, October 02, 2003 9:06 AM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Thanks again for taking the time, Yoav. Your suggestion was invaluable and right on the money, as usual. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, This is where I stop, not having much experience in setting up tomcat as a windows service. Glad I could help so far though ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 10:34 AM To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No mention of 4.1.27 hotfix on website
Howdy, I just embarrassed myself on struts-dev complaining that the struts-blank webapp wouldn't reload, when the problem was that I hadn't applied the hotfix for Tomcat 4.1.27. May that be the worst embarrassing moment for you ;) I've embarrassed myself much worse on this and other lists ;) I went to http://jakarta.apache.org/tomcat and clicked the 'Binaries' link in the left-hand menu. That got me to: http://jakarta.apache.org/site/binindex.cgi. From there, I chose to download the tomcat-4.1.27.zip file. There is no mention of the hotfix on either one of those two pages. You're right, and that's suboptimal. Keep in mind things have been shuffled around recently regarding downloads, mirrors, binary and source download locations, etc. They're still settling into place. I never got to this directory: http://www.apache.org/dist/jakarta/tomcat-4/binaries/ which I found with Google after being made aware there was a hotfix that I needed to apply. You can also get there via: http://jakarta.apache.org Click on Download-Binaries on the left hand menu (takes you to http://jakarta.apache.org/site/binindex.cgi) Click on Tomcat 4.1.27 (not the zip or tar, the Tomcat 4.1.27 labeled link itself) Click on binaries As I said, suboptimal. Hopefully 4.1.28 will be out soon and declared stable (it has this hotfix applied). Yoav Shapira -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Question: Tomcat 3.2.3 + JDK1.3.1_09 + Win2K
I finally got Tomcat working last night. Nothing odd in that, you'd think, but the problems I have been having is quite frustrating. The reason was I would get a 'Unable to find Program ' message when trying to start the Tomcat server. However, at various stages of installation things would seemingly work fine. So I sat down with a clean system. I had removed all traces of JDK and Tomcat (not that there was any) from my registry and installed them both to their default locations, C:\jakarta-tomcat-3.2.3 and C:\jdk1.3.1_09. I then Modified the scripts and stuff to point to these locations (as mentioned in this tutorial: ) and it worked fine: I compiled a couple of scripts and ran them. I then rebooted and tried again. Still worked. Then I moved Tomcat to C:\Program Files\Apache Group\jakarta-tomcat-3.2.3 and modified the scripts accordingly. That worked (I could view the sample pages and compile my own), so I rebooted and tried again. That worked too. I then uninstalled the JDK, rebooted and installed the JDK to C:\Program Files\jdk1.3.1_09, modified the scripts and hey presto! It wouldn't work. I double checked the scripts. I rebooted, and it still didn't work. Uninstalled and reinstalled JDK to root, changed the scripts and then it worked. Conclusion: I think that Tomcat 3.2.3 has a flaw that can't work with the JDK having spaces in its JAVA_HOME path, but it can have spaces in the TOMCAT_HOME path. The reason I am not using a version higher than 3.2.3 is that I have seen enough to know that the layout of the file system can change drastically between versions in the same release and I'd rather work with an identical system to my Service Provider. And the reason I want the JDK in Program Files is that I like to have a clean PC with an elegant filing system. Having something break that system is irritating. So my question is: Is it possible to run Tomcat 3.2.3 with the JDK installed to some where other than Root which has spaces in the directory path (i.e: 'Program Files') ? -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Howdy, There's the same ease IMHO. If you have to pick, restart tomcat I suppose, as it's better to test from a clean start of the server than a reload, especially if you have reloading problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:05 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Anyone? :( Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Thursday, October 02, 2003 9:06 AM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: No mention of 4.1.27 hotfix on website
Thanks for sending this, Wendy. I didn't get the hotfix, either. Thanks to you I've got it now. - MOD --- Wendy Smoak [EMAIL PROTECTED] wrote: I just embarrassed myself on struts-dev complaining that the struts-blank webapp wouldn't reload, when the problem was that I hadn't applied the hotfix for Tomcat 4.1.27. I went to http://jakarta.apache.org/tomcat and clicked the 'Binaries' link in the left-hand menu. That got me to: http://jakarta.apache.org/site/binindex.cgi. From there, I chose to download the tomcat-4.1.27.zip file. There is no mention of the hotfix on either one of those two pages. I never got to this directory: http://www.apache.org/dist/jakarta/tomcat-4/binaries/ which I found with Google after being made aware there was a hotfix that I needed to apply. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Including a JSP into another.
Hello, This does not work for me at all: jsp:include page=mypage.jsp flush=true / But when I do a simple substitution for: %@ include file=mypage.jsp% It works fine. I want to use the first one though as I want to add parameters to the call. What is the difference? How does one not work? Any help appreciated. Andoni.
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
What account was it running under before? Can you set it to start under your account? It would be worth making sure that everything the app needs, especially the taglibs, is accessible to all users. Failing that, I suppose you could search the source for the message No tags. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:42 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, I just tried my app after setting up the Windows service to login under the system account and checking the box to allow interaction with the local desktop. The echo and data source apps still succeeded, and the big app failed for the same reason: No tags in stderr.log. That's not it. Anybody else seen such behavior running Tomcat 4.0.6 as a Windows service? - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product
RE: Classes not recompiling - Have to restart Tomcat
Ok, thanks. Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:08 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Howdy, There's the same ease IMHO. If you have to pick, restart tomcat I suppose, as it's better to test from a clean start of the server than a reload, especially if you have reloading problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:05 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Anyone? :( Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Thursday, October 02, 2003 9:06 AM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Chris, It's always been under the local system account. I'll change it to mine and see if that helps. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: What account was it running under before? Can you set it to start under your account? It would be worth making sure that everything the app needs, especially the taglibs, is accessible to all users. Failing that, I suppose you could search the source for the message No tags. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:42 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, I just tried my app after setting up the Windows service to login under the system account and checking the box to allow interaction with the local desktop. The echo and data source apps still succeeded, and the big app failed for the same reason: No tags in stderr.log. That's not it. Anybody else seen such behavior running Tomcat 4.0.6 as a Windows service? - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To
RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
I have found this to occur if JDK is not installed correctly. Try going to C:\Program Files\Java\j2re1.4.2_01\bin\client and see if there is a jvm.dll file there. If there is not then uninstall the JDK, delete the Java folder and reinstall. If the jvm.dll is there then uninstall the JDK and remove the Java folder and reinstall. Sometimes the dll's do not get registered correctly. Also in your Environment Variables make sure your path has this included: C:\j2sdk1.4.2_01\bin, well before any Tomcat path statements. Also make sure that the JAVA_HOME, TOMCAT_HOME and CATALINA_HOME are all under the system variables and not the user variables. Keep in mind that your vesion of JDK will determine the correct syntax. Dean -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Thu 10/2/2003 12:06 AM To: Tomcat Users List Cc: Subject:RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start Am having the same problem myself on a WinXP Home box installing 4.1.27 . I can start tomcat manually or from Start menu, but I get this in the event log when I start it as a service: The LoadLibrary function failed for the following reason: The specified module could not be found. Could not load the Java Virtual Machine. I don't know why this is happening. JAVA_HOME and CATALINA_HOME are set correctly. I'm using the service as configured by the installer. Just to be sure, I did chmod 777 on the j2sdk and jre java trees. I'm stumped. My only guess is that there must be something funky with the local system account that runs services, but I can't see what. -- Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need help explaining why lock box doesn't show up - PLEASE
Hi Dave, When it's in Apache it's going through port 80 and when it's in Tomcat it's going through the default 8080 port. -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:45 AM To: Tomcat Users List Subject: Re: I need help explaining why lock box doesn't show up - PLEASE On Thu, October 2, 2003 at 6:25 am, [EMAIL PROTECTED] sent the following Greetings, I'm running Apache with mod SSL on a linux box. I'm also running Tomcat and using the JkMount statements to send all of the jsp pages to Tomcat. The clients that I set this up for are complaining that the little lock box in the browser doesn't show up on the jsp pages - but isn't the connection still secure b/c it's going through apache? It should be unless for some reason the users are being redirected to another port. You should be able to detect this by looking through your server logs. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including a JSP into another.
It should work. Is it a compile or run time error? -Tim Andoni wrote: Hello, This does not work for me at all: jsp:include page=mypage.jsp flush=true / But when I do a simple substitution for: %@ include file=mypage.jsp% It works fine. I want to use the first one though as I want to add parameters to the call. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 hangs?!
You're missing the jk2.shm file. This file should be created using notepad or vi (depending on your OS)and placed in a folder. That folder can be determined by looking into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both files point to the same place. Dean -Original Message- From: Christian Traber [mailto:[EMAIL PROTECTED] Sent: Thu 10/2/2003 3:43 AM To: Tomcat Users List Cc: Subject:mod_jk2 hangs?! Hi, I use apache 2.0.46, mod_jk2, tomcat4.1.18 (the standard versions shipped with Suse 8.2). Sometimes the apache-tomcat connection seems to hang. After restarting apache (or I think waiting for a few minutes) everything works again. There are a lot of such messages in my apache errorlog: ... [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14357 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14358 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:27 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:28 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:29 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:30 2003] [notice] mod_jk2 Shutting down Whar means [error] mod_jk child init 1 -2 ? Please tell me if you need further information about my configuration. Thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl on more than one port on w2000 sp2?
Hi, Can i start more than one apache tomcat servers to listen on ssl connections on more than one port? I have a machine windows 2000 with sp2 that has 2 apache tomcat servers running. One server has the ssl port running fine, but i cannot use the ssl port on the other Thanks and Regards, Mandar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat sucks at receiving large messages
Since I will be occasionally receiving messages in the 10Mbyte range, I can't read in a line at a time - it takes too long. The bug in the code below is because BufferedReader.read() will not necessarily return the whole buffer. So I replace the line reader.read(charArr); With this: int length = req.getContentLength(); char [] charArr = new char[length]; int readResult = 0; int sum = 0; do { sum += readResult; length -= readResult; readResult = reader.read(charArr, sum, length); } while (readResult length); Thanks for your help. Any other critiques on the use of the standard library are welcome. Dan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:30 AM To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Howdy, public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new String(charArr); try { File f = new File(servlet.out); PrintWriter out = new PrintWriter(new FileWriter(f)); out.print(str); out.flush(); out.close(); } catch(IOException err { System.err.println(err.toString()); } } catch(IOException err) { System.err.println(err.toString()); } } What happens if you ditch the req.getContentLength() approach (there are times when it will be -1 anyways), and do something like: BufferedReader reader = req.getReader(); StringBuffer contents = new StringBuffer(); String line = null; while((line = reader.readLine()) != null) { contents.append(line); } System.out.println(contents); (Later we'll worry about the writing -- first make sure you're reading the entire contents). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat sucks at receiving large messages
This code will be running in a controlled environment, with known clients, where the largest message size is known (~10M). This code takes the entire body and forwards it on to another messaging system, so I have no choice but to deal with the entire message. And I can't read it a byte or line at a time, because it would take too long. Take a look at my other response to this subject to see the code that fixed my problem. I am open to any other suggestions Dan -Original Message- From: Walker Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 1:21 AM To: 'Tomcat Users List' Subject: RE: Tomcat sucks at receiving large messages Hi, I should have thought that as a general principle it's not a good idea to try to store the response in a byte array. I recently worked on a piece of code that did just that (worse, actually, it then copied the array into a String). Sooner or later a really big upload will blow up the application. Reading and writing a byte at a time (with appropriate buffering) requires a bit more ingenuity, especially when you're searching for things like boundary strings in the response, but it's the only way to remove any constraint on upload size. Chris Walker -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 30 September 2003 19:30 To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Howdy, public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new String(charArr); try { File f = new File(servlet.out); PrintWriter out = new PrintWriter(new FileWriter(f)); out.print(str); out.flush(); out.close(); } catch(IOException err { System.err.println(err.toString()); } } catch(IOException err) { System.err.println(err.toString()); } } What happens if you ditch the req.getContentLength() approach (there are times when it will be -1 anyways), and do something like: BufferedReader reader = req.getReader(); StringBuffer contents = new StringBuffer(); String line = null; while((line = reader.readLine()) != null) { contents.append(line); } System.out.println(contents); (Later we'll worry about the writing -- first make sure you're reading the entire contents). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat hanging!! About to change container!! Please help!!
We have 10 days until we go GA. We are experiencing periodic and regular lockups of Tomcat. We are testing on a machine that is fairly loaded with background work (about 50% cpu). Our web app is accessed by very few users so Tomcat per se, is not under load handling requests. After say 10-12 hours of browser inactivity, when attempting to login we get the BASIC Auth prompt, we enter our credentials and then tomcat hangs while loading our index.jsp. The request never completes. I've attached our configuration. Please let me know if there is anything that looks wrong. We,re using: Tomcat 4.1.27 Java 1.4.2 Redhat 9.0 Also, what kind of settings can I apply to help debug the problem effectively. BTW, I've seen similar complaints on this mailing list but no suggestions :-). Please help! Regards. !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Mail Client -- Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5
RE: Tomcat sucks at receiving large messages
Howdy, Seems like a very decent fix. Thanks for posting it so others can have a future reference solution ;) I wonder if there's a java.nio solution that will perform better... Yoav Shapira Millennium ChemInformatics -Original Message- From: Stewart, Daniel J [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:34 PM To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Since I will be occasionally receiving messages in the 10Mbyte range, I can't read in a line at a time - it takes too long. The bug in the code below is because BufferedReader.read() will not necessarily return the whole buffer. So I replace the line reader.read(charArr); With this: int length = req.getContentLength(); char [] charArr = new char[length]; int readResult = 0; int sum = 0; do { sum += readResult; length -= readResult; readResult = reader.read(charArr, sum, length); } while (readResult length); Thanks for your help. Any other critiques on the use of the standard library are welcome. Dan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:30 AM To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Howdy, public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new String(charArr); try { File f = new File(servlet.out); PrintWriter out = new PrintWriter(new FileWriter(f)); out.print(str); out.flush(); out.close(); } catch(IOException err { System.err.println(err.toString()); } } catch(IOException err) { System.err.println(err.toString()); } } What happens if you ditch the req.getContentLength() approach (there are times when it will be -1 anyways), and do something like: BufferedReader reader = req.getReader(); StringBuffer contents = new StringBuffer(); String line = null; while((line = reader.readLine()) != null) { contents.append(line); } System.out.println(contents); (Later we'll worry about the writing -- first make sure you're reading the entire contents). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including a JSP into another.
Apologies, I wasn't looking at the log file. though it seemed to be working and just not getting this far, when you look at the log file it has a whole host (100 to be precise) of errors and says too many errors, limit is 100. So the file was including properly just not displaying at all. Sorry for wasting your time and thanks for your efforts. Regards, Andoni. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 5:32 PM Subject: Re: Including a JSP into another. It should work. Is it a compile or run time error? -Tim Andoni wrote: Hello, This does not work for me at all: jsp:include page=mypage.jsp flush=true / But when I do a simple substitution for: %@ include file=mypage.jsp% It works fine. I want to use the first one though as I want to add parameters to the call. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat hanging!! About to change container!! Please help!!
Howdy, say 10-12 hours of browser inactivity, when attempting to login we get the BASIC Auth prompt, we enter our credentials and then tomcat hangs while loading our index.jsp. The request never completes. I've attached our configuration. Please let me know if there is anything that looks wrong. We,re using: Tomcat 4.1.27 Java 1.4.2 Redhat 9.0 Also, what kind of settings can I apply to help debug the problem effectively. Add debug=99 to your JDBC Realm, as well as your Host and Context definition server.xml. Make sure you DB is up and available, and that your connections are not stale. If you're using connection pooling, add validation queries so that the pool can check and recycle connections as needed. Does the lockup happen if you use a simple user authentication with tomcat-users.xml as opposed to your more complex JDBC realm? That's worth trying in order to isolate the problem. Does this behavior happen on other machines, e.g. the dev machines, or only this heavily loaded production one? BTW a constant 50% CPU load is heavy -- what's it doing out of curiosity? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hanging!! About to change container!! Please help!!
Since I see SSL stuff .. you may want to look at building from HEAD until 4.1.28 comes out. I think there were some connector fixes as well as ssl fixes. I don't know if the fixes were performance related. -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Virtual Users on Apache/Tomcat on https
Hello David, Thursday, October 2, 2003, 10:52:17 AM, you wrote: DR On Thu, October 2, 2003 at 7:53 am, Alex Korneyev sent the following I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. DR You need the right JkMount statement in Apache. Something like: DR Directory /home/*/public_html DR JkMount /*.jsp ajp13 DR /Directory DR I hope you get the idea. DR -Dave DR - DR To unsubscribe, e-mail: [EMAIL PROTECTED] DR For additional commands, e-mail: [EMAIL PROTECTED] hello Dave, actually i am not sure what you mean. what would that do ? if i have a user userName123 then i need to access https via https://servername.com/~userName123/test.jsp -- Best regards, Alexmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat sucks at receiving large messages
Unless your client is very conforming to the rules (ie. Content-Length is is correct wrt to available bytes) you could be waiting for a while for the stream of data to come across or until your socket read statement timeout int length = req.getContentLength(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); int count = 0 int total = 0; byte[] buf = new byte[8192]; // not sure which OS u have but if u are on Windows, // use 8192 for the default OS block size InputStream is = req.getInputStream(); while ( (count = is.read(buf) ) != -1) { total += count; baos.write(buf,0,count); } if (total != length) { // handle this case as u see fit. } last note: bytearray is prob. better than reader/char array unless you don't intend to handle non-character data. int length = req.getContentLength(); char [] charArr = new char[length]; int readResult = 0; int sum = 0; do { sum += readResult; length -= readResult; readResult = reader.read(charArr, sum, length); } while (readResult length); Howdy, Seems like a very decent fix. Thanks for posting it so others can have a future reference solution ;) I wonder if there's a java.nio solution that will perform better... Yoav Shapira Millennium ChemInformatics -Original Message- From: Stewart, Daniel J [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:34 PM To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Since I will be occasionally receiving messages in the 10Mbyte range, I can't read in a line at a time - it takes too long. The bug in the code below is because BufferedReader.read() will not necessarily return the whole buffer. So I replace the line reader.read(charArr); With this: int length = req.getContentLength(); char [] charArr = new char[length]; int readResult = 0; int sum = 0; do { sum += readResult; length -= readResult; readResult = reader.read(charArr, sum, length); } while (readResult length); Thanks for your help. Any other critiques on the use of the standard library are welcome. Dan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:30 AM To: Tomcat Users List Subject: RE: Tomcat sucks at receiving large messages Howdy, public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new String(charArr); try { File f = new File(servlet.out); PrintWriter out = new PrintWriter(new FileWriter(f)); out.print(str); out.flush(); out.close(); } catch(IOException err { System.err.println(err.toString()); } } catch(IOException err) { System.err.println(err.toString()); } } What happens if you ditch the req.getContentLength() approach (there are times when it will be -1 anyways), and do something like: BufferedReader reader = req.getReader(); StringBuffer contents = new StringBuffer(); String line = null; while((line = reader.readLine()) != null) { contents.append(line); } System.out.println(contents); (Later we'll worry about the writing -- first make sure you're reading the entire contents). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
JK2 log location, anyone?
sorry to repost so quickly, but this seems like it should be a really simple answer: Where is the JK2 log file placed by default, and how do you specify where it should go on Windows using IIS? I've tried various registry keys per the documentation with no luck (see below). Keep in mind that I've gotten the IIS-Tomcat redirect working, I just want to know where the log info goes. thanks, Joe -Original Message- From: Joe Barefoot Sent: Wednesday, October 01, 2003 4:46 PM To: Tomcat Users List Subject: where the heck is JK2 log? Hi all, I've gotten the IIS-Tomcat redirect working with JK2 just fine. However, we're encountering a problem now with a client environment, and I have no idea why. I never needed the JK2 log before, because I was able to successfully set things up without it. Now I need it. I've tried using several different reg. keys per the documentation to indicate where the log file should go, but no dice. It also doesn't show up under ${serverRoot}/logs, as a casual glance at the source code would seem to indicate. I have the logLevel set to DEBUG, but I have no idea where the log messages are actually going. I have tried these reg. keys, and some others, with no luck: logFile=C:\\somePath\\someFile.log log_file=C:\\somePath\\someFile.log ...so, could any kind soul tell me where the JK2 log goes by default, or how to indicate to the redirector where it should go? thanks, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2 Tomcat4.1.27 name based virtual hosts
Hi Dave, VirtualHost * ServerName www.freshlyroastcoffee.biz DocumentRoot /coffeepp JkMount /* ajp13 etc /VirtualHost VirtualHost * ServerName www.capucino.co.uk DocumentRoot /coffeemy JkMount /* ajp13 etc /VirtualHost With this setup www.freshlyroastcoffee.biz is found so is www.capucino.co.uk. However, if www.capucino.co.uk is the first virtual host then www.freshlyroastcoffee.biz is not found and it defaults to www.capucino.co.uk - the first default virtual host. Regards, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl on more than one port on w2000 sp2?
Are they using the same port -Original Message- From: Vengurlekar, Mandar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:35 PM To: '[EMAIL PROTECTED]' Subject: ssl on more than one port on w2000 sp2? Hi, Can i start more than one apache tomcat servers to listen on ssl connections on more than one port? I have a machine windows 2000 with sp2 that has 2 apache tomcat servers running. One server has the ssl port running fine, but i cannot use the ssl port on the other Thanks and Regards, Mandar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6
Hi Chris, I've failed as local system account, local system account with access to local desktop, and running the service under my own account. Looking in the localhost log, I see this line: 2003-10-02 13:31:25 Could not load TagLibraryValidator class org.apache.taglibs.standard.tlv.JstlCoreTLV: EXCEPTION: null It's not loading the JSTL TLV. It loads just fine for the other two apps. Why would two JSTL apps deployed under Tomcat 4.0.6 running as a service run fine, while a third fail because it can't find the TLV? - MOD --- Walker Chris [EMAIL PROTECTED] wrote: What account was it running under before? Can you set it to start under your account? It would be worth making sure that everything the app needs, especially the taglibs, is accessible to all users. Failing that, I suppose you could search the source for the message No tags. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:42 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, I just tried my app after setting up the Windows service to login under the system account and checking the box to allow interaction with the local desktop. The echo and data source apps still succeeded, and the big app failed for the same reason: No tags in stderr.log. That's not it. Anybody else seen such behavior running Tomcat 4.0.6 as a Windows service? - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Hi Michael, This is a Winows thing, rather than a Tomcat thing. Control Panel-Services-Apache Tomcat 4.1-Startup will show you the NT account the service uses to start. By default services use the System account, which IIRC, can't access any network resources such as mapped drives. It may also be unable to access local files if they have restrictive permissions. When you run Tomcat as a command it will run under your login account. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 16:02 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Hi Chris, Hmmm, good question. There's no argument in the tomcat.exe that calls for a username OR password. I'm admin on my own machine. The question is: what about the deployment machine? If it's installed under the admin account, wouldn't it use the System admin username and password? How would that affect looking inside the JARs for the TLD file? I'm not saying you're wrong. I have NO idea why the service would fail and the command line succeed. I'm just trying to understand what's really happening here so I can correct it. Thanks - MOD --- Walker Chris [EMAIL PROTECTED] wrote: Michael, What account does the service run under? The default for most services is the System account, which may be having problems accessing some resource that your application needs. Chris -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 15:34 To: Tomcat Users List Subject: RE: One More Piece Of Info RE:JSTL Failure Under Tomcat 4.0.6 Yoav, you're a genius. It came right up when I stopped the service and ran it from the command window. I'm NOT crazy. ;) Thank you! Now, the question is that when I deploy this it's going to be Tomcat 4.0.6 running as a service and connected to IIS on a Windows XP server. What did I do wrong when I deployed Tomcat as a service that should be corrected now? My sincerest thanks. I've been at my wits end, and haven't been thinking as clearly as I should. I'm glad that you were. - MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Yes, I run Tomcat as a Windows service. I asked for both stdout.log and stderr.log when I set up the service. Here's the script. - MOD Hmm, let's try to take another variable out of the equation. I'm sure your script is fine, but can you run tomcat normally from the command line, not as a service, and not using your script. Use catalina.bat run so that the console window stays open. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
Re: JK2 log location, anyone?
According to the docs (don't have them handy at the moment), mod_jk2 uses the Windows system logging as a default. If you want to use your own log file, put something like the following in workers2.properties. # Alternate file logger [logger.file:0] # level=DEBUG file=${serverRoot}/logs/jk2.log [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 ${serverRoot} is the root directory of your Apache installation - in my case it's C:\Apache2. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link to Integrating Tomcat into Apache?
Hey I've been trying to find a good tutorial or how to on integrating tomcat into apache.. can anyone provide a link? Preferably Apache 2.x and tomcat 4.1.x thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to Integrating Tomcat into Apache?
On Thu, October 2, 2003 1at 1:02 am, David Erickson sent the following Hey I've been trying to find a good tutorial or how to on integrating tomcat into apache.. can anyone provide a link? Preferably Apache 2.x and tomcat 4.1.x Did you bother looking at the Jakarta Tomcat site? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hanging!! About to change container!! Please help!!
Hi Joe, I'm experiencing a similar problem to what you are describing. What I've now tried to do based on Rémy Maucherat advice is to try the IBM JVM instead of the Sun JVM. I don't have conclusive results yet, but if you are using the Sun JVM, try using the IBM VM. Regards, Noam - Original Message - From: Joe Zendle [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 6:44 PM Subject: Tomcat hanging!! About to change container!! Please help!! We have 10 days until we go GA. We are experiencing periodic and regular lockups of Tomcat. We are testing on a machine that is fairly loaded with background work (about 50% cpu). Our web app is accessed by very few users so Tomcat per se, is not under load handling requests. After say 10-12 hours of browser inactivity, when attempting to login we get the BASIC Auth prompt, we enter our credentials and then tomcat hangs while loading our index.jsp. The request never completes. I've attached our configuration. Please let me know if there is anything that looks wrong. We,re using: Tomcat 4.1.27 Java 1.4.2 Redhat 9.0 Also, what kind of settings can I apply to help debug the problem effectively. BTW, I've seen similar complaints on this mailing list but no suggestions :-). Please help! Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to Integrating Tomcat into Apache?
Jeez I don't know how I missed that :P I did find another one but of course Jakarta's docs are better. Thanks a bunch -David - Original Message - From: David Rees [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:12 PM Subject: Re: Link to Integrating Tomcat into Apache? On Thu, October 2, 2003 1at 1:02 am, David Erickson sent the following Hey I've been trying to find a good tutorial or how to on integrating tomcat into apache.. can anyone provide a link? Preferably Apache 2.x and tomcat 4.1.x Did you bother looking at the Jakarta Tomcat site? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat hanging!! About to change container!! Please help!!
On Thu, October 2, 2003 at 9:44 am, Joe Zendle sent the following We have 10 days until we go GA. We are experiencing periodic and regular lockups of Tomcat. We are testing on a machine that is fairly loaded with background work (about 50% cpu). Our web app is accessed by very few users so Tomcat per se, is not under load handling requests. After say 10-12 hours of browser inactivity, when attempting to login we get the BASIC Auth prompt, we enter our credentials and then tomcat hangs while loading our index.jsp. The request never completes. I've attached our configuration. Please let me know if there is anything that looks wrong. We,re using: Tomcat 4.1.27 Java 1.4.2 Redhat 9.0 Also, what kind of settings can I apply to help debug the problem effectively. BTW, I've seen similar complaints on this mailing list but no suggestions :-). Please help! Last time I saw similar hangs it was a bug in my application. When you notice that Tomcat hangs, send it a QUIT signal and take a look at the output. You've probably got a thread in an infinite loop somewhere stuck inside of a synchronized section. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need help explaining why lock box doesn't show up - PLEASE
On Thu, October 2, 2003 at 9:30 am, [EMAIL PROTECTED] sent the following When it's in Apache it's going through port 80 and when it's in Tomcat it's going through the default 8080 port. You're not using mod_jk to forward requests from Apache to Tomcat? Either way, if you are using port 80, that is the standard http port, you should be using https://website/ and mod_jk to forward requests to Tomcat over the AJP13 port. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 5.0 docs] Application Developer's Guide: build.xml file
Hi all :) First post here, so don't bomb me if i do anything wrong :P After downloading and installing Tomcat 5.0 beta i discovered an error in the build.xml file provided in that section. The target install misses the action to create a war file, and deploying that war file in/on/to (?) the server. I solved it this way: ---snip--- target name=install depends=compile description=Install application to servlet container !-- added -- jar jarfile=${build.home}/${app.version}.war basedir=${build.home}/ !-- /added -- !-- [EMAIL PROTECTED] now points to the just created war file (ofcourse ;)) -- deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=${build.home}/${app.version}.war/ /target ---snip--- Maybe it's all wrong, (if so, please let me know how to do better ;)) but that's not my point. Maybe the guys over there creating and managing these docs can provide a better build.xml file :) I searched my ass of (being new to Ant and all :)) how to solve that weird ZipException... Cheers in advance :) drm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using mod_jk with Apache Virtual Hosts
On Thu, October 2, 2003 at 8:52 am, David Godfrey sent the following Looking for some help with the following please I have Apache HTTP Server set up to server three virtual hosts. Two of these I want to be serving Tomcat based content, the third serves purely static content. I have this working of a fashion, as I have Jkmount directives inside the two virtualhost sections of httpd.conf that map to the virtualhosts that will server tomcat based content. The relevant section of httpd.conf looks like this So what I now have is three working virtual hosts, with both VH2 and VH3 redirected to tomcat. What I actually need is for VH2 to redirect to a webapp named VH2 running inside tomcat, and likewise for VH3 to redirect to a webapp named VH3. At the moment I need to put VH2/VH2 and VH3/VH3 into my browser for this to work. Both webapps are running in the same instance of Tomcat. Hope I've explained this in an understandable manner, some help would be appreciated. Are both webapps running under the same Host in Tomcat? For example, on Tomcat VH2 is running under context /VH2 and VH3 is runder /VH3? If so you probably want to setup virtualhosts in Tomcat and map the webapps to the root context instead of trying to redirect things to the proper directory. That should simply the configuration a good deal. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2 Tomcat4.1.27 name based virtual hosts
On Thu, October 2, 2003 1at 0:33 am, John Bell sent the following Hi Dave, VirtualHost * ServerName www.freshlyroastcoffee.biz DocumentRoot /coffeepp JkMount /* ajp13 etc /VirtualHost VirtualHost * ServerName www.capucino.co.uk DocumentRoot /coffeemy JkMount /* ajp13 etc /VirtualHost With this setup www.freshlyroastcoffee.biz is found so is www.capucino.co.uk. However, if www.capucino.co.uk is the first virtual host then www.freshlyroastcoffee.biz is not found and it defaults to www.capucino.co.uk - the first default virtual host. I am still confused. By is not found what exactly is happenning? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl on more than one port on w2000 sp2?
Hi Jay, One is 8443 and the other is 8444 The tomcat apache servers are running on 8005 and 8205 Thanks and Regards, Mandar -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: RE: ssl on more than one port on w2000 sp2? Are they using the same port -Original Message- From: Vengurlekar, Mandar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:35 PM To: '[EMAIL PROTECTED]' Subject: ssl on more than one port on w2000 sp2? Hi, Can i start more than one apache tomcat servers to listen on ssl connections on more than one port? I have a machine windows 2000 with sp2 that has 2 apache tomcat servers running. One server has the ssl port running fine, but i cannot use the ssl port on the other Thanks and Regards, Mandar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing Sessions in the container
Hi all, How would I be able to access/list all the sessions running on a JVM/Container? Any sample code would be delightfully welcome! Thanks in advance, Kailas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing Sessions in the container
prohibited by spec Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:50 AM Subject: Accessing Sessions in the container Hi all, How would I be able to access/list all the sessions running on a JVM/Container? Any sample code would be delightfully welcome! Thanks in advance, Kailas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing Sessions in the container
But that restriction can be bypssed by creating a SessionListener to store these sessions yourself in ServletContext scope. Search the archive for more info about this. Doing so can also easily create a memory leak if one is not careful. -Tim Filip Hanik wrote: prohibited by spec Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:50 AM Subject: Accessing Sessions in the container Hi all, How would I be able to access/list all the sessions running on a JVM/Container? Any sample code would be delightfully welcome! Thanks in advance, Kailas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS +Tomcat for some reason the query strings are stripped
I was wondering if anyone else has come accross this problem. I have tomcat running under IIS. When I call a jsp page with parameters eg. www.x.ca?CHOICE=1 on the address field I see www.x.ca?CHOICE=1 but my jsp page is always receiving www.x.ca Is it possible that IIS is stripping the parameters when its passing the url to Tomcat? I included % choice = (String) request.getParameter(CHOICE); out.println(The CHOICE is = + choice); out.println(QUERY STRINGS ARE + request.getQueryString()); % Both print statements return null. I have tried my code on Tomcat alone and everything is fine. * This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential and privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank you * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl on more than one port on w2000 sp2?
smime.p7m Description: S/MIME encrypted message
RE: Accessing Sessions in the container
Right, but I do not want all web applications to implement this Listener either. Kailas Enterprise Web Infrastructure -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:57 PM To: Tomcat Users List Subject: Re: Accessing Sessions in the container But that restriction can be bypssed by creating a SessionListener to store these sessions yourself in ServletContext scope. Search the archive for more info about this. Doing so can also easily create a memory leak if one is not careful. -Tim Filip Hanik wrote: prohibited by spec Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:50 AM Subject: Accessing Sessions in the container Hi all, How would I be able to access/list all the sessions running on a JVM/Container? Any sample code would be delightfully welcome! Thanks in advance, Kailas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ssl on more than one port on w2000 sp2?
Hold on!!! 8005 port in Tomcat is used for Shutdown. Look at your server.xml, way in the top... Do you see Server port=8005 shutdown=SHUTDOWN debug=0? If you do, change your SSL config to another port on Tomcat, usually its 8009. What is your environment? OS? JVM? Tomcat? Apache? -Original Message- From: Vengurlekar, Mandar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:42 PM To: 'Tomcat Users List' Subject: RE: ssl on more than one port on w2000 sp2? Hi Jay, One is 8443 and the other is 8444 The tomcat apache servers are running on 8005 and 8205 Thanks and Regards, Mandar -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: RE: ssl on more than one port on w2000 sp2? Are they using the same port -Original Message- From: Vengurlekar, Mandar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:35 PM To: '[EMAIL PROTECTED]' Subject: ssl on more than one port on w2000 sp2? Hi, Can i start more than one apache tomcat servers to listen on ssl connections on more than one port? I have a machine windows 2000 with sp2 that has 2 apache tomcat servers running. One server has the ssl port running fine, but i cannot use the ssl port on the other Thanks and Regards, Mandar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing Sessions in the container
put a Valve in your context and you can do all kinds of things there on the invoke you can do StandardManager manager = (StandardManager)request.getContext().getManager(); Session[] sessions = manager.findSessions(); the valve if configured only to one context to so you will only get one manager, ie one webapp Filip - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:56 AM Subject: Re: Accessing Sessions in the container But that restriction can be bypssed by creating a SessionListener to store these sessions yourself in ServletContext scope. Search the archive for more info about this. Doing so can also easily create a memory leak if one is not careful. -Tim Filip Hanik wrote: prohibited by spec Filip - Original Message - From: Simha, Kailas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:50 AM Subject: Accessing Sessions in the container Hi all, How would I be able to access/list all the sessions running on a JVM/Container? Any sample code would be delightfully welcome! Thanks in advance, Kailas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[I] Dev tool for Tomcat
Are you tired of starting and stopping your tomcat server each time you update a WAR? Are you looking for an innovative way to streamline your existing development processes? If so, look no further ... Likha Software provides tools based on Open Source and Open Standards that enables the development of cutting edge database driven web applications. Our framework facilitates for a worldwide office composed of different teams from virtually anywhere. Likha Software takes the term flexible workforce to a whole new level. Key Benefits: - Companies and developers can reap tremendous cost benefits using the LDC by lowering overall application development costs by: * Shorter development time lifecycle * World wide virtual office * Offline application development * Unlimited developer access * Vertical Integrated Development Environment for web applications only * Uses open source based technologies A trial version to our solution can be downloaded for free @: http://www.likhasoftware.com Please do not hesitate to contact us directly @: [EMAIL PROTECTED] with any questions. Thank you, Anoop likhasoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Slow serving requests issue
Alex: We have been trying to diagnose a similar problem that we are experiencing on our servers. All of our requests come into our controller servlet. The servlet then forwards the request via a RequestDispatcher to a jsp page for display. On occasion (at least once a day), one of these requests take about 4 minutes to go from the forward call to the jsp. We do not currently have an explanation for it, but as trying to track it down thru the Tomcat source code with Filip Hanik's help. We are using Session Replication across our 4 web servers. They are all running: Red Hat Linux (8 and 9) Apache 2 Sun JDK 1.4.2 Tomcat 4.1.24 Do you have multiple servers or just one? Are you using Session Replication? If you would like to talk directly, feel free to contact me. Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com Original message from Alex Shneyderman [EMAIL PROTECTED] - I just finished development of my struts app and have a performance problem. The pages are not served with a consistent speed. I have a page that Goes thru the whole struts hoopla to be served (action servlet - action - jsp). To detect what might be the problem I make the same request several times some of the requests will be served really fast (like no time) while there is always one that happens with an unknown frequency that is served much slower than the others. The top shows that during that slow serving request tomcat's utilization grows rapidly and falls down slowly. We are using 4.1.27 on solaris java 1.4.1_04. Does anyone know what might be wrong? From what it looks like to me is that somehow JSP (or parts of it) get recompiled periodically without the JSPs being changed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integrating Tomcat and Apache on RedHat 9.0
Thanks for sharing. Mike Millson [EMAIL PROTECTED] wrote: FYI, below is an article I wrote on integrating tomcat and apache on RedHat 9.0 that might be of interest. http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html It has a lot of general configuration info as well. It has been fairly well tested recently by a number of individuals who have provided feedback. It was published this month by Linux Gazette, but the link above has the latest and greatest w/ typos fixed and clarifications added. As much as I proofread the copy I sent to Linux Gazette, a few issues and typos were brought to my attention after I submitted it. http://linuxgazette.com/issue95/millson.html Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
Re: mod_jk2 hangs?!
Dean Searle wrote: You're missing the jk2.shm file. This file should be created using notepad or vi (depending on your OS)and placed in a folder. That folder can be determined by looking into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both files point to the same place. Dean I have a shm file for mod_jk2 but didn't change the tomcat jk2.properties. Does this mean I have to use the same shm file for tomcat and mod_jk2? I thought they will just use socket for communication!? However, I can't use the same file, because apache is in the DMZ and tomcat in another net segment and I can't share a disk... Thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]