]
Geoffrey De Smet updated SEAMCONFIG-50:
---------------------------------------
Summary: Seam-config ignores WEB-INF/beans.xml (and WEB-INF/seam-beans.xml) (was:
Seam-config ignores WEB-INF/beans.xml (and WEB-INF/seam-beans.xml) for )
Seam-config ignores WEB-INF/beans.xml (and WEB-INF/seam-beans.xml)
------------------------------------------------------------------
Key: SEAMCONFIG-50
URL:
https://issues.jboss.org/browse/SEAMCONFIG-50
Project: Seam Config
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Geoffrey De Smet
Assignee: Stuart Douglas
Priority: Critical
at least when running from the IntelliJ tomcat 6 plugin. Occurs for both exploded war and
not exploded war.
Strangely enough, it doesn't ignore it for the root xml schema validation.
The problem is probably in ClasspathResourceLoader.getResources(String name):
when name = "WEB-INF/beans.xml", it returnts an empty Set, while it should
contain something like:
/.../guvnor/guvnor-webapp/target/guvnor-webapp-5.3.0-SNAPSHOT/WEB-INF/beans.xml
Thread.currentThread().getContextClassLoader() returns an instance of
org.apache.catalina.loader.WebappClassLoader
When asking
Thread.currentThread().getContextClassLoader().getResourceAsStream("WEB-INF/beans.xml")
or
Thread.currentThread().getContextClassLoader().getResourceAsStream("/WEB-INF/beans.xml")
it returns null (so the catalina WebappClassLoader returns null for that).
yet asking a resource, such as
Thread.currentThread().getContextClassLoader().getResourceAsStream("/drools-asseteditors.xml")
does not return null, but the correct resource.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: