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

编程入门 行业动态 更新时间:2024-10-24 04:39:37
本文介绍了如何在 Alfresco Share 放大器中覆盖 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 文件似乎只是被忽略了(find $TOMCAT_HOME/webapps/share -name web.xml 只能找到该文件的旧版本).>

如何告诉 amp 文件将 web.xml 文件放在哪里?

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

解决方案

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

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

/web/WEB-INF=/WEB-INF

java -jar alfresco-mmt.jar install <WARFileLocation>-力量

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).

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

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.

解决方案

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

Use for example in the file-mapping.properties:

/web/WEB-INF=/WEB-INF

and

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

更多推荐

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

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

发布评论

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

>www.elefans.com

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