connect tomcat and apache by mod_jk2

2010-01-06 Thread WILLIAMer
Hi, ALL. I have connect tomcat and apache by mod_jk2 at the same machine(solaris). I can see the application page with http://localhost:4080/ or http://localhost/ by apache. Now, i need to move tomcat to another machine in LAN. So i change the workers2.properties setting like under ---original(

Re: tomcat & url rewrite

2009-09-28 Thread WILLIAMer
to Christopher Schultz-2: I try to rewrite some relative path to absolute path for CSS and image. And it work!!! So i think i find the solution for this. The "/" char will not let me get error, just check the relative path. Thanks for your help! -- View this message in context: http://www.nab

Re: tomcat & url rewrite

2009-09-17 Thread WILLIAMer
Hi, Christopher Schultz-2 If you always start your URLs with a '/', then you shouldn't have a problem. Could you explain this Sentence to me? In my jsp, i write a href="./item_.html" . Now, i need to change this link path to absolute path, right? Thanks for your help. -- View this message in

Re: tomcat & url rewrite

2009-09-16 Thread WILLIAMer
Hi, Christopher Schultz-2 Let me say sorry for i didnt description the error. The error like the path is mapping incorrectly. So the image or css are not display because of the path not find. A part of my application structure like under /tomcat/webapps/myApp/images

Re: tomcat & url rewrite

2009-09-15 Thread WILLIAMer
Hi, Christopher Schultz-2 There is no error with url rewrite. For item "pd1234", The url would be http://myDomain/item_pd1234.html and its fine. For item "pd12/34" The url would be http://myDomain/item_pd12/34.html and got error. Because tomcat seems there is a directory named item_pd12under my a

Re: tomcat & url rewrite

2009-09-14 Thread WILLIAMer
To Christopher Schultz-2, See my previous post, i have used urlrewrite( http://tuckey.org/urlrewrite/ http://tuckey.org/urlrewrite/ ) I already write the rule in rewrite.xml for /item_123.html to /getItemPage?itemname=123 I got the problem if the item name(from database) have "/" char, the full

Re: tomcat & url rewrite

2009-09-14 Thread WILLIAMer
I use http://tuckey.org/urlrewrite/ url rewriter filter for doing url rewrite. And i write the rule in urlrewrite.xml. My rule like under /item_(.*).html /getItemPage?itemName=$1 If there is a url like /item_xxx.html, the url rewriter filter will redirect to /getItemPage.action?itemNa

Re: tomcat & url rewrite

2009-09-13 Thread WILLIAMer
I think look up the url in database is not a Immediately way to me. Because most of item not have the "/" char in name. My original url would like http://myDomain/getItemPage?itemName=xxx After the url rewrite rule, url become http://myDomain/item_xxx.html If the item name like "abc/def", http

Re: tomcat & url rewrite

2009-09-11 Thread WILLIAMer
Thanks for replies. To awarnier: Change the item name will lost the SEO for this item. To Pid-6: It is dynamic page and item data are from database. I use url rewrite for looking like static page. So the tomcat is right. I must think another way. Thanks all. -- View this message in context:

tomcat & url rewrite

2009-09-10 Thread WILLIAMer
I get a problem with the URL. My application has url rewrite for SEO. I use this format http://mydomain/item.html for display. There is an error that if the item name like LF/123, then the url become http://mydomain/LF/123.html. Because of the name include "/" character. I got the error like tomc

Set application default

2008-11-02 Thread WILLIAMer
Hi all! I wanna make my application as default(ROOT). My application name is "Com" under the webapps directory. The application url is http://MyDomain/Com . I want to change the url to http://MyDomain/ . I add in server.xml. Restart tomcat and it work. Now this application is under Solaris mach

Re: tomcat with jcaptcha

2008-07-08 Thread WILLIAMer
Thanks Johnny, and Sammer reply me by e-mail :) I think move the data under eCom to ROOT directory and delete the eCom directory is a way to help me work out this. Likes Johnny says, if i set the eCom default, there are two directories - eCom and ROOT. I think i understand why the session differe

RE: tomcat with jcaptcha

2008-07-08 Thread WILLIAMer
Thanks for reply ,Sameer :) for me, webapps | - eCom - Admin - Login.jsp - Account - *.jsp eCom is a webapps and Admin is a directory under eCom , right? I just strange why i set the eCom default apps(it means root dir/path), the sessions are different between eCom and Admin.

RE: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
MY webapps tree: eCom-Admin -Login.jsp -Account - some .jsp -Other directory I think Admin and eCom are not two webapps And Admin is not a webapps deployed inside eCom, right? Caldarale, Charles R wrote: > >> From:

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
Thanks for replies :) Sorry, my english is hard to read! I google for how to set the "apps" to default(ROOT) though chinese keywords, there are kinds of lists. However, i read different version have different approach. I try some and get useful with add one line code that i wrote that post befor

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
I think i find why the sessions are different. The Login.jsp i put in eCom/Admin/. for example: link "http://myDomain/";, the session is "A", link "http://myDomain/Admin/";, the session is "B", link "http://myDomain/eCom/Admin/, ths session is "B", link "http://myDomain/eCom/";, the session is "B

Re: tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
Sorry my english is poor. I use the version 5.5.20. and i add one line like under let the "eCom" becomes root in tomcat/conf/server.xml "" before tag markt-2 wrote: > > WILLIAMer wrote: >> Sorry i forget to write down the environment. >> The applicatio

RE: tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
I trace the jcaptcha code. Jcaptcha set a parameter name "captchaId" in session when this servlet use(when link to login.page). And when user submit the form.Its will get "captchaId" from session. Then compare the two "captchaId". So i system out the "captchaId", and see whats wrong. when i link

RE: tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
Sorry i forget to write down the environment. The application used by tomcat version 5.5 and LINUX. Caldarale, Charles R wrote: > >> From: WILLIAMer [mailto:[EMAIL PROTECTED] >> Subject: tomcat with jcaptcha >> >> I have an application named "eCom"

tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
Hi! all, I have an application named "eCom" unnder the tomcat/webapps and using jcatpcha with the login page. I set the eCom becomes the root dir(path) with the server.xml. So, http://myDomain/ will equal http://myDomain/eCom/. And its seems ok and work with every page. But there is an error when