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.
Testcase: testCreateProjectJavaEE5(org.netbeans.modules.j2ee.earproject.EarProjectGeneratorTest): Caused an ERROR /home/dev/main/j2ee.earproject/build/test/unit/work/o.n.m.j.e.E/testCreateProjectJavaEE5/EARProject/nbproject/project.xml: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'project'. java.io.IOException: /home/dev/main/j2ee.earproject/build/test/unit/work/o.n.m.j.e.E/testCreateProjectJavaEE5/EARProject/nbproject/project.xml: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'project'. at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:175) The problem is somewhere in test configuration: ProjectXMLCatalog folder on default filesystem exists but does not contain schemas from project.ant module. I tested Web project tests and these pass fine because ProjectXMLCatalog does not exist at all and in such a case XML validation is not performed. I tried reasonably hard to find WHY EarProject tests have partially loaded SFS or why it has SFS at all but without success. Thanks for any pointer!
It has a special SFS because your tests specifically asked for one. In fact they do not need to do this at all, as of 6.1 I think. core-main #b986e9f27286 (and rebuild core.startup) core-main #32f6b4ff16e4 core-main #ec10af9e0c14 and especially: core-main #8e60111330b2 Should appear in main sometime soon.
Thanks Jesse.
Integrated into 'main-golden', available in build *200808220201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/8e60111330b2 User: Jesse Glick <jglick@netbeans.org> Log: #143999: tests broken due to unnecessary use of custom Repository.