@FacesComponent on shared library

后端 未结 1 1360

I\'m trying to use a custom jsf component on Websphere 8.5. The component class is annotated with @FacesComponent.

The component is on a shared lib jar on the server

1条回答
  •  暖寄归人
    2020-12-21 13:21

    Web fragment JARs belong in WAR/WEB-INF/lib and absolutely not in EAR/lib nor Server/lib.

    See also a.o. chapter 8.1 of Servlet 3.0 specification (emphasis mine):

    8.1 Annotations and pluggability

    In a web application, classes using annotations will have their annotations processed only if they are located in the WEB-INF/classes directory, or if they are packaged in a jar file located in WEB-INF/lib within the application.

    ...

    End of story.

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