Omnifaces exception on deployment on Tomcat 7

前端 未结 1 1422
灰色年华
灰色年华 2021-01-22 01:37

I\'m trying to add Omnifaces 2.1 to a web application to use FullAjaxExceptionHandler and possibly other functionality in Omnifaces 2.1.

I\'ve read and followed followin

1条回答
  •  清歌不尽
    2021-01-22 02:13

    Ok issue is now resolved. I can confirm the following for Apache Tomcat/7.0.56:

    • /META-INF/context.xml is not required however the resource entry is still required. To resolve the issue I added the resource entry in the following existing location: tomcat\conf\Catalina\localhost{resource-file-name}.xml

    After that no errors appeared.

    • No related listeners need to be registered in web.xml
    • No related are required in web.xml
    • /WEB-INF/beans.xml (empty) is required

    Most of the above is covered here: http://balusc.blogspot.com.au/2013/10/how-to-install-cdi-in-tomcat.html

    I wanted to provide an update to this though as some may find the resource loading part on tomcat helpful.

    Thanks again BallusC. I've up-voted a similar post because the suggestion related to it helped me resolve this issue.

    0 讨论(0)
提交回复
热议问题