tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Local webapp config for remote deployment?
Date Mon, 17 Jun 2002 19:02:28 GMT
Hello Peter,

You have no appBase attribute on your <context> element.  You need to
point that to your deployed directory or .war file.

Jake

Monday, June 17, 2002, 1:46:04 PM, you wrote:

PJ> I seem to recall that remotely-deployed web apps can be configured locally 
PJ> starting in the Servlet 2.3 spec.  (Unfortunately I can't find chapter and 
PJ> verse at the moment.)  The gist is that a config fragment is placed in the 
PJ> webapps directory with the same basename as the path, and this would be used 
PJ> as well as/instead of the .war's embedded web.xml.  In fact, I can see this 
PJ> being done for the "manager" webapp, which is locally configured in 
PJ> ${CATALINA_HOME}/webapps/manager.xml.

PJ> I'd like to be able to do this with my own application, but haven't had any 
PJ> luck.  I'm trying to add an init parameter, "foo", and redirect the app's 
PJ> log messages to its own file.  Presuming the path is "/MyApp", I have the 
PJ> following config fragment in ${CATALINA_HOME}/webapps/MyApp.xml.

PJ> <Context path="/MyApp" debug="1" cookies="false" override="true">
PJ>          <Parameter name="foo" value="bar" override="true"/>
PJ>          <Valve className="org.apache.catalina.valves.AccessLogValve"
PJ>                  prefix="MyApp." suffix=".log" pattern="common"/>
PJ> </Context>

PJ> I've tried turning debug on and off, setting override to true and false (is 
PJ> it just me, or does the double-negative in the deployment descriptor 
PJ> documentation confuse anyone else), and enabling various combinations of the 
PJ> Parameter and Valve elements, and completely restarting the server, all with 
PJ> no luck.

PJ> It seems unlikely, but do I need to create a ServletContextListener or 
PJ> ServletContextAttributeListener to pick up the extra init parameters?

PJ> Is there (hopefully) some fundamental step I've missed?

PJ> Thanks,
PJ> Peter J.



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message