如何在Alfresco共享放大器中覆盖web

如何在Alfresco共享放大器中覆盖web

本文介绍了如何在Alfresco共享放大器中覆盖web.xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想从Alfresco Share web.xml 中删除​​一些配置。该文件位于 $ TOMCAT_HOME / webapps / share / WEB-INF / web.xml 中,因此我将自定义文件添加到 $ AMP_FOLDER / _share / config /META-INF/WEB-INF/web.xml WEB-INF 文件夹与其他自定义文件夹- compentents css -正确地映射到 share.war 。尽管 web.xml 文件似乎只是被忽略了(找到$ TOMCAT_HOME / webapps / share -name web.xml

I want to remove some of the configuration from the Alfresco Share web.xml. That file lives at $TOMCAT_HOME/webapps/share/WEB-INF/web.xml so I added the customized file to $AMP_FOLDER/_share/config/META-INF/WEB-INF/web.xml. The WEB-INF folder lives at the same level as other customizations - compentents and css - which get mapped to the share.war correctly. The web.xml file appears to just get ignored though (find $TOMCAT_HOME/webapps/share -name web.xml only finds the old version of the file).

如何告诉amp文件将 web.xml 文件?

How do I tell the amp file where to put the web.xml file?

我发现的所有文档都说不要覆盖 web.xml 文件,但是我需要删除一些正在应用的过滤器。

All the documentation I have found says to not override the web.xml file, but I need to remove some of the filters that are being applied.

推荐答案

在运行应用放大器时使用-force参数,不要将您的web.xml放到WEB-INF中,因为mmt会忽略它。

Use -force parameter when running the apply amps and don't put your web.xml in WEB-INF because mmt ignores that.

例如在file-mapping.properties中使用:

Use for example in the file-mapping.properties:

/web/WEB-INF=/WEB-INF

java -jar alfresco-mmt.jar install <AMPFileLocation> <WARFileLocation> -force

这篇关于如何在Alfresco共享放大器中覆盖web.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 01:03