RE: How can I run tomcat on port 8080 and have the users think it's on port 80?
But this site doesn't contain any detail configuration. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:57 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: How can I run tomcat on port 8080 and have the users think it's on port 80? Forget mod_rewrite. You just have to use the AJP Connector that is supplied with Tomcat to connect it to Apache and have apache work on port 80. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html Surf about a bit to find the correct version for you if you are not running Tomcat 4.0. If there is something preventing you from using this connector tell the list about it and we'll see what we can do ;-) Enjoy, Andoni. - Original Message - From: Michael Mattox [EMAIL PROTECTED] To: Xavier Ambrosioni [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:34 PM Subject: RE: How can I run tomcat on port 8080 and have the users think it's on port 80? We have this working for incoming requests, the problem we're having is the website uses relative links. Since tomcat is running on port 8080, a relative link has port 8080 in it. Apparently Apache isn't rewriting this before it's sent back to the client, and port 8080 shows up in the client's browser. Is Apache's mod_rewrite supposed to handle this? Perhaps we haven't set it up properly?? Thanks, Michael -Original Message- From: Xavier Ambrosioni [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:17 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How can I run tomcat on port 8080 and have the users think it's on port 80? You can use the mod_rewrite module in apache to rewrite and redirect URL from port 80 to port 8080. With this module, apache can be used as a proxy that only redirect urls to the right port. Xavier [EMAIL PROTECTED] wrote: I'd like to run Tomcat on port 80 but I don't want to run it as root. Is it possible to run it on 8080 yet have the users access it via port 80? My admin has set it up this way but the problem is all relative links in my app show up as :8080. So once the user clicks on a link they see 8080 from then on. Thanks, Michael Mattox -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. - 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 IIS and html
Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom
Re: TOMCAT IIS and html
It will serve every thing ( all files) within your app context not just jsp and servlet -Dan - - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:10 AM Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
Tomcat will or IIS will? Thanks Dom - Original Message - From: Dan Tran To: Tomcat Users List Sent: Monday, June 09, 2003 9:53 AM Subject: Re: TOMCAT IIS and html It will serve every thing ( all files) within your app context not just jsp and servlet -Dan - - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:10 AM Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
TOMCAT, IIS just do the forwarding _D - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:59 AM Subject: Re: TOMCAT IIS and html Tomcat will or IIS will? Thanks Dom - Original Message - From: Dan Tran To: Tomcat Users List Sent: Monday, June 09, 2003 9:53 AM Subject: Re: TOMCAT IIS and html It will serve every thing ( all files) within your app context not just jsp and servlet -Dan - - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:10 AM Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - 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 destoying beans
Hi After I call a servlet that accesses two beans created in a jsp, the beans seem to have been destroyed. They are created like this: %@ page import=beans.*% jsp:useBean id=authBean scope=session class=beans.UserAuth/ jsp:useBean id=dataBean scope=session class=beans.DataBean/ this page then response.sendRedirect(MyServlet); code in MyServlet: session = req.getSession(); UserAuth authBean = (beans.UserAuth) session.getAttribute(authBean); DataBean dataBean = (beans.DataBean) session.getAttribute(dataBean); I am able to access these beans in the servlet, but once it has finished execution, they seem to have been garbage collected! What am I missing?! Thanks Dom
RE: check for session
Hi Mark, I use Documentum and struts and had something similar to what you now have with a Filter determining if a user has a dmSession. I found however that on a number of occasions when the filter was checking for dmSession it was returning null (even though I knew it had previously been created) and the app was recreating the session and saving it. I have now removed the filter and written a custom tag that checks for the existence of the dmSession and if it does not exist creates it, if there is a problem creating the dmSession the user is redirected to an error page. Regards Jim. -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 19:42 To: Tomcat Users List Subject: Re: check for session Thanks, worked like a charm, never used that before, very nice. The filtering mechanism though makes me wish I'd set up the app directory structure differently but you know hindsight 20/20 and all that... -Mark Shapira, Yoav wrote: | Howdy, | Consider using a Filter as follows: | | public void doFilter(...) { | if(request instanceof HttpServletRequest) { | HttpSession theSession = ((HttpServletRequest) | request).getSession(); | if(theSession.getAttribute(dmSession) == null) { | // Redirect to login page, print out error message, whatever | } | } | | // Pass the request on | chain.doFilter(request, response); | } | | Map this filter to whatever you need authenticated (/* is one | possibility). | | Yoav Shapira | Millennium ChemInformatics | | || -Original Message- || From: Mark F [mailto:[EMAIL PROTECTED] || Sent: Friday, June 06, 2003 12:16 PM || To: Tomcat Users List || Subject: check for session || || We use a content management system (documentum) it operates much || like a database as far as authentication. I save a documentum || session object into my httpSession as dmSession upon successful || logon. I want to check for the existence of this session on every || page after the logon page, or if there is an easier way please let || me know? || || Any help would really be appreciated. || || Thanks, || -Mark | | | | 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] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat destoying beans
Dominic, You haven't set the session in the page declaration [EMAIL PROTECTED] session=true ... Hope this helps Bill -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: Monday, 9 June 2003 7:00 PM To: Tomcat Users List Subject: Tomcat destoying beans Hi After I call a servlet that accesses two beans created in a jsp, the beans seem to have been destroyed. They are created like this: %@ page import=beans.*% jsp:useBean id=authBean scope=session class=beans.UserAuth/ jsp:useBean id=dataBean scope=session class=beans.DataBean/ this page then response.sendRedirect(MyServlet); code in MyServlet: session = req.getSession(); UserAuth authBean = (beans.UserAuth) session.getAttribute(authBean); DataBean dataBean = (beans.DataBean) session.getAttribute(dataBean); I am able to access these beans in the servlet, but once it has finished execution, they seem to have been garbage collected! What am I missing?! Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT IIS and html
Hi Dom, It depends how you have configured your connector. If you have set up your workers.properties or workers2.properties file to forward /examples/*.jsp to Tomcat then Tomcat will only see JSP file requests and all the HTML or GIF etc requests will be handled by IIS. If however you put /examples/* in the file then IIS will forward all and every request on to Tomcat for processing and IIS won't handle anything in that directory. David Legg -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 08:11 To: Tomcat Users List Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re. to Thomas.Rimmele( I used param tag just as u said)
From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: having problem with getInitParameter() Date: Sat, 7 Jun 2003 18:03:08 +0200 Hy, I think your forgot the init-param-tag Greethings, Thomas servlet servlet-name xxx /servlet-name servlet-class yyy /servlet-class init-param param-namekey/param-name param-valuevalue/param-value /init-param /servlet -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: Samstag, 7. Juni 2003 17:41 To: [EMAIL PROTECTED] Subject: having problem with getInitParameter() Hi, I m having problem with the the get InitParameter method of ServletConfig class, I m adding tags as following in both tomcat_home/conf/web.xml and /tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working servlet ... ... param-namepname/param-name param-valuepvalue/param-value /servlet _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
Thanks David Ok. So is there a way to exclude certain extensions. *.html *.jpg, etc. Dom - Original Message - From: David Legg [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:30 AM Subject: RE: TOMCAT IIS and html Hi Dom, It depends how you have configured your connector. If you have set up your workers.properties or workers2.properties file to forward /examples/*.jsp to Tomcat then Tomcat will only see JSP file requests and all the HTML or GIF etc requests will be handled by IIS. If however you put /examples/* in the file then IIS will forward all and every request on to Tomcat for processing and IIS won't handle anything in that directory. David Legg -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 08:11 To: Tomcat Users List Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - 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: Newbie Q:How to prevent Directory listing in Tomcat?
Hi Bob, In version 4.x Tomcat look for the file TOMCAT_HOME/conf/web.xml This file sets all the default web application settings. Look for the tag sequence: - param-namelistings/param-name And change the param-value tag below it from 'true' (the default setting) to false. Hope that helps. David Legg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 00:02 To: [EMAIL PROTECTED] Subject: Newbie Q:How to prevent Directory listing in Tomcat? How can I prevent a client from listing the contents of my web appl. directories without having to put an 'index.html' in the base of each directory? Thanks. Bob. P.s.: I can find any solution(s) in the Tomcat-user archive: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT IIS and html
Ok. So is there a way to exclude certain extensions. *.html *.jpg, etc. As far as I know there is no way to selectively exclude file extensions. All you can do is selectively include which file types should be passed on to Tomcat. Usually that is not a problem because you either want IIS to handle everything except JSP files for speed reasons or you want Tomcat to handle ALL files because that context is part of a secure realm. David Legg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat with apache
Hi everyone, I have searched thru the archives and cannot find a pointer on this. Can anybody point me to some how-to's on getting the latest version of Tomcat to run with Apache Http. Regards Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FAQ RE: Tomcat with apache
http://www.johnturner.com/howto/apache-tomcat-howto.html#howto http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://sourceforge.net/projects/tomcatbook/ http://mywebpages.comcast.net/funkman/ Umm, there's loads more (google or archives) -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 11:01 To: Tomcat (E-mail) Subject: Tomcat with apache Hi everyone, I have searched thru the archives and cannot find a pointer on this. Can anybody point me to some how-to's on getting the latest version of Tomcat to run with Apache Http. Regards Kevin - 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]
JDBCRealm
Hi to All! How can I retrieve additional information (link to authenticated user like list of employeename) which he can see. With best wishes Roman Blade Velichko [mailto:[EMAIL PROTECTED] Chance favour to prepared mind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat with apache
Apache2 Tomcat5 mod_jk2 I agree there is missing links in the documentation. I had to do a lot of hacks to make it work, but I still have problems. You have to read about jk2. You can find something of it here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html Unfortunately there is some differences in how it works under Tomcat5 For instance I could only make it work with Location / JkUriSet worker ajp13:localhost:8009 /Location Regards David Bo Jensen Mandag 09 juni 2003 12:01 skrev Kevin Passey: Hi everyone, I have searched thru the archives and cannot find a pointer on this. Can anybody point me to some how-to's on getting the latest version of Tomcat to run with Apache Http. Regards Kevin - 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]
Tomcat5 Tomcat Administration
I have done Tomcat5/bin/startup.sh then with my browser http://localhost:8080/ After that I tried to click on Tomcat Administration and Tomcat Manager using both and tomcat as userid and password but I all cases I got an error message. Have anybody seen it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 Tomcat Administration
You need to edit conf/tomcat-users.xml and add a user to the manager and admin role. ex: user username=tomcat password=tomcat roles=tomcat,admin,manager/ -Tim David Bo Jensen wrote: I have done Tomcat5/bin/startup.sh then with my browser http://localhost:8080/ After that I tried to click on Tomcat Administration and Tomcat Manager using both and tomcat as userid and password but I all cases I got an error message. Have anybody seen it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SOLVED] -Xincgc, -Xms600, -Xmx600
Howdy, I finally managed to get my issue sorted out. After installing Tomcat on another machine to do some testing I noticed that it had the following value in the registry: JVM Library: C:\jdk1.3.1_03\jre\bin\hotspot\jvm.dll snip Any comments? Yeah, windows sucks ;) I dislike it when settings like this are not transparent and easy to debug. Second comment: glad you got it fixed, and thanks for posting the update. Yoav Shapira = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where do I get MOD_JK2 - directory is empty
The d/l page is empty - what's wrong?? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4 /bin/win32/ Regards Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SOLVED] -Xincgc, -Xms600, -Xmx600
On this same note, when you upgrade your JVM in windows, you have to change that same registry key to reflect the update, otherwise Tomcat won't start. - Original Message - From: Yoav Shapira To: Tomcat Users List Sent: Monday, June 09, 2003 1:32 PM Subject: RE: [SOLVED] -Xincgc, -Xms600, -Xmx600 Howdy, I finally managed to get my issue sorted out. After installing Tomcat on another machine to do some testing I noticed that it had the following value in the registry: JVM Library: C:\jdk1.3.1_03\jre\bin\hotspot\jvm.dll snip Any comments? Yeah, windows sucks ;) I dislike it when settings like this are not transparent and easy to debug. Second comment: glad you got it fixed, and thanks for posting the update. Yoav Shapira = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 Tomcat Administration
Mandag 09 juni 2003 13:24 skrev Tim Funk: You need to edit conf/tomcat-users.xml and add a user to the manager and admin role. ex: user username=tomcat password=tomcat roles=tomcat,admin,manager/ -Tim Thanks, you are right. From where did you have that piece of information? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help please (Tomcat 4.1.24 and IIS)
I am trying to setup tomcat 4.1.24 with IIS. When I request a page I get the following message:- HTTP Status 404 - /tomcat/isapi_redirect.dll ___ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings extension_uri - /tomcat/isapi_redirector.dll worker_file - C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file - C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file - C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level - debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) Ive set up the filter in the default web site for tomcat (it has a green arrow) Im running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (829)]: In HttpFilterProc Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (835)]: In HttpFilterProc test Default redirection of /tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (899)]: HttpFilterProc [/tomcat/isapi_redirect.dll] is not a servlet url [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (908)]: HttpFilterProc check if [/tomcat/isapi_redirect.dll] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (948)]: HttpExtensionProc started [Sat Jun 07 09:18:40 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sat Jun 07 09:18:40 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (983)]: HttpExtensionProc got a worker for name ajp13 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497 seconds [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (642)]: sending to ajp13 #314 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (432)]: Into jk_ws_service_t::start_response [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #747 [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (566)]: Into jk_ws_service_t::write [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #2 [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (995)]: HttpExtensionProc service() returned OK [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection What have I missed? Jeff
tomcat does not release connections
Hi All, i have a small query, am using dbcp for connection pooling and am opening 3 connection to the database and having 1 connection as idle. now..when i restart the tomcat container , sometime it does not release the 3 connections ( this is when i check it using the query select count(SADDR) from v$session where username='ACBD' and machine='lmpx00028' ) can something be done in the conf files for tomcat so that the container releases all the connections when it is restarted Cheers Vijay Pawar - On behalf of Amit J Malhotra (RIL.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 Tomcat Administration
Oddly enough, I just knew it. I think it is the release notes (but not sure). But I also have it as a todo in adding to the FAQ. -Tim David Bo Jensen wrote: Mandag 09 juni 2003 13:24 skrev Tim Funk: You need to edit conf/tomcat-users.xml and add a user to the manager and admin role. ex: user username=tomcat password=tomcat roles=tomcat,admin,manager/ -Tim Thanks, you are right. From where did you have that piece of information? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5 Tomcat Administration
http://localhost:8080/tomcat-docs/manager-howto.html it says it here for tomcat 4... f you have not customized your $CATALINA_HOME/conf/server.xml to select a different one, Tomcat 4 defaults to an XML-format file stored at $CATALINA_HOME/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an XML user for each individual user, which might look something like this: user name=craigmcc password=secret roles=standard,manager which defines the username and password used by this individual to log on, and the role names he or she is associated with. You can add the manager role to the comma-delimited roles attriute for one or more existing users, and/or create new users with that assigned role. Tim Funk wrote: Oddly enough, I just knew it. I think it is the release notes (but not sure). But I also have it as a todo in adding to the FAQ. -Tim David Bo Jensen wrote: Mandag 09 juni 2003 13:24 skrev Tim Funk: You need to edit conf/tomcat-users.xml and add a user to the manager and admin role. ex: user username=tomcat password=tomcat roles=tomcat,admin,manager/ -Tim Thanks, you are right. From where did you have that piece of information? - 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: Where do I get MOD_JK2 - directory is empty
I got my copy from : - http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/bin/win32/ David Legg -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 12:38 To: Tomcat (E-mail) Subject: Where do I get MOD_JK2 - directory is empty The d/l page is empty - what's wrong?? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4 /bin/win32/ Regards Kevin - 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 user administration for jndi
Hi all, I am using the jakarta-dbcp package as a connection pool for my jdbc connections. The configurations i have done as per the tomcat documentation for jndi-how to and its is working fine. Now, in the tomcat administration tool there is option for configuration jndi sources. Now will the effect be the same. i.e if i configure connection pool through the admin tool or manually by editing the server.xml file, will both have the same effect. or is it that if we use the admin tool then the release of connections at server startup is done automatically. Thanks in advance Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GOT IT! (was: newbie question: mod_jk not working Win 2000)
Glad you got it working. John On Fri, 6 Jun 2003 18:20:16 -0400, Keith Adams [EMAIL PROTECTED] wrote: I just noticed that the Command window in which Tomcat is running says Tomcat 3.2. And sure enough, there turned out to be Tomcat 3.2 installed also, and somehow I'd gotten myself confused when assigning a Windows shortcut to start up Tomcat. Thanks everybody for your help. Sorry for sending you on a wild goose chase! Keith Keith Adams Senior Application Developer SAS Institute 1 Montgomery Street #3400 San Francisco, CA 94104 Tel (415) 421-2227 Ext 1252 Cell (415) 531-3875 Fax (415) 421-1213 Approximate work hours 8.45-4.15 - SAS Institute - The Power to Know - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat configuring for email
Yes. Tomcat is not a mail transfer agent (MTA). You will need a MTA on the standard port (port 25), either on localhost or some other host. Typical MTAs are sendmail, qmail, Microsoft's IIS, and many more. The mail services included with Tomcat for sending mail interface with an MTA, they do not implement an MTA. You can use any compatible MTA, such as sendmail on localhost if you have a UNIX-like system, or Microsoft's SMTP service on localhost if you have Windows, or any other remote MTA that is available to you, such as the MTA provided by your ISP. John On Sat, 7 Jun 2003 12:45:13 +0800, Clement [EMAIL PROTECTED] wrote: sorry i am at a lost... do u mean that an additional SMTP server/ program is needed?? - Original Message - From: John Corrigan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 11:41 Subject: RE: Tomcat configuring for email Provided that localhost has an SMTP server then yes, e-mailing is on. The example .jsp does in fact send e-mails provided that everything else is configured correctly. -Original Message- From: Clement [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:30 PM To: Tomcat Users List Subject: Re: Tomcat configuring for email Hello. Sorry for the confusion. What i meant does tomcat have a built in emailing? As u replied there is . But is it on by default? when i try running the example inside , it seems to be a dummy one. What i am trying to do is to mail a user automatically everytime he makes a purchase. inside the default server.xml as shown below, is this the way to enable emailing or is there more to it? Thanks.. Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/computersDB auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/computersDB parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 06, 2003 23:17 Subject: RE: Tomcat configuring for email Don't understand your question. Tomcat has built-in mail session jndi lookup. You can use it in your program. Is that what you want? -Original Message- From: Clement [mailto:[EMAIL PROTECTED] Sent: June 6, 2003 2:53 AM To: Tomcat Users List Subject: Tomcat configuring for email Hello... I would like to check with for emailing purposes.. how do i enable tomcat to send an email to a user? Can version 4.01 do this or do u need a newer version? ? Thanks.. - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem executing Servlets with Tomcat 4.1.24
Don't use the Invoker. It's disabled for a reason. John On Sat, 7 Jun 2003 09:46:50 -0600, David Erickson [EMAIL PROTECTED] wrote: Ya that fixed it, thank you so much! This problem has been driving me CRAZY you have no idea =P -David - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 4:12 AM Subject: RE: Problem executing Servlets with Tomcat 4.1.24 I am guessing that you do not have a mapping on the invoker servlet in web.xml Open the /tomcat_home/conf/web.xml and Unremark the block that mapps the invoker to /servlet/* Hope it helps -reynir -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: 7. júní 2003 05:42 To: [EMAIL PROTECTED] Subject: Problem executing Servlets with Tomcat 4.1.24 Hi I'm new to the whole java scene but I'm trying to get some example and test servlets running and having all kinds of problems. I have a working tiny servlet thats compiled as ExampleServlet.class. However the only place I can get tomcat to execute it is when i put it in the (tomcat home dir)\webapps\examples\WEB-INF\classes dir with the rest of the examples. When I create my own directory under (tomcat home dir)\webapps\begjsp\WEB-INF\classes and put it there it will not execute it i get the error 404 type Status report message /begjsp/servlet/ExampleServlet description The requested resource (/begjsp/servlet/ExampleServlet) is not available Which is highly annoying. When I run the manager and list the running webapps it lists the begjsp as being deployed and running. Makes no sense! This is basically a default install.. and I read there is a web.xml file that generally goes into the WEB-INF\ folder but I am missing one, it should run even without one correct? Here's my class code just incase I screwed it up somehow.. but it works in the examples folder..: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ExampleServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out; String title = Servlet Example; response.setContentType(text/html); out = response.getWriter(); out.println(htmlheadtitle); out.println(title); out.println(/title/headbody); out.println(h1This is an example servlet./h1); out.println(/body/html); out.close(); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } } Any and ALL help appreciated =) -Halcyon - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a problem with IIS and Tomcat 4.1.24 config
I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) Ive set up the filter in the default web site for tomcat ( it has a green arrow) Im running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (829)]: In HttpFilterProc Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (835)]: In HttpFilterProc test Default redirection of /tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (899)]: HttpFilterProc [/tomcat/isapi_redirect.dll] is not a servlet url [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (908)]: HttpFilterProc check if [/tomcat/isapi_redirect.dll] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (948)]: HttpExtensionProc started [Sat Jun 07 09:18:40 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sat Jun 07 09:18:40 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (983)]: HttpExtensionProc got a worker for name ajp13 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497 seconds [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (642)]: sending to ajp13 #314 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (432)]: Into jk_ws_service_t::start_response [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #747 [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (566)]:
Re: isapi_redirector.dll
That depends on what registry settings you are discussing. As far as I know, Tomcat doesn't use any. Typically, if Tomcat and the web server are on different machines, you just point the web server to the correct IP address instead of localhost. So, in the isapi_redirector.dll configuration, where you see mention of localhost:8009 switch that to your-ip-address:8009. John On Sun, 8 Jun 2003 18:41:01 -0400, Gupta, Ashish (CORP, Consultant) [EMAIL PROTECTED] wrote: Hello All, I was able to find all the correct version of isapi_redirector.dll and the document for configuring tomcat 3.2 with IIS. However, the document does not mention the details of how to configure tomcat and IIS to work with each other if both are on different machines/Servers. The registry setting modifications mentioned in the installation file, do they need to be made in the IIS server or in the Tomcat server. Any help would be appreciated. Thanks, Ashish -Original Message- From: Gupta, Ashish (CORP, Consultant) Sent: Sunday, June 08, 2003 4:19 PM To: [EMAIL PROTECTED] Subject: isapi_redirector.dll Hello All, I am trying to download a copy of isapi_redirector.dll for Tomcat version 3.2. However i am not able to find the same anywhere on the Jakrata tomcat site. If someone is aware of a place where i can find the same, i would appreciate if the same could be passed onto me. I am trying to configure IIS with tomcat so that IIS is able to parse JSP's. IIS and Tomcat are on different servers. Is it necessary to have JDK installed on both the servers or does it suffice to have JDK only on the server in which Tomcat is installed? Is their a configuration document available for Tomcat-IIS-howto for Tomcat version 3.2, the one i have been able to find is for version 3.3. TIA, Ashish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it 's on port 80?
Actually, it does. Other resources: http://www.johnturner.com/howto http://tomcatfaq.sourceforge.net John On Mon, 9 Jun 2003 14:23:28 +0800, Lee Chin Khiong [EMAIL PROTECTED] wrote: But this site doesn't contain any detail configuration. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:57 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: How can I run tomcat on port 8080 and have the users think it's on port 80? Forget mod_rewrite. You just have to use the AJP Connector that is supplied with Tomcat to connect it to Apache and have apache work on port 80. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html Surf about a bit to find the correct version for you if you are not running Tomcat 4.0. If there is something preventing you from using this connector tell the list about it and we'll see what we can do ;-) Enjoy, Andoni. - Original Message - From: Michael Mattox [EMAIL PROTECTED] To: Xavier Ambrosioni [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:34 PM Subject: RE: How can I run tomcat on port 8080 and have the users think it's on port 80? We have this working for incoming requests, the problem we're having is the website uses relative links. Since tomcat is running on port 8080, a relative link has port 8080 in it. Apparently Apache isn't rewriting this before it's sent back to the client, and port 8080 shows up in the client's browser. Is Apache's mod_rewrite supposed to handle this? Perhaps we haven't set it up properly?? Thanks, Michael -Original Message- From: Xavier Ambrosioni [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:17 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How can I run tomcat on port 8080 and have the users think it's on port 80? You can use the mod_rewrite module in apache to rewrite and redirect URL from port 80 to port 8080. With this module, apache can be used as a proxy that only redirect urls to the right port. Xavier [EMAIL PROTECTED] wrote: I'd like to run Tomcat on port 80 but I don't want to run it as root. Is it possible to run it on 8080 yet have the users access it via port 80? My admin has set it up this way but the problem is all relative links in my app show up as :8080. So once the user clicks on a link they see 8080 from then on. Thanks, Michael Mattox -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
You don't exclude, you include. Only send Tomcat the extensions you want it to handle. The rest will not be sent to Tomcat. Typically, that means *.jsp, and servlets, which are typically in their own folder, so /servlet/* or whatever you call it. John On Mon, 9 Jun 2003 11:46:07 +0200, Dominic Parry [EMAIL PROTECTED] wrote: Thanks David Ok. So is there a way to exclude certain extensions. *.html *.jpg, etc. Dom - Original Message - From: David Legg [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:30 AM Subject: RE: TOMCAT IIS and html Hi Dom, It depends how you have configured your connector. If you have set up your workers.properties or workers2.properties file to forward /examples/*.jsp to Tomcat then Tomcat will only see JSP file requests and all the HTML or GIF etc requests will be handled by IIS. If however you put /examples/* in the file then IIS will forward all and every request on to Tomcat for processing and IIS won't handle anything in that directory. David Legg -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 08:11 To: Tomcat Users List Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I get MOD_JK2 - directory is empty
That URL is for JK, not JK2. John On Mon, 9 Jun 2003 12:37:46 +0100, Kevin Passey [EMAIL PROTECTED] wrote: The d/l page is empty - what's wrong?? http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk/release/v1.2.4 /bin/win32/ Regards Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat with apache
Yikes, find a better archive!!! The topic comes up daily. http://tomcatfaq.sourceforge.net/apache.html John On Mon, 9 Jun 2003 11:01:14 +0100, Kevin Passey [EMAIL PROTECTED] wrote: Hi everyone, I have searched thru the archives and cannot find a pointer on this. Can anybody point me to some how-to's on getting the latest version of Tomcat to run with Apache Http. Regards Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help please (Tomcat 4.1.24 and IIS)
[Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Please post your .properties files, without them we can't be much help, it looks like one of them has a munged up URL. John On Mon, 9 Jun 2003 07:47:30 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. When I request a page I get the following message:- HTTP Status 404 - /tomcat/isapi_redirect.dll ___ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings extension_uri - /tomcat/isapi_redirector.dll worker_file - C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file - C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file - C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level - debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) Ive set up the filter in the default web site for tomcat (it has a green arrow) Im running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (829)]: In HttpFilterProc Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (835)]: In HttpFilterProc test Default redirection of /tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (899)]: HttpFilterProc [/tomcat/isapi_redirect.dll] is not a servlet url [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (908)]: HttpFilterProc check if [/tomcat/isapi_redirect.dll] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (948)]: HttpExtensionProc started [Sat Jun 07 09:18:40 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sat Jun 07 09:18:40 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (983)]: HttpExtensionProc got a worker for name ajp13 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497 seconds [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (642)]: sending to ajp13 #314 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 404 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en-US] [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (432)]: Into jk_ws_service_t::start_response [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #747 [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (566)]: Into
RE: Having a problem with IIS and Tomcat 4.1.24 config
Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (829)]: In HttpFilterProc Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (835)]: In HttpFilterProc test Default redirection of /tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (899)]: HttpFilterProc [/tomcat/isapi_redirect.dll] is not a servlet url [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (908)]: HttpFilterProc check if [/tomcat/isapi_redirect.dll] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (948)]: HttpExtensionProc started [Sat Jun 07 09:18:40 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sat Jun 07 09:18:40 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (983)]: HttpExtensionProc got a worker for name ajp13 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497 seconds [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (642)]: sending to ajp13 #314 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (729)]: received from ajp13 #81 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (483)]:
Re: Getting JK2 to work with Apache 2.0.46
Yes, you've got a half and half configuration going there. You're using mod_jk2 but giving it mod_jk instructions in one try, and then using mod_jk but giving it mod_jk2 instructions in the other. You have to pick one or the other and stick with it. Either choose mod_jk or mod_jk2. If you download mod_jk.so-ap2.0.46-rh72 then that is mod_jk.so, and you can't use JkUriSet nor can you load jk2_module. You can use JkMount and load jk_module instead. If you want to use JkUriSet and load jk2_module, you will need mod_jk2.so, not mod_jk.so. http://tomcatfaq.sourceforge.net/apache.html http://www.johnturner.com/howto John On Sat, 7 Jun 2003 18:11:03 -0500, Rick Salsa [EMAIL PROTECTED] wrote: Hi all, I'm trying to get mod_jk2.so working with Apache 2.0.46 on Mandrake Linux. I'm using mod_jk.so-ap2.0.46-rh72 and jk_jnicb.so-rh72 that I grabbed from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.4/bin/linux/. Both of these are installed in apache's modules directory. I've got the following in httpd.conf: LoadModule jk2_module modules/mod_jk2.so When I run apachectl configtest, I get: Syntax error on line 47 of /usr/local/apache/conf/httpd.conf: Can't locate API module structure `jk2_module' in file /usr/local/apache/modules/mod_jk2.so: /usr/local/apache/lib/libapr-0.so.0: undefined symbol: jk2_module If I change jk2_module to jk_module, it doesn't give an error, but when I try to use a JkUriSet, I'll get an error there. Anyone have any ideas? Thanks! /rick -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where do I get MOD_JK2 - directory is empty
Thanks David. It's here now:- http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/bin/win32/ Regards Kevin -Original Message- From: David Legg [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 13:04 To: 'Tomcat Users List' Subject: RE: Where do I get MOD_JK2 - directory is empty I got my copy from : - http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/bin/win32/ David Legg -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 12:38 To: Tomcat (E-mail) Subject: Where do I get MOD_JK2 - directory is empty The d/l page is empty - what's wrong?? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4 /bin/win32/ Regards Kevin - 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: Tomcat 5
Howdy, Tomcat doesn't take into account changes made to jsp. If I delete the So if you just change the JSP, tomcat doesn't re-translate and re-compile? You shouldn't have to touch tomcat's work directory yourself. 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: Having a problem with IIS and Tomcat 4.1.24 config
Thanks. Did you install the filter? AFAIK, this is the best tutorial on Tomcat + IIS: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html John On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (829)]: In HttpFilterProc Virtual Host redirection of /localhost/tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (835)]: In HttpFilterProc test Default redirection of /tomcat/isapi_redirect.dll [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (899)]: HttpFilterProc [/tomcat/isapi_redirect.dll] is not a servlet url [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (908)]: HttpFilterProc check if [/tomcat/isapi_redirect.dll] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (948)]: HttpExtensionProc started [Sat Jun 07 09:18:40 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sat Jun 07 09:18:40 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (983)]: HttpExtensionProc got a worker for name ajp13 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 497 seconds [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (642)]: sending to ajp13 #314 [Sat Jun 07 09:18:40 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sat
JSP
Hi Guys, I have an External Application installed in the tomcat root. 1. Can i access this application from my JSP file? 2. How do I execute this application? Best Regards Anitha
Accessing data files via APPLET tags in JSP pages
Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems making a connector
Hi I'm tring to make a jakarta-connector but when I do the make command it says that I have a problem wih the libtools: libtool: link: `../common/jk_ajp12_worker.lo' is not a valid libtool object But I saw that this libtool isn't my libtools system, is the libtool from my apache server on /opt/apache2/built/libtool I change this libtool by my /usr/bin/libtool and the make did the mod.jk.so ok but now... I have others problems and I don't know if my new problems are from my connector or by others ways... So Can I change the apache's libtool by my system's libtools?? Thanks... - Apache 2.0.46 - Jakarta-tomcat-connectors Jk v1.2.3 - Tomcat 4.0.6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Off Topic: JSP that reads and creates links to file directory
Hi, I have created the jsp (below) that reads and creates links to file directory(intranet, windows nt os). It works in ie to the extent that it will read the file server directory and create the links, but when I follow the link I get an error from the browser (ie) saying the page was not found...Any help would be greatly appreciated! Example of link that calls the jsp: a href=../dirList.jsp?path=//\\corportateFileServer\department\team\communications\status reports\monthlyConsolidatedReporttitle=Team+Monthly+Status+ReportMonthly Report/a !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page import=java.io.* % %@ page import=java.net.* % %@ page import=javax.servlet.* % %@ page import=javax.servlet.ServletException% %@ page import=javax.servlet.http.*% %@ page import=java.util.* % % String path = request.getParameter(path); File file = new File( path ); String title = request.getParameter(title); % html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link href=/xxx/sitestyle/guidestyle.css type=text/css rel=stylesheet script type=text/javascript src=/xxx/scripts/dateScript.js/script title/title /head body style=margin: -1em; background-image: url(/xxx/icons/background.gif); background-repeat: repeat-y; table width=535 border=0 cellspacing=50 cellpadding=0 tr td valign=top width=62% % out.println( div align='center' class='maintitle' + title + /div/brFiles Located at:br + path ); % /td /tr tr td % if( !file.exists() || !file.canRead()){ out.println( Can't Read + file ); return; } if( file.isDirectory()) { String [] files = file.list(); for (int i=0; i files.length; i++) out.println( a href=\file:+path+files[i]+\ + files[i] + /abr); } else try{ FileReader fr = new FileReader (file); BufferedReader in = new BufferedReader( fr ); String line; while ((line = in.readLine()) != null) out.println( line ); } catch ( FileNotFoundException e ){ out.println( File(s) not found ); } % /td /tr /table /body /html _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP
I have an External Application installed in the tomcat root. 1. Can i access this application from my JSP file? Yes. 2. How do I execute this application? Depends on what it is. Most people, I believe, tend to use java.lang.Runtime.exec(). Best Regards Anitha John -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing data files via APPLET tags in JSP pages
man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.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]
Urgent : Can we restrict access to a directory in tomcat
hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran
RE: Off Topic: JSP that reads and creates links to file directory
I'd say that the String path =../dirList.jsp?path=//\\corportateFileServer\department\team\communication s\statusreports\monthlyConsolidatedReporttitle=Team+Monthly+Status+Report isnt a valid file path for File file = new File(path) -Original Message- From: Michele Emmi [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 14:18 To: [EMAIL PROTECTED] Subject: Off Topic: JSP that reads and creates links to file directory Hi, I have created the jsp (below) that reads and creates links to file directory(intranet, windows nt os). It works in ie to the extent that it will read the file server directory and create the links, but when I follow the link I get an error from the browser (ie) saying the page was not found...Any help would be greatly appreciated! Example of link that calls the jsp: a href=../dirList.jsp?path=//\\corportateFileServer\department\team \communications\status reports\monthlyConsolidatedReporttitle=Team+Monthly+Status+Report Monthly Report/a !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page import=java.io.* % %@ page import=java.net.* % %@ page import=javax.servlet.* % %@ page import=javax.servlet.ServletException% %@ page import=javax.servlet.http.*% %@ page import=java.util.* % % String path = request.getParameter(path); File file = new File( path ); String title = request.getParameter(title); % html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link href=/xxx/sitestyle/guidestyle.css type=text/css rel=stylesheet script type=text/javascript src=/xxx/scripts/dateScript.js/script title/title /head body style=margin: -1em; background-image: url(/xxx/icons/background.gif); background-repeat: repeat-y; table width=535 border=0 cellspacing=50 cellpadding=0 tr td valign=top width=62% % out.println( div align='center' class='maintitle' + title + /div/brFiles Located at:br + path ); % /td /tr tr td % if( !file.exists() || !file.canRead()){ out.println( Can't Read + file ); return; } if( file.isDirectory()) { String [] files = file.list(); for (int i=0; i files.length; i++) out.println( a href=\file:+path+files[i]+\ + files[i] + /abr); } else try{ FileReader fr = new FileReader (file); BufferedReader in = new BufferedReader( fr ); String line; while ((line = in.readLine()) != null) out.println( line ); } catch ( FileNotFoundException e ){ out.println( File(s) not found ); } % /td /tr /table /body /html _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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]
java.net.SocketException: Connection reset
Hello, I am getting the java.net.SocketException and my JSP application crashes. I have pasted the exception below. It comes from the catalina sockets engine. Does anyone have an idea where should I go further for fixing this socket problem? My server configuration: Redhat Linux, Tomcat 4.1.24, Java 1.4.1 2003-06-09 12:24:38 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Connection reset at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:160) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Thanks, -- Kaunas Regional Distance Education Center Programmer Phone: +370 674 05232 WWW: http://distance.ktu.lt - To
RE: Urgent : Can we restrict access to a directory in tomcat
Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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: Urgent : Can we restrict access to a directory in tomcat
Store the images in your database then your jsp can retrieve show them. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:44 AM To: Tomcat Users List Subject: RE: Urgent : Can we restrict access to a directory in tomcat Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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: Urgent : Can we restrict access to a directory in tomcat
The other way to do it would be to check the referer page, this seems to be quite a common trick and will confound most people trying to link directly to your images (which is what I imagine you're trying to prevent). There may be a more elegant way of doing it, but you could create a servlet that is mapped to your /images mount point which inspects the referer field in the request and, assuming it is valid, returns the appropriate content from a directory outside of your web application. As all requests would go through the servlet you have access control. Tom Shapira, Yoav wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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: Urgent : Can we restrict access to a directory in tomcat
Unfortunately, this doesn't always work. In the past, I've had problems with IE not sending the Referer header on some requests.shrug/ G. Wade Tom Oinn wrote: The other way to do it would be to check the referer page, this seems to be quite a common trick and will confound most people trying to link directly to your images (which is what I imagine you're trying to prevent). There may be a more elegant way of doing it, but you could create a servlet that is mapped to your /images mount point which inspects the referer field in the request and, assuming it is valid, returns the appropriate content from a directory outside of your web application. As all requests would go through the servlet you have access control. Tom Shapira, Yoav wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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]
Re: Urgent : Can we restrict access to a directory in tomcat
Could you just put all of the images under WEB-INF, and use a special servlet to get them? The source attribute of the IMG tag would be something like /servlet/imgGetter?image=someUniqueKey. The servlet would just retrieve the image from the WEB-INF directory, and spool it out as a stream. I'm not sure on the performance, though. High-traffic might be a problem. John On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat configuring for email
Tomcat has this nice feature called Resource mail/Session. Without this feature, in your code, you get a mail session by: Properties props = new Properties(); props.put(mail.smtp.host, mysmtphost); Session mailsession = Session.getDefaultInstance(props, null); With Tomcat's jndi lookup, you can get session by: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); Session session = (Session) envCtx.lookup(mail/Session); But you still need to setup the sending params, such as Message m = new MimeMessage(session); m.setFrom(sender); m.addRecipient(Message.RecipientType.TO, recipient); m.setSentDate(date); m.setSubject(subject); m.setText(text); Transport.send(m); -Original Message- From: Clement [mailto:[EMAIL PROTECTED] Sent: June 6, 2003 11:30 PM To: Tomcat Users List Subject: Re: Tomcat configuring for email Hello. Sorry for the confusion. What i meant does tomcat have a built in emailing? As u replied there is . But is it on by default? when i try running the example inside , it seems to be a dummy one. What i am trying to do is to mail a user automatically everytime he makes a purchase. inside the default server.xml as shown below, is this the way to enable emailing or is there more to it? Thanks.. Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/computersDB auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/computersDB parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 06, 2003 23:17 Subject: RE: Tomcat configuring for email Don't understand your question. Tomcat has built-in mail session jndi lookup. You can use it in your program. Is that what you want? -Original Message- From: Clement [mailto:[EMAIL PROTECTED] Sent: June 6, 2003 2:53 AM To: Tomcat Users List Subject: Tomcat configuring for email Hello... I would like to check with for emailing purposes.. how do i enable tomcat to send an email to a user? Can version 4.01 do this or do u need a newer version? ? Thanks.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clear user session
Is this a re-post? I saw some pal posted a very good explaination why you cann't do it. Are you not reading those posts?. My suggestion is to use session.removeAttribute(attr_name) or simply set those attributes to null. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: June 6, 2003 2:40 PM To: Tomcat Users List Subject: Clear user session Hi All, I just moved my webapp from jrun to tomcat. I have a method which clears the user session. The code snippet is Enumeration session_var = session.getAttributeNames(); while(session_var.hasMoreElements()) { String key=(String)session_var.nextElement(); I am getting an error here and the exception is java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry How can I resolve this error. Thanks a lot in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: re. to Thomas.Rimmele( I used param tag just as u said)
Don't forget to call super.init() first. -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 5:43 AM To: [EMAIL PROTECTED] Subject: re. to Thomas.Rimmele( I used param tag just as u said) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: having problem with getInitParameter() Date: Sat, 7 Jun 2003 18:03:08 +0200 Hy, I think your forgot the init-param-tag Greethings, Thomas servlet servlet-name xxx /servlet-name servlet-class yyy /servlet-class init-param param-namekey/param-name param-valuevalue/param-value /init-param /servlet -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: Samstag, 7. Juni 2003 17:41 To: [EMAIL PROTECTED] Subject: having problem with getInitParameter() Hi, I m having problem with the the get InitParameter method of ServletConfig class, I m adding tags as following in both tomcat_home/conf/web.xml and /tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working servlet ... ... param-namepname/param-name param-valuepvalue/param-value /servlet _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Q:How to prevent Directory listing in Tomcat?
Having gone thru the source code, I figured out that this init param will only work with DefaultServlet. I wish we could have something similar to apache's per-directory disable/enable. -Original Message- From: David Legg [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 5:50 AM To: 'Tomcat Users List' Subject: RE: Newbie Q:How to prevent Directory listing in Tomcat? Hi Bob, In version 4.x Tomcat look for the file TOMCAT_HOME/conf/web.xml This file sets all the default web application settings. Look for the tag sequence: - param-namelistings/param-name And change the param-value tag below it from 'true' (the default setting) to false. Hope that helps. David Legg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 00:02 To: [EMAIL PROTECTED] Subject: Newbie Q:How to prevent Directory listing in Tomcat? How can I prevent a client from listing the contents of my web appl. directories without having to put an 'index.html' in the base of each directory? Thanks. Bob. P.s.: I can find any solution(s) in the Tomcat-user archive: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat does not release connections
I do it in my init servlet's destroy method. When I start my application, I use an init Servlet to initialize logger, connection pool etc. When Tomcat is shutting down, it automatically executes my init servlet's destroy method where I close the connection pool. -Original Message- From: Vijay Pawar [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 7:56 AM To: [EMAIL PROTECTED] Subject: tomcat does not release connections Hi All, i have a small query, am using dbcp for connection pooling and am opening 3 connection to the database and having 1 connection as idle. now..when i restart the tomcat container , sometime it does not release the 3 connections ( this is when i check it using the query select count(SADDR) from v$session where username='ACBD' and machine='lmpx00028' ) can something be done in the conf files for tomcat so that the container releases all the connections when it is restarted Cheers Vijay Pawar - On behalf of Amit J Malhotra (RIL.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent : Can we restrict access to a directory in tomcat
On Mon, 9 Jun 2003 21:52, John Turner wrote: Could you just put all of the images under WEB-INF, and use a special servlet to get them? The source attribute of the IMG tag would be something like /servlet/imgGetter?image=someUniqueKey. The servlet would just retrieve the image from the WEB-INF directory, and spool it out as a stream. That is the way I would do it and I've just done something similar but with PHP instead... Basically you store the images either outside the document root ie. in WEB-INF for Tomcat or if using Apache you can use a .htaccess to deny from all instead, then you have your usual security framework within your web app and only allow authorised users to see the images. Although once you have served that image there is nothing you can do to stop people from using it, I wouldn't even waste your time looking at Javascript to block right clicks or anything like that, a quick disable of javascript gets around that one... Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: check for session
Hey Jim, I saw this and it intrigued me. Documentum is a document management system. I'm curious about how you are using struts with it?? Do you mind sharing briefly? -Brian -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:14 AM To: 'Tomcat Users List' Subject: RE: check for session Hi Mark, I use Documentum and struts and had something similar to what you now have with a Filter determining if a user has a dmSession. I found however that on a number of occasions when the filter was checking for dmSession it was returning null (even though I knew it had previously been created) and the app was recreating the session and saving it. I have now removed the filter and written a custom tag that checks for the existence of the dmSession and if it does not exist creates it, if there is a problem creating the dmSession the user is redirected to an error page. Regards Jim. -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 19:42 To: Tomcat Users List Subject: Re: check for session Thanks, worked like a charm, never used that before, very nice. The filtering mechanism though makes me wish I'd set up the app directory structure differently but you know hindsight 20/20 and all that... -Mark Shapira, Yoav wrote: | Howdy, | Consider using a Filter as follows: | | public void doFilter(...) { | if(request instanceof HttpServletRequest) { | HttpSession theSession = ((HttpServletRequest) | request).getSession(); | if(theSession.getAttribute(dmSession) == null) { | // Redirect to login page, print out error message, whatever | } | } | | // Pass the request on | chain.doFilter(request, response); | } | | Map this filter to whatever you need authenticated (/* is one | possibility). | | Yoav Shapira | Millennium ChemInformatics | | || -Original Message- || From: Mark F [mailto:[EMAIL PROTECTED] || Sent: Friday, June 06, 2003 12:16 PM || To: Tomcat Users List || Subject: check for session || || We use a content management system (documentum) it operates much || like a database as far as authentication. I save a documentum || session object into my httpSession as dmSession upon successful || logon. I want to check for the existence of this session on every || page after the logon page, or if there is an easier way please let || me know? || || Any help would really be appreciated. || || Thanks, || -Mark | | | | 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] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - 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: Urgent : Can we restrict access to a directory in tomcat
I don't know why this would be any slower than tomcat itself? Tomcat serves images by loading them as a stream from the default servlet and returns them to the browser. It all depends on how you implement this. It very well could be faster than Tomcat itself since a servlet dedicated to serving images might be even faster than a Tomcat's default servlet which must take care of serving all kinds of files and, therefore, probably has more overhead. Jake At 09:52 AM 6/9/2003 -0400, you wrote: Could you just put all of the images under WEB-INF, and use a special servlet to get them? The source attribute of the IMG tag would be something like /servlet/imgGetter?image=someUniqueKey. The servlet would just retrieve the image from the WEB-INF directory, and spool it out as a stream. I'm not sure on the performance, though. High-traffic might be a problem. John On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: re. to Thomas.Rimmele( I used param tag just as u said)
First, I think you mean super.init(config) and second, there is no need for that if you call the init() method rather than init(ServletConfig config). See the javadoc... quote public void init() throws ServletException A convenience method which can be overridden so that there's no need to call super.init(config). Instead of overriding init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via getServletConfig(). /quote Jake At 08:58 AM 6/9/2003 -0400, you wrote: Don't forget to call super.init() first. -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 5:43 AM To: [EMAIL PROTECTED] Subject: re. to Thomas.Rimmele( I used param tag just as u said) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: having problem with getInitParameter() Date: Sat, 7 Jun 2003 18:03:08 +0200 Hy, I think your forgot the init-param-tag Greethings, Thomas servlet servlet-name xxx /servlet-name servlet-class yyy /servlet-class init-param param-namekey/param-name param-valuevalue/param-value /init-param /servlet -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: Samstag, 7. Juni 2003 17:41 To: [EMAIL PROTECTED] Subject: having problem with getInitParameter() Hi, I m having problem with the the get InitParameter method of ServletConfig class, I m adding tags as following in both tomcat_home/conf/web.xml and /tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working servlet ... ... param-namepname/param-name param-valuepvalue/param-value /servlet _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent : Can we restrict access to a directory in tomcat
Not to mention spoofing. John On Mon, 09 Jun 2003 08:50:50 -0500, G. Wade Johnson [EMAIL PROTECTED] wrote: Unfortunately, this doesn't always work. In the past, I've had problems with IE not sending the Referer header on some requests.shrug/ G. Wade Tom Oinn wrote: The other way to do it would be to check the referer page, this seems to be quite a common trick and will confound most people trying to link directly to your images (which is what I imagine you're trying to prevent). There may be a more elegant way of doing it, but you could create a servlet that is mapped to your /images mount point which inspects the referer field in the request and, assuming it is valid, returns the appropriate content from a directory outside of your web application. As all requests would go through the servlet you have access control. Tom Shapira, Yoav wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent : Can we restrict access to a directory in tomcat
Very possible, I was just acknowledging my lack of experience in being able to judge whether it was a good design overall or not...it would certainly accomplish the protect images requirement, but I wasn't sure about any others. John On Mon, 09 Jun 2003 09:12:49 -0500, Jacob Kjome [EMAIL PROTECTED] wrote: I don't know why this would be any slower than tomcat itself? Tomcat serves images by loading them as a stream from the default servlet and returns them to the browser. It all depends on how you implement this. It very well could be faster than Tomcat itself since a servlet dedicated to serving images might be even faster than a Tomcat's default servlet which must take care of serving all kinds of files and, therefore, probably has more overhead. Jake At 09:52 AM 6/9/2003 -0400, you wrote: Could you just put all of the images under WEB-INF, and use a special servlet to get them? The source attribute of the IMG tag would be something like /servlet/imgGetter?image=someUniqueKey. The servlet would just retrieve the image from the WEB-INF directory, and spool it out as a stream. I'm not sure on the performance, though. High-traffic might be a problem. John On Mon, 9 Jun 2003 09:43:48 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have img tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL or you embed it in one of your pages. Would something like using a mangled images directory name ($KF_%# or something) be sufficient? A name that's hard for users to guess and use directly? Yoav Shapira Millennium ChemInformatics -Original Message- From: Syed Nayyer Kamran [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: Urgent : Can we restrict access to a directory in tomcat hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: check for session
Hi Brian, I mainly develop Web apps that are front ends to Documentum and all the apps I write are JSP/Servlet based apps and I use the Struts framework to help build these apps. I use struts to help with the apps flow control and mapping logic and the custom tags that it provides to help with forms and display. All Documentum specific code is wrapped in beans that my Action classes call. If you require any more specific details please let me know. Regards Jim. -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 15:11 To: Tomcat Users List Subject: RE: check for session Hey Jim, I saw this and it intrigued me. Documentum is a document management system. I'm curious about how you are using struts with it?? Do you mind sharing briefly? -Brian -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:14 AM To: 'Tomcat Users List' Subject: RE: check for session Hi Mark, I use Documentum and struts and had something similar to what you now have with a Filter determining if a user has a dmSession. I found however that on a number of occasions when the filter was checking for dmSession it was returning null (even though I knew it had previously been created) and the app was recreating the session and saving it. I have now removed the filter and written a custom tag that checks for the existence of the dmSession and if it does not exist creates it, if there is a problem creating the dmSession the user is redirected to an error page. Regards Jim. -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 19:42 To: Tomcat Users List Subject: Re: check for session Thanks, worked like a charm, never used that before, very nice. The filtering mechanism though makes me wish I'd set up the app directory structure differently but you know hindsight 20/20 and all that... -Mark Shapira, Yoav wrote: | Howdy, | Consider using a Filter as follows: | | public void doFilter(...) { | if(request instanceof HttpServletRequest) { | HttpSession theSession = ((HttpServletRequest) | request).getSession(); | if(theSession.getAttribute(dmSession) == null) { | // Redirect to login page, print out error message, whatever | } | } | | // Pass the request on | chain.doFilter(request, response); | } | | Map this filter to whatever you need authenticated (/* is one | possibility). | | Yoav Shapira | Millennium ChemInformatics | | || -Original Message- || From: Mark F [mailto:[EMAIL PROTECTED] || Sent: Friday, June 06, 2003 12:16 PM || To: Tomcat Users List || Subject: check for session || || We use a content management system (documentum) it operates much || like a database as far as authentication. I save a documentum || session object into my httpSession as dmSession upon successful || logon. I want to check for the existence of this session on every || page after the logon page, or if there is an easier way please let || me know? || || Any help would really be appreciated. || || Thanks, || -Mark | | | | 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] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange.
Hyperthreading and performance
I realise that this is slightly a JVM dependant question but doe anyone have any views on using Hyperthreading on Xeon processors and whether it will affect performance or not? As far as I can ascertain, hyperthreading essentially splits the processor into two threads internally which appear to the OS as two processors (so on a dual system you get four). This allows for performance equivalent of a dual processor system when you only have one proc, etc etc. Will this help or hinder Tomcat? Ive heard many people saying essentially it's better left turned off unless you have a very specific application that might use it (eg Photoshop), but with Tomcat being multi-threaded I cant see why it wouldnt benefit. Anyone know anything a bit more definative (currently Im using Sun's 141_01 and 02 JVM in production). thanks Pete Kiss Technologies http://www.kisstechnologies.co.uk/ Please note, we have moved! 4, Percy Street London W1T 1DF New permanent phone numbers: Phone 020 7692 9922 Fax 020 7692 9923
RE: Hyperthreading and performance
Howdy, I haven't gotten around to benchmarking this, although I'm curious. It's not as much a tomcat issue as it is a general JVM performance one. Would you be able to benchmark your system with and without hyperthreading, and hopefully sharing the results with the list? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: Hyperthreading and performance I realise that this is slightly a JVM dependant question but doe anyone have any views on using Hyperthreading on Xeon processors and whether it will affect performance or not? As far as I can ascertain, hyperthreading essentially splits the processor into two threads internally which appear to the OS as two processors (so on a dual system you get four). This allows for performance equivalent of a dual processor system when you only have one proc, etc etc. Will this help or hinder Tomcat? Ive heard many people saying essentially it's better left turned off unless you have a very specific application that might use it (eg Photoshop), but with Tomcat being multi-threaded I cant see why it wouldnt benefit. Anyone know anything a bit more definative (currently Im using Sun's 141_01 and 02 JVM in production). thanks Pete Kiss Technologies http://www.kisstechnologies.co.uk/ Please note, we have moved! 4, Percy Street London W1T 1DF New permanent phone numbers: Phone 020 7692 9922 Fax 020 7692 9923 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: Having a problem with IIS and Tomcat 4.1.24 config
Yes I did install the filter and it does have the green arrow. This as the log file, mod_jk_iis.log when I start IIS [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5 [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was added [jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp13 was added [jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 5 rules [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (425)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:00 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Thanks. Did you install the filter? AFAIK, this is the best tutorial on Tomcat + IIS: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html John On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [Sat Jun 07 09:18:40 2003] [jk_isapi_plugin.c (766)]: HttpFilterProc started [Sat Jun 07 09:18:40 2003]
RE: clustering
I knew that, but the original message was so ambiguous about what exactly they were running, I thought a little clarity of terminology would help; blame my philosophy degree *grin*. I did not mean it in a condescending way. Ben Ricker Wellinx.com On Fri, 2003-06-06 at 16:17, Filip Hanik wrote: you are correct of course with the terminology, how ever in the lazy days of today's IT, you say that you cluster your tomcat servers when you enable session replication. :) Filip -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 11:00 AM To: Tomcat Users List Subject: Re: clustering You seem to be confused (or maybe it is me). You are not doing clustering. You are trying to do session replication across Tomcats. If you are not using something like Apache in the front, how will the user ever know to switch from 8000 to 8001? They will never know. Clustering is a totally different thing where you utilize special hardware and software to slave multiple servers into one virtual server which share processing among the CPUs on the servers. it is basically Multi-Processing across servers. Ben Ricker Wellinx.com On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote: I'm trying to run multiple instances of tomcat on a single machine listening on different ports. Something to the effect of: http://localhost:8000 http://localhost:8001 I've modified the server.xml file, placed the javagroups.jar and tomcat-javagroups.jar in the server/lib directory, and implement java.io.serializable. Unfortunately, its not working as I hoped. Once I have a logged in session, I'm hoping to be able to simply switch port(8000 - 8001) and have it be seemless to the user. Any idea on what the problem could be? AB - 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]
Why does Oracle in JSP uses multiple ports.
My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Oracle SID. Here's part of the log from their Check Point firewall (before they opened up these other ports): service sqlnet2-1521 is port 1521 service WebServer is port 40147 Number DateTimeAction Service Source Destination Protocol 454885Jun2003 8:30:17 Accept sqlnet2-1521WebServer synapse.berlinind tcp 454895Jun2003 8:30:17 DropSynapseWeb WebServer synapse.berlinind tcp 457085Jun2003 8:31:50 DropSynapseWeb WebServer synapse.berlinind tcp Every SQL request sent through one 1521 which was accepted, and 2 40147s which were dropped. Can anyone explain this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent: Strange Exception in my jsp file
Hi gurus, help me to solve this strange problem at my project. The rodrigo2.jsp file ( CODE BELOW ) runs fine in JDeveloper but returns an strange exception in TomCat 4.1.18. This jsp app creates a reference to a java bean, named DICA, which is instanced by an previous servlet. What does this message mean? Should i configure anything else in my TomCat? Thanks in advance, Euclides. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /rodrigo2.jsp Generated servlet error: [javac] Compiling 1 source file C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:54: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp Dica dica = null; ^ An error occurred at line: 12 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:56: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp dica = (Dica) pageContext.getAttribute(dica, PageContext.PAGE_SCOPE); ^ An error occurred at line: 12 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:59: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp dica = (Dica) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Dica); ^ An error occurred at line: 44 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:100: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp dica = (Dica)pega.next(); ^ An error occurred at line: 45 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:105: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute(dica )).getNM_DICA(; ^ An error occurred at line: 47 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:111: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute(dica )).getTE_DESCRICAO_DICA(; ^ An error occurred at line: 48 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:114: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute(dica )).getTE_BENEFICIO(; ^ An error occurred at line: 49 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:117: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute(dica )).getTE_CONTEXTUALIZACAO(; ^ An error occurred at line: 50 in the jsp file: /rodrigo2.jsp Generated servlet error: C:\jakarta-tomcat-4.1.18\work\Standalone\wtrjo210\_\rodrigo2_jsp.java:122: cannot resolve symbol symbol : class Dica location: class org.apache.jsp.rodrigo2_jsp out.print(JspRuntimeLibrary.toStringDica)pageContext.findAttribute(dica )).getNM_AUTOR(; ^ 9 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at
Re: Why does Oracle in JSP uses multiple ports.
I have just learned that the thin driver uses 1521 to begin the conversation. But that is just a handshake. The handshake then says - Let's finish the rest of our work on another higher port where the higher port is a range of ports. So you need a whole range of ports open. :( -Tim Brad Rhoads wrote: My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Oracle SID. Here's part of the log from their Check Point firewall (before they opened up these other ports): service sqlnet2-1521 is port 1521 service WebServer is port 40147 Number DateTimeAction Service Source Destination Protocol 454885Jun2003 8:30:17 Accept sqlnet2-1521WebServer synapse.berlinind tcp 454895Jun2003 8:30:17 DropSynapseWeb WebServer synapse.berlinind tcp 457085Jun2003 8:31:50 DropSynapseWeb WebServer synapse.berlinind tcp Every SQL request sent through one 1521 which was accepted, and 2 40147s which were dropped. Can anyone explain this? - 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: Servlets not working in my context: SOLVED
Hi All. I finally got it. I was using Oracle 9i Tomcat on port 8080. Oracle 9i installs a service on Port 8080. This causes the logon popup. You either have to change tomcats port or disable the oracle feature. I changed Tomcat port to 80. Does anyone know how to disable or change oracle from port 8080? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2003 11:45 AM To: Tomcat Users List Subject: Re: Servlets not working in my context No, sorry. XP Home is a whole other animal...it's not designed or configured by default to run any sort of network services whatsoever. XP Pro is different in its default configuration. I've only used XP Home enough to understand that my needs require XP Pro if they require Microsoft at all. John On Wed, 21 May 2003 09:40:52 -0400, Schwartz, David (CHR) [EMAIL PROTECTED] wrote: Funny thing is that I cant find the usual windows permission settings. When I right click on the tomcat folder the sharing tab advises to put the folder in the shared docs folder - but no actual permission settings. any ideas? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2003 8:31 AM To: Tomcat Users List Subject: Re: Servlets not working in my context You're getting the username/password prompt because the permissions/security on that folder are munged up. This is a Windows XP Home thing, not a Tomcat thing. I would just give all access to everyone on that folder. John On Wed, 21 May 2003 07:52:02 -0400, Schwartz, David (CHR) [EMAIL PROTECTED] wrote: I installed TomCat 4.1.8 on Windows XP Home. A username/password box pops up when trying to acess the doc root. What is the default account? Also, why am I getting this on xp not nt? Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2003 1:20 PM To: Tomcat Users List Subject: RE: Servlets not working in my context Howdy, Should I be creating an entry for each ( every) servlet or is there a way to make one entry for a classes folder? (if that's not against best practices) No such shortcut exists in the servlet specification. You have to make an entry for every servlet that's linked to (either by the user/external agent or by your own pages), which is pretty much every servlet. 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
JNDI datasource non available in ServletContextListener.contextInitialized
Hi you all, I'm trying to build application wide variable from a ServletContextListener under Tomcat 4.1.24. Some of the variables are built with data read from a database. I've been able to successfully define the JNDI datasources and to list them in the contextInitialized method but I needed to try many possible combinations (see later) to succesfully perform the lookup in the contextInitialized call: it seems like if Tomcat doesn't make the JNDI completely available during the initialization sequence of the web application: infact the following behaviour is applicable to an init method of a servlet loaded at start-up. I would like to share this experience and to ask for help, if I'm doing something wrong. There is only a way I've managed to get the result (to be able to estabilish a connection using a DataSource retrieved from a JDNI lookup): - declare the use of the resource in web.xml - define the resource in server.xml (this is a little 'limitating' for me) - deploy the applications in unpacked format (i.e. not from a war file: this is quite limiting, however) I want to list othe options I've tried (sarting from an 'empty' webapps directory) without success: - stop tomcat, copy theApplication.war and theApplication.xml in CATALINA_HOME/webapps: theApplication.xml contains the context configuration, start tomcat - deploy theApplication.war with a META-INF/theApplication.xml in it: The stack traces look like this: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:189) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:834) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) at it.masterhouse.termopoli.web.startup.Init.contextInitialized(Init.java:37) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3598) at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:629) Any feedback would be appreciate Thank you very much Federico Spinazzi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Changing Oracle ports (was: Re: Servlets not working in my context: SOLVED)
On Mon, 9 Jun 2003 23:05, Schwartz, David (CHR) wrote: Oracle 9i installs a service on Port 8080. This causes the logon popup. You either have to change tomcats port or disable the oracle feature. I changed Tomcat port to 80. Does anyone know how to disable or change oracle from port 8080? From memory Oracle uses JServ for something or other not sure what exactly but have a look in something like ORA_HOME/Apache/Jserv or just poke around your ORA_HOME a bit for the right configuration file, maybe just do a search for 8080. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why does Oracle in JSP uses multiple ports.
I originally thought that was the exact issue. If you look at the listener.log, the new port# is random. In fact even the rang of numbers appears to be different on our different servers. In spite of this, we're getting ports 33047 40147 consistantly; it appears to be somehow be a function of the sid. We have restarted Tomcat many times now and everything is working OK. I guess we should restart the box and see if it still works. Any other ideas or explanations? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:01 AM To: Tomcat Users List Subject: Re: Why does Oracle in JSP uses multiple ports. I have just learned that the thin driver uses 1521 to begin the conversation. But that is just a handshake. The handshake then says - Let's finish the rest of our work on another higher port where the higher port is a range of ports. So you need a whole range of ports open. :( -Tim Brad Rhoads wrote: My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Oracle SID. Here's part of the log from their Check Point firewall (before they opened up these other ports): service sqlnet2-1521 is port 1521 service WebServer is port 40147 NumberDateTimeAction Service Source Destination Protocol 45488 5Jun2003 8:30:17 Accept sqlnet2-1521WebServer synapse.berlinind tcp 45489 5Jun2003 8:30:17 DropSynapseWeb WebServer synapse.berlinind tcp 45708 5Jun2003 8:31:50 DropSynapseWeb WebServer synapse.berlinind tcp Every SQL request sent through one 1521 which was accepted, and 2 40147s which were dropped. Can anyone explain this? - 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: JNDI datasource non available in ServletContextListener.contextInitialized
- define the resource in server.xml (this is a little 'limitating' for me) - deploy the applications in unpacked format (i.e. not from a war file: this is quite limiting, however) Yep, not good to stick them in server.xml. Your application.xml file containing your resources should be in the webapps/ directory along with your packed or unpacked application You can then access your resources using: snip jndiContext.lookup(java:comp/env/resource name); Is this what you are doing? Are you using the correct Context (java:comp/env)? Cheers, james - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assessing Tomcat's State
Thanks for the link. I didn't know about Nagios; it seems like a pretty useful tool. I'll have to take for a spin. About the Tomcat state issue, I actually got them resolved. I basically followed Tim Funk's tips (see prior posts). I modified some C code to get the UNIX PIDs straight from the kernel and handle the polling for the shutting down state, and also found some nice URL classes within the Cocoa frameworks (Objective-C on Mac OS X) to handle the polling for the starting up state. I'm a happy camper. -FB On Sunday, June 8, 2003, at 07:10 PM, Yoav Shapira wrote: Howdy, I use nagios for this: www.nagios.org. Yoav Shapira = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.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: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized
James Lewis wrote: - define the resource in server.xml (this is a little 'limitating' for me) - deploy the applications in unpacked format (i.e. not from a war file: this is quite limiting, however) Yep, not good to stick them in server.xml. Your application.xml file containing your resources should be in the webapps/ directory along with your packed or unpacked application You can then access your resources using: snip jndiContext.lookup(java:comp/env/resource name); Is this what you are doing? Are you using the correct Context (java:comp/env)? Yes, and this is my trouble: when the application is running I can always perform such a lookup successfully, but when I try from a ContextListener contextInitialized method it fails: the same code WILL NOT FAIL contextDestroyed !!! I experience the same failure from the init method of a servlet Thanks. Federico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does Oracle in JSP uses multiple ports.
Check out this newsgroup post, seems to explain it pretty well: http://tinyurl.com/dujx Regards, -- Jason Bainbridge http://jblinux.org On Mon, 9 Jun 2003 23:17, Brad Rhoads wrote: I originally thought that was the exact issue. If you look at the listener.log, the new port# is random. In fact even the rang of numbers appears to be different on our different servers. In spite of this, we're getting ports 33047 40147 consistantly; it appears to be somehow be a function of the sid. We have restarted Tomcat many times now and everything is working OK. I guess we should restart the box and see if it still works. Any other ideas or explanations? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:01 AM To: Tomcat Users List Subject: Re: Why does Oracle in JSP uses multiple ports. -- Jason Bainbridge http://jblinux.org I have just learned that the thin driver uses 1521 to begin the conversation. But that is just a handshake. The handshake then says - Let's finish the rest of our work on another higher port where the higher port is a range of ports. So you need a whole range of ports open. :( -Tim Brad Rhoads wrote: My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Oracle SID. Here's part of the log from their Check Point firewall (before they opened up these other ports): service sqlnet2-1521 is port 1521 service WebServer is port 40147 Number DateTimeAction Service Source Destination Protocol 454885Jun2003 8:30:17 Accept sqlnet2-1521WebServer synapse.berlinind tcp 454895Jun2003 8:30:17 DropSynapseWeb WebServer synapse.berlinind tcp 457085Jun2003 8:31:50 DropSynapseWeb WebServer synapse.berlinind tcp Every SQL request sent through one 1521 which was accepted, and 2 40147s which were dropped. Can anyone explain this? - 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: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized
always perform such a lookup successfully, but when I try from a ContextListener contextInitialized method it fails: the same code WILL NOT FAIL contextDestroyed !!! Hmmm, odd. This is *exactly* what I do pretty much. I have a LifeCycleListener specified in the webapps/app/WEB-INF/web.xml like this: listener listener-classmy.foo.bar.package.LifeCycleListener/listener-class /listener and then in the contextInitialized method of the LifeCycleListener I do a bunch of calls to jndiContext.lookup(). Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why does Oracle in JSP uses multiple ports.
There was a config option to stop this and make oracle just use 1521 that I used a couple years back for this very purpose... Here's a discussion about how the problem and how to get oracle to just use a single port: http://www.stunnel.org/examples/oracle.html -gabe -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:01 AM To: Tomcat Users List Subject: Re: Why does Oracle in JSP uses multiple ports. I have just learned that the thin driver uses 1521 to begin the conversation. But that is just a handshake. The handshake then says - Let's finish the rest of our work on another higher port where the higher port is a range of ports. So you need a whole range of ports open. :( -Tim Brad Rhoads wrote: My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Oracle SID. Here's part of the log from their Check Point firewall (before they opened up these other ports): service sqlnet2-1521 is port 1521 service WebServer is port 40147 NumberDateTimeAction Service Source Destination Protocol 45488 5Jun2003 8:30:17 Accept sqlnet2-1521WebServer synapse.berlinind tcp 45489 5Jun2003 8:30:17 DropSynapseWeb WebServer synapse.berlinind tcp 45708 5Jun2003 8:31:50 DropSynapseWeb WebServer synapse.berlinind tcp Every SQL request sent through one 1521 which was accepted, and 2 40147s which were dropped. Can anyone explain this? - 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: JSTL and EL question - SOLVED
Hi David. This method works great. Thanks Is there any downside to using it? Is it still considered standard? -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:21 AM To: Tomcat Users List Subject: RE: JSTL and EL question - SOLVED The setup can be a little simpler than this. The taglib jar can contain the TLD for the taglib in the META-INF directory of the jar. If it is present there, you do not have to deploy the TLD separately. In addition, if the TLD is present there, you do not have to have the explicit taglib map in your web.xml file. In this case, your taglib directive in the JSP page needs to specify the URI that is specified in the TLD in the taglib jar file, which is hopefully documented in the taglib documentation (so you don't have to open the file in the jar file). If this is done correctly, you can skip steps 2 and 3 of this process. -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:21 PM To: Tomcat Users List Subject: Re: JSTL and EL question - SOLVED I thought I liked the idea of having the taglib in the web.xml file. When I try it I'm getting This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application. Do I have to download it somewhere in order to use it in the web.xml file? Any ideas? :-) OK, four things when dealing with ANY tag library: 1. PLACE JAR FILES Place JAR files that hold implementation of the tag library in a directory where Tomcat will pick it up. Either make it WEB-INF/lib/ (private) or ${CATALINA_HOME}/shared/lib (all web-apps will have access to it). You could place it in ${CATALINA_HOME}/common/lib, but I don't see the point in Tomcat having access to those JARs. There was a discussion recently naming pros/cons of each choice (Craig), so look up the archives. 2. PLACE TLD Place TLD files (Tag Library Descriptor) in either WEB-INF/ or (if I recall correctly) WEB-INF/taglibs/. The first placement will require for location in web.xml file to be absolute: /WEB-INF/name.tld, while the second will allow for relative links: name.tld 3. DECLARE TLD IN WEB.XML This part you've already seen. taglib taglib-urihttp://java.sun.com/jstl/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib 4. DECLARE TLD USAGE IN JSP This you've seen %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % The prefix is up to you. Nix. - 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]
Servlet thread safety
This may be an obvious question, but is there any guarantee one way or the other about whether there is a separate servlet object for each concurrent request. In other words, is there any chance that instance data would be shared between two requests? If so, are we guaranteed if the instance data will always be shared between two requests. I didn't see any, but I may just have missed it. G. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a problem with IIS and Tomcat 4.1.24 config
Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out with nitty gritty stuff. Hopefully someone else has more insight. John On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Yes I did install the filter and it does have the green arrow. This as the log file, mod_jk_iis.log when I start IIS [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5 [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was added [jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp13 was added [jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 5 rules [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (425)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:00 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Thanks. Did you install the filter? AFAIK, this is the best tutorial on Tomcat + IIS: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html John On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I make the request for http://localhost/examples/jsp/index.html [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp13 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html]
Re: Having a problem with IIS and Tomcat 4.1.24 config
you need to specify your uri's in workers.properties - Original Message - From: John Turner To: Tomcat Users List Sent: Monday, June 09, 2003 6:13 PM Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out with nitty gritty stuff. Hopefully someone else has more insight. John On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Yes I did install the filter and it does have the green arrow. This as the log file, mod_jk_iis.log when I start IIS [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5 [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was added [jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp13 was added [jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 5 rules [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (425)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:00 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Thanks. Did you install the filter? AFAIK, this is the best tutorial on Tomcat + IIS: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html John On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I
how to unsubscribe - tried twice!
I tried twice, with the subject line: [EMAIL PROTECTED], on Friday, and I'm still receiving the emails. I even received a confirmation that I'd been unsubscribed. Has anybody else experienced this? Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a problem with IIS and Tomcat 4.1.24 config
I'm pretty sure Jeffrey did...at least as far as I can tell. Do you have some examples of the correct way? John On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry [EMAIL PROTECTED] wrote: you need to specify your uri's in workers.properties - Original Message - From: John Turner To: Tomcat Users List Sent: Monday, June 09, 2003 6:13 PM Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out with nitty gritty stuff. Hopefully someone else has more insight. John On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Yes I did install the filter and it does have the green arrow. This as the log file, mod_jk_iis.log when I start IIS [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 5 [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was added [jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp13 was added [jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp13 was added [jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 5 rules [jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [jk_ajp13_worker.c (711)]: Into ajp23_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [jk_ajp13_worker.c (386)]: Into jk_worker_t::validate [jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [jk_ajp13_worker.c (425)]: Into jk_worker_t::init [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:00 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Thanks. Did you install the filter? AFAIK, this is the best tutorial on Tomcat + IIS: http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html John On Mon, 9 Jun 2003 08:42:40 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: Thanks for the help. There is the information request My worker.propqerties file is: - worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my uriworkermap.properties file is:- /servlet/*=ajp13 /examples/*=ajp13 /examples/*.jsp=ajp13 /examples/servlet/*=ajp13 /admin/*=ajp13 Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config I don't use IIS, but: [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/tomcat/isapi_redirect.dll' [Sat Jun 07 09:18:40 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Looks to me like one of your properties files has a munged up URL path. You'll have to post them for us to know more. John On Sat, 7 Jun 2003 09:24:03 -0400, Jeffrey Cummings [EMAIL PROTECTED] wrote: I am trying to setup tomcat 4.1.24 with IIS. I get the following message HTTP Status 404 - /tomcat/isapi_redirect.dll _ type Status report message /tomcat/isapi_redirect.dll description The requested resource (/tomcat/isapi_redirect.dll) is not available. _ Apache Tomcat/4.1.24 My registry settings Name Data extension_uri /tomcat/isapi_redirector.dll worker_file C:\Jakarta-4.1.24\conf\workers.properties worker_mount_file C:\Jakarta-4.1.24\conf\uriworkermap.properties log_file C:\Jakarta-4.1.24\logs\mod_jk_iis.log log_level debug I have a virtual directory tomcat - C:\Jakarta-4.1.24\conf (isapi_redirector.dll is in the conf directory) I've set up the filter in the default web site for tomcat ( it has a green arrow) I'm running XP (this is where I test then move to Win2K) By the way, http://localhost:8080/examples/jsp/index.html works fine Here is the isapi log when I
RE: Servlet thread safety
Howdy, You didn't miss it. No such guarantee exists for normal servlets. See the javax.servlet.SingleThreadModel interface for one approach to this issue. However, many people will tell you to avoid SingleThreadModel for various reasons. I tend to agree. The design and implementation of your servlets should not depend on the synchronization of their service methods by the container. If you have shared resources put them in objects (often singletons) outside the servlets. Yoav Shapira Millennium ChemInformatics -Original Message- From: G. Wade Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:08 PM To: Tomcat Users List Subject: Servlet thread safety This may be an obvious question, but is there any guarantee one way or the other about whether there is a separate servlet object for each concurrent request. In other words, is there any chance that instance data would be shared between two requests? If so, are we guaranteed if the instance data will always be shared between two requests. I didn't see any, but I may just have missed it. G. Wade - 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: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized
Howdy, FYI, I do the same thing: JNDI calls from a ServletContextListener's contextInitialized() event -- no problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: James Lewis [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:43 AM To: Tomcat Users List Subject: RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized always perform such a lookup successfully, but when I try from a ContextListener contextInitialized method it fails: the same code WILL NOT FAIL contextDestroyed !!! Hmmm, odd. This is *exactly* what I do pretty much. I have a LifeCycleListener specified in the webapps/app/WEB-INF/web.xml like this: listener listener-classmy.foo.bar.package.LifeCycleListener/listener- class /listener and then in the contextInitialized method of the LifeCycleListener I do a bunch of calls to jndiContext.lookup(). Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml? - 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: how to unsubscribe - tried twice!
I have as well...anyone have any ideas?? Dan LeBaron, CSSA Ingenuit Technologies, Inc Complete Business Technology Solutions P 503.267.4089 F 888.861.9051 www.ingenuittechnologies.com [EMAIL PROTECTED] -Original Message- From: Keith Adams [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: how to unsubscribe - tried twice! I tried twice, with the subject line: [EMAIL PROTECTED], on Friday, and I'm still receiving the emails. I even received a confirmation that I'd been unsubscribed. Has anybody else experienced this? Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet thread safety
How about the flip side? Is instance data guaranteed separate for each request? I Have some code that relies on instance data and I just had the horrible realization that I have assumed that no two concurrent requests will be talking to the same object. Thanks again, G. Wade Shapira, Yoav wrote: Howdy, You didn't miss it. No such guarantee exists for normal servlets. See the javax.servlet.SingleThreadModel interface for one approach to this issue. However, many people will tell you to avoid SingleThreadModel for various reasons. I tend to agree. The design and implementation of your servlets should not depend on the synchronization of their service methods by the container. If you have shared resources put them in objects (often singletons) outside the servlets. Yoav Shapira Millennium ChemInformatics -Original Message- From: G. Wade Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:08 PM To: Tomcat Users List Subject: Servlet thread safety This may be an obvious question, but is there any guarantee one way or the other about whether there is a separate servlet object for each concurrent request. In other words, is there any chance that instance data would be shared between two requests? If so, are we guaranteed if the instance data will always be shared between two requests. I didn't see any, but I may just have missed it. G. Wade - 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]
RE: how to unsubscribe - tried twice!
Have you tried sending an email to the following address... [EMAIL PROTECTED] org Maybe the address you are sending from is not the one you subscribed with? It may take a few hours to have any effect. David Legg -Original Message- From: Tomcat User [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 17:37 To: 'Tomcat Users List' Subject: RE: how to unsubscribe - tried twice! I have as well...anyone have any ideas?? Dan LeBaron, CSSA Ingenuit Technologies, Inc Complete Business Technology Solutions P 503.267.4089 F 888.861.9051 www.ingenuittechnologies.com [EMAIL PROTECTED] -Original Message- From: Keith Adams [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 8:25 AM To: Tomcat Users List Subject: how to unsubscribe - tried twice! I tried twice, with the subject line: [EMAIL PROTECTED], on Friday, and I'm still receiving the emails. I even received a confirmation that I'd been unsubscribed. Has anybody else experienced this? Keith - 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: Servlet thread safety
No. Concurrent requests will most likely be be processed by the same instance of your Servlet class, however it is not guarantted. -Original Message- From: G. Wade Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:43 AM To: Tomcat Users List Subject: Re: Servlet thread safety How about the flip side? Is instance data guaranteed separate for each request? I Have some code that relies on instance data and I just had the horrible realization that I have assumed that no two concurrent requests will be talking to the same object. Thanks again, G. Wade Shapira, Yoav wrote: Howdy, You didn't miss it. No such guarantee exists for normal servlets. See the javax.servlet.SingleThreadModel interface for one approach to this issue. However, many people will tell you to avoid SingleThreadModel for various reasons. I tend to agree. The design and implementation of your servlets should not depend on the synchronization of their service methods by the container. If you have shared resources put them in objects (often singletons) outside the servlets. Yoav Shapira Millennium ChemInformatics -Original Message- From: G. Wade Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:08 PM To: Tomcat Users List Subject: Servlet thread safety This may be an obvious question, but is there any guarantee one way or the other about whether there is a separate servlet object for each concurrent request. In other words, is there any chance that instance data would be shared between two requests? If so, are we guaranteed if the instance data will always be shared between two requests. I didn't see any, but I may just have missed it. G. Wade - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
basic authentication error page
Can i define the error page for the basic authentication? amd if yes, where? i have tried to define error-page for code 401, but realized that i am using constraint on everything , thus i am guessing that error page may be falling under the constraint as well. (not sure about that though..) Thus, how can i modify HTTP Status 401 - Unauthorized to be what i want it to be? PS. i am trying to define security constraint in conf/web.xml for every context I've tried to look for the solution on the web, but didn't have any luck. Any help is greatly appreciated. Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]