tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory
Date Tue, 04 May 2010 16:36:19 GMT
On 04/05/2010 17:32, Joe Hansen wrote:
> Hey all,
> 
> We are using Tomcat 6 on a Windows XP box. We have a web application
> named abc. It was initially in the c:\Tomcat\webapps directory. I then
> moved the c:\Tomcat\webapps\abc directory to c:\Tomcat\abc. I then
> changed the Tomcat/conf/server.xml file to reflect this change...
> 	  <Host name="abc.local" appBase="abc"
> 			unpackWARs="true" autoDeploy="true"
> 			xmlValidation="false" xmlNamespaceAware="false">
> 			<Context path="" docBase="">
> 				<ResourceLink global="jdbc/MySqlDatabase"
> name="jdbc/MySqlDatabase" type="javax.sql.DataSource" />
> 			</Context>
> 	  </Host>
> 
> Though the web application itself works fine, the web application
> logging no longer works after this change! How do I get the log4j
> logging to work again? Please advice!

Put the web application back where it belongs. docBase==appBase is *not*
a valid configuration. As you have seen, things break if you do that.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message