cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy overridden web.xml to packed alfresco.war

matt_thomas
Champ in-the-making
Champ in-the-making
Hi

I am customising my application by adding new Servlets for auditing and need to deploy my modified web.xml file to the alfresco.war. I was wondering, is there a better way to do this than:

1)build alfresco.war
2) start tomcat to unpack alfresco.war
3) stop tomcat
4) copy web.xml into webapps/alfresco/WEB-INF/
5) start tomcat

each and every time I need to deploy a code change.

This process is frustrating and time consuming in development.

I tried zipping up the unzipped tomcat directory, renaming as war and using that as the alfresco.war, but this doesn't work


I tried creating a mapping in file-mapping.properties to copy the contents of a local WEB-INF directory, but that totally screwed things up.

/config=/WEB-INF/classes
/lib=/WEB-INF/lib
/licenses=/WEB-INF/licenses
/jsp=/jsp
/css=/css
/images=/images
/scripts=/scripts
/WEB-INF=/WEB-INF

How do people normally modify and deploy the web.xml file?

Many thanks

Matt
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
So if you have to do it, check the "package-amp" ant task in your build.xml to ensure that the web.xml is included in the amp file during the build process. The file-mapping.properties is used when the amp file is installed.

matt_thomas
Champ in-the-making
Champ in-the-making
Thanks. That sorted it out!!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.