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 - Netbeans ignores custom resource location when scanning for JSF composite components
Summary: Netbeans ignores custom resource location when scanning for JSF composite com...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-05 11:15 UTC by softmetz
Modified: 2016-05-17 13:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.