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

编程入门 行业动态 更新时间:2024-10-26 14:28:33
本文介绍了如何在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?

本文发布于:2023-11-28 14:45:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642837.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器中   如何在   xml   Alfresco   web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!