jsf - @FacesComponent on shared library -


i'm trying use custom jsf component on websphere 8.5. component class annotated @facescomponent.

the component on shared lib jar on server. have faces-config inside jar meta-inf folder.

if jar inside ear file works expected, when on sharedlib gives me "undefined component type myuiactionlist" error.

any ideas on how make work?

web fragment jars belong in war/web-inf/lib , absolutely not in ear/lib nor server/lib.

see a.o. chapter 8.1 of servlet 3.0 specification (emphasis mine):

8.1 annotations , pluggability

in web application, classes using annotations have annotations processed only if located in web-inf/classes directory, or if packaged in jar file located in web-inf/lib within application.

...

end of story.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -