Re: Creating /WEB-INF folders for virtualhosts

2006-08-20 Thread John Hinton
Edoardo Causarano wrote: The host appbase attribute specifies the directory where the wars (exploded or left intact) are stored and is not a documentroot in the apache httpd sense. The latter would be the ROOT.war webapp to which root relative paths unmatched by any other war prefix resolve.

Re: Parsing keyvalue pairs in POST data

2006-08-20 Thread Santosh Puranshettiwar
Nope. No such attribute in the . Would any default value take effect then? If so what is it? Anything nearby 2016? Thanks, Santosh. Mark Thomas wrote: Santosh Puranshettiwar wrote: Well, there's another problem. HttpServletRequest.getParameter() is unable to parse the key-value pairs in th

Re: Parsing keyvalue pairs in POST data

2006-08-20 Thread Santosh Puranshettiwar
Thanks alot for your reply Martin. Its just a simple setup. I am using Tomcat 4.1 listening on port 80 (OS: Windows - if that matters). Its not coupled with Apache. Why would the same data when sent from a browser would parse well while not from a J2ME application? I'm baffled. Santosh. Mar

Context and web.xml

2006-08-20 Thread MC Moisei
Hi, I'm using tomcat for dev. My question is for a dev environment. I have context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there a way to specify what's the web.xml tomcat should use ? I use tomcat for dev but I target Weblogic for production and such feature would be quite

Re: JkMount and Context path

2006-08-20 Thread Mark Thomas
Evan J wrote: > conf/enginename/vh.host.com/myapp.xml: > >docBase="/myapp"...> Ahh. Light dawns. It wasn't clear (to me at least) that you were using a context.xml file. I had assumed you were specifying the context inside server.xml. Using the configuration above the path will be

Re: JkMount and Context path

2006-08-20 Thread Evan J
Ok, that's what I had expected, http://vh.host.com/someuri/eservlets/myservlet, but in reality, such URL would produce HTTP 400 which has been puzzling me and I had assumed I had some misunderstanding of something. But the weird thing is http://vh.host.com/myapp/eservlets/myservlet works flawlessl

Re: JkMount and Context path

2006-08-20 Thread Mark Thomas
Evan J wrote: > Yes, I understand that perfectly. What I am asking is what if we > include a web application Context path, that is path="someuri"...>. Of course, JkMount /*/eservlet/* would relay all > the request with mywebapp/eservlet/* from Apache to Tomcat -- I am > aware of that. Now if we se

Re: JkMount and Context path

2006-08-20 Thread Evan J
Yes, I understand that perfectly. What I am asking is what if we include a web application Context path, that is . Of course, JkMount /*/eservlet/* would relay all the request with mywebapp/eservlet/* from Apache to Tomcat -- I am aware of that. Now if we set , what is going to happen to our URI?

Re: how to use the mod_jk2?

2006-08-20 Thread Dhaval Patel
Hi, If you are using Apache 2.0.x, then and then only mod_jk or mod_jk2 will help you. If you are using Apache 2.2.x, use mod_proxy_ajp. For mod_jk configuration, look at following two links: (1) Simple configuration - http://www.howtoforge.com/apache2_tomcat5_mod_jk_integration (2) Advanc

Re: Valve && Connectors && Request-Objects

2006-08-20 Thread Martin Gainty
I believe you will have to acquire the ServletInfo from the (Action)servlet itself as in the example.. ServletInfo info = cyR.getRequestProcessor().servlet.getServletInfo(); In your Valve class: public void invoke(request,response,valveContext) throws IOException,ServletException { //main proce

Re: JkMount and Context path

2006-08-20 Thread Martin Gainty
Why are you mixing up Apache and Tomcat? If you are speaking of AJP 'context' term if you look at the doc you will see JkMount [URL prefix] [Worker name] /*where URL prefix is the context*/ JkMount /*/esrvlt/* worker1 Send all requests of whateverWebApp/eservlet/WhateverFileName to worker1 so in

Re: how to use the mod_jk2?

2006-08-20 Thread Steve R Burrus
Okay you are right. So how do I go about setting up the mod_jk to be the connector between Tomcat and the Apache HTTP Server anyway? Mark Thomas wrote: Steve R Burrus wrote: hi I have ocassionally gotten/obtained the Apache http server to supposedly use with tomcat. I say "supposedly" beca

Re: do I need Apache httpd?

2006-08-20 Thread Andrew Miehs
No you do not need Apache, unless your static content is MUCH greater than your dynamic content - And even then, with a low volume site, it really doesnt make any difference Regards Andrew Nolan Johnson wrote: I've got a webapp that's entirely dynamic. That is, all of the content is produ

Re: Valve && Connectors && Request-Objects

2006-08-20 Thread Alexander Lazic
On Sam 19.08.2006 21:40, Alexander Lazic wrote: I have seen a in 4.1.32 connectors/coyote/src/java/org/apache/coyote/RequestInfo.java which have the infos but when i try to use this i get this error: With help from Mark Thomas i have know a working CoyoteConnector, thanks you Mark ;-). But ko

Re: how to use the mod_jk2?

2006-08-20 Thread Mark Thomas
Steve R Burrus wrote: > hi I have ocassionally gotten/obtained the Apache http server to > supposedly use with tomcat. I say "supposedly" because I have never been > able to even start to connect the 2 servers thru the mod_jk2! Can > someone please "walk me" through the whole procedure for doing th

AspectJ with Tomcat

2006-08-20 Thread jeusdi
Hello, I'm using AspectJ capabilities on my web application on Eclipse. I want to add logging functionality. Concretelly, I've created a ControllerServlet that receive all user requests and I want write or log this user actions in my log file. So, I've added a aspect that does it: package com.

how to use the mod_jk2?

2006-08-20 Thread Steve R Burrus
hi I have ocassionally gotten/obtained the Apache http server to supposedly use with tomcat. I say "supposedly" because I have never been able to even start to connect the 2 servers thru the mod_jk2! Can someone please "walk me" through the whole procedure for doing this? Much thanx to anyone w

Re: JkMount and Context path

2006-08-20 Thread Evan J
Martin, I have the documents and I'm aware the difinition of Context path and from what you have posted, it says, "It is matched against the requesting URI." Now, my question was having Context path set, what would the appropriate URI in case that the system utilizes Apache and jk_mod in which Jk

MySQL + Tomcat + Linux: charset encoding stops working

2006-08-20 Thread Pedretti Livio [compile.it]
Some posted something about this but nobody posted something like a solution :( The problem: Running heavy webApp that reads data form MySQL and outputs XML to a XSL transformer, everything works fine at first. After a non- definable time, even without any load to the webserver, it starts faili

Re: JkMount and Context path

2006-08-20 Thread Martin Gainty
#path is the context path of the webapp which is matched against the requesting URI to choose appropriate webapp to process (all paths must be unique) #docBase maps the urlPath to physical docBase (which can either be absolute path or relative to webapps) #embedding context elements within serve