Re: Same .war handling more Context Path
Thank you for your answer. The problem is that the underlying technology i'm using (Struts2) doesn't make this very simple to handle in the folloowing url generation tasks. On Sat, May 7, 2011 at 2:32 PM, Ognjen Blagojevic wrote: > GF, > > On 7.5.2011 10:41, GF wrote: >> >> Is there some alternative way? I have the underlying .war written in >> struts2 and it's context-path indipendent, so the best choice for me >> would be to place the "language" information in the context-path >> section of the url. > > I use one webapp at ROOT context which handles all languages. > Urlrewritefilter changes URLs from /en/something/123 into > /something.jsf?id=123&lang=en, and then one JSF phase listener checks for > "lang" request parameter and sets the appropriate language for the > framework. > > YMMV. > > Regards, > Ognjen > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Same .war handling more Context Path
Hello, the only way i found to handle with a single .war more than one context path is the following in the server.xml But this cause myApp being "loaded" TWICE (or many times if i wish to handle many languages, it, en, fr, and so) Is there some alternative way? I have the underlying .war written in struts2 and it's context-path indipendent, so the best choice for me would be to place the "language" information in the context-path section of the url. Thank you - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Discover the Datasource connection pool maxSize.
Hello. i've not access to Tomcat's server.xml where the sysadmins defined a resource: I wish to discover from a web appplication deployed on that Tomcat what's the configuration "maxActive" for myDatasource. Is there a way to discover it? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tutorial: Load Balancing Tomcat with Apache
Thank You for feedback. The answers: 1) I'll add that note. You're right, It's important. 2) Usually, I keep the main ServerRoot of Apache Httpd just as a "dummy" website, and even if I have just one website to setup, I always create a virtual host (for example on Debian, using the symbolic linking to unable/disable virtual hosts, it's so easy to switch them on or off and I love this feature :-) On Mon, Feb 16, 2009 at 11:19 PM, Ben Stringer wrote: > Hi, > > Nice work on the tutorial. I have some feedback. > > 1) I would mention the version of the httpd and tomcat that you are using. > For instance, the load balancing mechanism you are using in httpd is only > supported by Apache Httpd 2.2 > > 2) I don't see why you need to create a virtual host in httpd, unless you > are using the same httpdto host other sites. Otherwise, this just > complicates the httpd configuration. > > Cheers, Ben > >> Hello everyone >> I wrote a tutorial about load balancing Tomcat with Apache Proxy Module. >> >> This is the url: >> http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ >> Any feedback will be really appreciated. >> >> Thank You. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tutorial: Load Balancing Tomcat with Apache
Hello everyone I wrote a tutorial about load balancing Tomcat with Apache Proxy Module. This is the url: http://www.zulutown.com/blog/2009/02/16/java-ee-load-balancing-with-tomcat-and-apache/ Any feedback will be really appreciated. Thank You. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: handle with a single .war all the request to N subdomains
Thank you! for you quick reply! My problem is a little different, in few words, i'm still at the previous step, i'm trying to find a way to that all the requests to: *.myhost.com/myapp/ can be handled by a single war. So first of all i'm looking if Tomcat handle in someway the wildcard for sudomains.. I have found something here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg23452.html But i've still to search :-) On Wed, Mar 5, 2008 at 9:59 PM, Gregory Gerard <[EMAIL PROTECTED]> wrote: > Look at the Host header to see how the browser addressed your > webserver and then you can specialize your output. > > theHostString = theHttpServletRequest.getHeader("Host"); > > if (theHostString != null && theHostString.trim().length > ) { > if (theHostString.startsWith("sub1.")) { > doSub1Content(...); > } else if (...) { > } else { > // unknown subdomain > sendDefaultContent(...); > } > } else { > // someone possible spoofing the host header or HTTP 1.0 which I > don't believe had the host header > sendDefaultContent(...); > } > > greg > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
handle with a single .war all the request to N subdomains
Hello, I have a web application that runs on: www.myhost.com/myapp/ I would like that the deploy a single .war can handle all the requests such as: sub1.myhost.com/myapp/ sub2.myhost.com/myapp/ sub3.myhost.com/myapp/ And of course i want to receive the parameter on which subdomains the request has been executed. Is it possible? Have you any good link about this? This can be done at Tomcat level.. or should I handle it with mod_rewrite in Apache and then passing the request to a single path of Tomcat using mod_jk? Thank you! - 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: secure JSessionID
> I believe if your session starts through HTTPS, the cookie will be > marked as secure and it won't be sent if the user switches to non-secure > HTTP. Maybe my question is stupid, but, is it possible to browse a site on HTTP and having just the JSESSIONID cookie sent on HTTPS to prevent session stealing? And if possible i would like to set up it... on apache, mod_jk and tomcat 6. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
secure JSessionID
Hello, can you give me a link about setting up a secure JSessionID cookie? I mean to let it pass over HTTPS and not HTTP. Thank you. - 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: default 500 error page by tomcat
Thanks. It's what I was looking for. > It isn't a JSP. It is generated by an internal Tomcat component (a Valve). > > > Where can I find its source? > http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/valves/ErrorReportValve.java?revision=543307&view=markup > > HTH, > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
default 500 error page by tomcat
Hello, when some of my Java application raises an uncatched exception, I got a "error 500" page generated by Tomcat that show me exception stacktrace and things like that. I know that i can customize it setting error-page parameter in the web.xml. But I want to know where to find the "source code" of that error 500 page that tomcat automatically generates. I think that's too a .jsp page. Where can I find its source? 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: Port in address to tomcat webpage?
when you go on normal websites, you are using port 80. look for 8080 in your server.xml and change it to 80 bye On Nov 20, 2007 3:14 PM, jdpl <[EMAIL PROTECTED]> wrote: > > Hi, > > how come when I'm accessing a page on my local apache, i always have to put > in the port number, e.g: > > http://localhost:8080/somepage > > but when i'm accessing a remote website, i never put in the port number. Is > there anyway I can configure my tomcat to not use the port number? > > thanks, > J > -- > View this message in context: > http://www.nabble.com/Port-in-address-to-tomcat-webpage--tf4843728.html#a13857675 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > 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]