You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by fritzdimmel <fr...@siemens.com> on 2009/08/10 07:17:42 UTC

RE: Change the deployment path to another name than the .WARs name + WAR specific Classpath

Hi,
Thanks a lot! This was the solution to my problem.

I've another questions regarding WAR-specific configuration:
Is it possible to:
-) configure CLASSPATH extensions to single WAR files (maybe directly in
this config file (cont/Catalina/<hostname>/<myApp>.xml))
-) do configuration settings to override configs defined in the WAR without
modifying content in the extracted WAR?

Thanks a lot for answers!

Fritz
-- 
View this message in context: http://www.nabble.com/Change-the-deployment-path-to-another-name-than-the-.WARs-name-tp24862853p24894458.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

Posted by fritzdimmel <fr...@siemens.com>.
Hi,
I tried it with VirtualWebappLoader -- but failed (like others too):
See here:
http://www.nabble.com/Exception-when-deploying-with-VirtualWebappLoader-tc19858032.html

Any hint?

Thanks,
Fritz



markt-2 wrote:
> 
> fritzdimmel wrote:
>> Sorry,
>> I wasn't clear enough:
>> 
>> I'd like to have a per-webapp classpath addition.
>> I want to have my .properties file outside the WAR. To get this, it would
>> be
>> great to have the location of my properties file in the classpath. 
>> As I understand, in the <contextpath>.xml I can't override properties
>> from a
>> .properties file...
> 
> The best you could do is place the properties in catalina.properties and
> use ${propname} in your context.xml. Beyond that, you'd need to write
> some custom code.
> 
> Another option - try searching the archives for virtual classloader. I
> have vague recollections of some code being posted (and committed to
> trunk?) that might help.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Change-the-deployment-path-to-another-name-than-the-.WARs-name-tp24862853p24897456.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

Posted by Mark Thomas <ma...@apache.org>.
fritzdimmel wrote:
> Sorry,
> I wasn't clear enough:
> 
> I'd like to have a per-webapp classpath addition.
> I want to have my .properties file outside the WAR. To get this, it would be
> great to have the location of my properties file in the classpath. 
> As I understand, in the <contextpath>.xml I can't override properties from a
> .properties file...

The best you could do is place the properties in catalina.properties and
use ${propname} in your context.xml. Beyond that, you'd need to write
some custom code.

Another option - try searching the archives for virtual classloader. I
have vague recollections of some code being posted (and committed to
trunk?) that might help.

Mark



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


Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

Posted by fritzdimmel <fr...@siemens.com>.
Sorry,
I wasn't clear enough:

I'd like to have a per-webapp classpath addition.
I want to have my .properties file outside the WAR. To get this, it would be
great to have the location of my properties file in the classpath. 
As I understand, in the <contextpath>.xml I can't override properties from a
.properties file...

Thanks,
Fritz

-- 
View this message in context: http://www.nabble.com/Change-the-deployment-path-to-another-name-than-the-.WARs-name-tp24862853p24895683.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Change the deployment path to another name than the .WARs name + WAR specific Classpath

Posted by Mark Thomas <ma...@apache.org>.
fritzdimmel wrote:
> Hi,
> Thanks a lot! This was the solution to my problem.
> 
> I've another questions regarding WAR-specific configuration:
> Is it possible to:
> -) configure CLASSPATH extensions to single WAR files (maybe directly in
> this config file (cont/Catalina/<hostname>/<myApp>.xml))
Not without custom code. Why not just package the jars with the war?

> -) do configuration settings to override configs defined in the WAR without
> modifying content in the extracted WAR?
Just edit CATALINA_BASE/conf/<enginename>/<hostname>/<contextpath>.xml

That file only gets removed if the app is undeployed. If the app is
updated that file gets left alone.

Mark



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