Re: I'm desparate with an Apache problem and ReverseProxy
On Thu, Nov 22, 2007 at 05:24:03PM +0100, Rainer Jung wrote: Christoph P. Kukulies wrote: Thanks for the replies. I managed it finally with ProxyPass and ProxyPassReverse What has caused all the headache was the fact that the backend server (application server that ran the forum) had a html meta refresh tag in it's /index.html and that did not get translated by the proxypass directives. I don't know whether this is normal behaviour or a bug. Rewriting of answers if ProxyPassReverse. But this only handles explicit redirects, not those embedded in the content via meta tags. There is also a directive to rewrite cookies. In case you need to rewrite parts of the response bodies, you can google for mod_proxy_html, which is a module produced by one of the httpd committers (Nick Kew). The task of rewriting parts of the response body is more complicated though, from a configuration point of view, but also from a resource point of view (CPU). Regards, Rainer Thanks, Rainer, in the end I used mod_proxy_html also for other purposes (to make the forum on the application server work at all). -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax/mail/address
agreed ..Diagnostic tools are a good ideaAlso if you determine you're using too many threads take a look at implementing ThreadPools which allows you to configure min_spare_threads, max_threads and max_spare_threads/ connector http://marc.info/?l=tomcat-userm=103598932529887w=2 HTH/Martin__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: javax/mail/address Date: Fri, 23 Nov 2007 13:08:18 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Thanks for the suggestion, I'll get this running this afternoon and see what I can find. -dustin -Original Message- From: Katilie, John [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:58 AM To: Tomcat Users List Subject: RE: javax/mail/address I know this may be a little out of context but have you tried using JCONSOLE to monitor Tomcat? It's a nice little GUI and can easily show you the threads, the stack trace and Locking conditions. I'm no expert, I just started using it in the last week or so. It's pretty easy to set up to monitor a JVM like Tomcat when JCONSOLE and TOMCAT are running on the same machine. That is how I've been using it. There is a little more to set up if JCONSOLE and TOMCAT are on different machine which I have not tried yet. Just a thought, sorry if I'm out of line. Note: JCONSOLE is part of the JVM so no additional product needs to be installed or purchased. Jfk. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:13 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/addressFinalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) The above is the normal state for the Finalizer thread, so it's not your problem. You'll see several (possibly many) threads in a WAITING condition, which usually just means they're ready to accept work from some other thread. You'll need to look at the others. Comparison with a thread dump from a normally running Tomcat instance may be of some help. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Put your friends on the big screen with Windows Vista® + Windows Live™. http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007
alias for directory
Hello into one apache http server i can to map one directory to oen alias can i make it into tomcat? i only uses into this server tomcat without apache thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: alias for directory
From Apache httpd.conf Directory information such as location and permissions are configured via the Directory directive http://httpd.apache.org/docs/1.3/mod/core.html#directoryMartin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: alias for directory Date: Sat, 24 Nov 2007 18:56:28 +0100 Hello into one apache http server i can to map one directory to oen alias can i make it into tomcat? i only uses into this server tomcat without apache thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Your smile counts. The more smiles you share, the more we donate. Join in. www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
RE: Tomcat 6 virtual host problem please help
If you were using apache infront of tomcat you can use the proxy to do this for you I think ProxyPass / ajp13://localhost:8009/app/ any requests for '/' go to '/app/' on tomcat David, I'm experimenting Apache2.2+mod_proxy_* in front of Tomcat5.5. I have simply put: ProxyPass /blog/ http://localhost:8081/roller/blog/ ProxyPassReverse /blog/ http://localhost:8081/roller/blog/ And this finally works!! Great! But a new problem has raised... When I access to http://www.example.com/blog and I click on a link inside the page, I get error of 'document not found'. Infact, every link on the page is relative to the web app (http://localhost:8081/roller/). I can't believe that roller developers have used absolute path ;-) so I think is a problem bound to reverse proxy configuration.. What it can be? rocsca Not necessarily. And even the app name can be avoid in a URL Path? Yes, but look below to understand precisily what I really want. I have an application, say 'app'. I access it trhough: http://www.example.com/app I have a valid URL: http://www.example.com/app/foo I would like to know if it possible to create a shortcut to this latest URL like: http://foo.example.com or http://www.example.com/foo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 virtual host problem please help
add another CNAME (Canonical Name) for http://foo.example.comhttp://httpd.apache.org/docs/1.3/vhosts/examples.html#purename Martin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. If you were using apache infront of tomcat you can use the proxy to do this for you I think ProxyPass / ajp13://localhost:8009/app/ any requests for '/' go to '/app/' on tomcat David, I'm experimenting Apache2.2+mod_proxy_* in front of Tomcat5.5. I have simply put: ProxyPass /blog/ http://localhost:8081/roller/blog/ ProxyPassReverse /blog/ http://localhost:8081/roller/blog/ And this finally works!! Great! But a new problem has raised... When I access to http://www.example.com/blog and I click on a link inside the page, I get error of 'document not found'. Infact, every link on the page is relative to the web app (http://localhost:8081/roller/). I can't believe that roller developers have used absolute path ;-) so I think is a problem bound to reverse proxy configuration.. What it can be? rocsca Not necessarily.And even the app name can be avoid in a URL Path? Yes, but look below to understand precisily what I really want. I have an application, say 'app'. I access it trhough: http://www.example.com/app I have a valid URL: http://www.example.com/app/foo I would like to know if it possible to create a shortcut to this latest URL like: http://foo.example.com or http://www.example.com/foo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Your smile counts. The more smiles you share, the more we donate. Join in. www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
Problem calling a servlet
Hi, I have a servlet defined in web.xml and this is how I defined it servlet servlet-namecontrollerServlet/servlet-name servlet-class tests.servlets.ControllerServlet /servlet-class /servlet servlet-mapping servlet-namecontrollerServlet/servlet-name url-pattern/control/url-pattern /servlet-mapping I am trying to call this servlet from a JSP page using HTML form. form name=form1 method=post action=../control /form The above form call works but why should I give ../control? And this is relative path to the context. It never works if I give control. I have not enabled invoker servlet in conf/web.xml. Am I missing any setting? I am using Tomcat 5.0.28 Thanks Uma - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem calling a servlet
You have to look at it from the client side since that's where the path to the resource is constructed. If you'd like the more stable server relative path to a form, then do this in your jsp: form name=form1 method=post action=${request.contextPath}/control form body .. /form ${request.contextPath} returns the server relative path of your webapp and you can tack on any webapp relative path you need. --David Uma Kalluru wrote: Hi, I have a servlet defined in web.xml and this is how I defined it servlet servlet-namecontrollerServlet/servlet-name servlet-class tests.servlets.ControllerServlet /servlet-class /servlet servlet-mapping servlet-namecontrollerServlet/servlet-name url-pattern/control/url-pattern /servlet-mapping I am trying to call this servlet from a JSP page using HTML form. form name=form1 method=post action=../control /form The above form call works but why should I give ../control? And this is relative path to the context. It never works if I give control. I have not enabled invoker servlet in conf/web.xml. Am I missing any setting? I am using Tomcat 5.0.28 Thanks Uma - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multithreaded with taglibs
Let say that the tag will have to generate the image with a text given as an attribute, and it takes time so I want the page to continue: my:img src=file text=first/ . my:img src=file text=first/ -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 6:08 PM To: Tomcat Users List Subject: Re: multithreaded with taglibs Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right place? Example: my:img name=/ . my:img name=/ And let say that each my:img is supposed to download the image and save it locally or something like that, and I don't want tomcat to wait till the first tag is finished. Thanks Yair Ben-Meir Office: 073-7997801 Fax: 073-7997800 Mob: 054-5769681 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]