This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257417

Summary: Netbeans ignores custom resource location when scanning for JSF composite components
Product: javaee Reporter: softmetz
Component: JSFAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal CC: softmetz
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description softmetz 2016-01-05 11:15:23 UTC
I have a maven project with the structure

1) src/main/webresources
2) src/main/webapp

In 1) is the web.xml with placeholders to be filtered by maven. One parameter I set is javax.faces.WEBAPP_RESOURCES_DIRECTORY to /WEB-INF/resources.

2) contains my web application. 

I created /WEB-INF/resources/some/comp.xhtml (by hand since the wizzard tries to force me into /resources!) and created some client XHTML that uses the component. Runtime works fine, but Netbeans complains about the library missing.

If i create a symbolic link from /WEB-INF/resources to /resources Netbeans works like charm.

I am not sure if filtering the web.xml has to do something with my problem but AFAIK netbeans doesn't get or ignore a custom resource directory when it comes to composite components.
Comment 1 Petr Hejl 2016-05-17 13:18:34 UTC
Please can you provide a sample project? I'm not sure I understand the layout.