[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-4316) Classloader cannot find XML files in multiple WARs
Reind D (JIRA)
jira-events at lists.jboss.org
Fri Jul 24 17:35:30 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reind D updated JBSEAM-4316:
----------------------------
Attachment: jbseam-4316.tar.gz
1) tar -xzvf jbseam-4316.tar.gz
2) Deploy jbseam-4316.ear to jboss 5.0.0.GA.
3) Access http://localhost:8080/a/
Note the following error in the server log:
WARN [VFSScanner] Error handling item 'index2.page.xml': java.lang.NullPointerException: Cannot find URL from classLoader for index2.page.xml, loading from org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader at 1193d1f
Notes:
a) This ear packages a jboss-seam.jar that includes the patch attached to this ticket.
b) Very minimal configuration in *xml
c) no class files, only 3 xhtml files.
> Classloader cannot find XML files in multiple WARs
> --------------------------------------------------
>
> Key: JBSEAM-4316
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4316
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0.CR1
> Environment: JBoss AS 5.0.0.GA. Seam 2.2 r11299
> Reporter: Reind D
> Attachments: jbseam-4316.tar.gz, pages-fix.diff
>
>
> I have an EAR that contains multiple WAR files. The first webapp to be accessed works fine. Any web request to the 2nd WAR to be accessed causes the following error:
> WARN [VFSScanner] Error handling item 'login/index.page.xml': java.lang.NullPointerException: Cannot find URL from classLoader for login/index.page.xml, loading from org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader at 1ed964f
> FileDescriptor.java calls:
> Resources.getResource(name, ServletLifecycle.getServletContext());
> Which returns a static reference to the ServletContext which is overwritten by the last webapp to be initialized.
> private static ServletContext servletContext;
> public static ServletContext getServletContext()
> {
> //don't throw an exception if null, because of unit tests
> return servletContext;
> }
> The 2nd webapp to be initialized will have a reference to the first webapp's ServletContext.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list