myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3704) Unable to find component when deployed on /demo/faces context
Date Thu, 28 Mar 2013 04:49:15 GMT


Leonardo Uribe commented on MYFACES-3704:

I have deployed the application uncompressing the war and removing the duplicate libraries
in WEB-INF/lib folder (if any, but the war file does not have none). 

Probably in this case, the problem is caused by TomEE, when the file is deployed on the server.
The default algorithm follows JSF spec, but it could be possible that when the list of files
under WEB-INF/lib is retrieved by the annotation provider, the related files that needs to
be scanned for annotations are not retrieved and in that way the scanning is not done. 

In that case there are these options:

1. write a custom AnnotationProvider that match with TomEE in this case.
2. try to fix the problem directly in TomEE
3. use org.apache.myfaces.annotation.SCAN_PACKAGES config param and indicate the packages
that needs to be scanned for annotations. See
for details.

> Unable to find component when deployed on /demo/faces context
> -------------------------------------------------------------
>                 Key: MYFACES-3704
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Manfred Riem
> To reproduce: 
> 1. Download

> 2. Deploy to /demo/faces on Tomcat
> It throws an exception. It should work. 
> If you need more information please let me know!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message