@FacesComponent in the shared library

I am trying to use a custom jsf component on Websphere 8.5. The component class is annotated using @FacesComponent.

The component is located on the shared lib library on the server. I already have a config face inside the META-INF banner folder.

If the box is inside my ear file, it works as expected, but when it is on sharedlib it gives me an Undefined error like component MyUIActionList ".

Any ideas on how to make this work?

+1
source share
1 answer

JAR fragments of web fragments belong to WAR/WEB-INF/lib and are absolutely not in EAR/lib and Server/lib .

See also ao chapter 8.1 servlet 3.0 specification (highlighted by me):

8.1 Annotations and connectivity

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

...

The end of the story.

+3
source

All Articles