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 143999 - EAR project tests are failing because of project.xml validation
Summary: EAR project tests are failing because of project.xml validation
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2008-08-15 01:09 UTC by David Konecny
Modified: 2008-08-22 06:01 UTC (History)
2 users (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 David Konecny 2008-08-15 01:09:46 UTC
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!
Comment 1 Jesse Glick 2008-08-21 00:50:06 UTC
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.
Comment 2 David Konecny 2008-08-21 11:36:29 UTC
Thanks Jesse.
Comment 3 Quality Engineering 2008-08-22 06:01:11 UTC
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.