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 180039 - java.io.IOException: Parsing failed: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-fragment'.
Summary: java.io.IOException: Parsing failed: org.xml.sax.SAXParseException: cvc-elt.1...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal with 2 votes (vote)
Assignee: Denis Anisimov
URL:
Keywords:
: 180040 180041 182436 194567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-31 02:42 UTC by Exceptions Reporter
Modified: 2011-04-11 09:39 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163724


Attachments
stacktrace (861 bytes, text/plain)
2010-01-31 02:42 UTC, Exceptions Reporter
Details
stacktrace (861 bytes, text/plain)
2010-02-06 05:42 UTC, sebglon
Details
stacktrace (862 bytes, text/plain)
2010-04-04 13:04 UTC, big_al
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-01-31 02:42:20 UTC
Build: NetBeans IDE 6.8 (Build 200912091457)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP

Stacktrace: 
java.io.IOException: Parsing failed: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-fragment'.
   at org.netbeans.modules.j2ee.dd.api.web.WebFragmentProvider.getWebFragmentRoot(WebFragmentProvider.java:96)
   at org.netbeans.modules.j2ee.dd.impl.web.metadata.WebAppMetadataImpl.addFragmentRec(WebAppMetadataImpl.java:293)
   at org.netbeans.modules.j2ee.dd.impl.web.metadata.WebAppMetadataImpl.collectFragments(WebAppMetadataImpl.java:280)
   at org.netbeans.modules.j2ee.dd.impl.web.metadata.WebAppMetadataImpl.<init>(WebAppMetadataImpl.java:105)
   at org.netbeans.modules.j2ee.dd.impl.web.metadata.WebAppMetadataModelImpl$1.run(WebAppMetadataModelImpl.java:88)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
Comment 1 Exceptions Reporter 2010-01-31 02:42:24 UTC
Created attachment 93681 [details]
stacktrace
Comment 2 Jindrich Sedek 2010-02-01 03:36:45 UTC
*** Bug 180041 has been marked as a duplicate of this bug. ***
Comment 3 Jindrich Sedek 2010-02-01 03:36:58 UTC
*** Bug 180040 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2010-02-06 05:18:02 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163724
Comment 5 sebglon 2010-02-06 05:42:03 UTC
Created attachment 93928 [details]
stacktrace
Comment 6 big_al 2010-04-04 13:04:31 UTC
Created attachment 96649 [details]
stacktrace

Switched to an XHTML (Facelet) page.
Comment 7 Exceptions Reporter 2010-07-29 02:49:30 UTC
This bug already has 150 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163724
Comment 8 Petr Jiricka 2010-08-17 11:46:03 UTC
Hi Denis, could I please ask you to investigate this problem? Thanks.
Comment 9 Denis Anisimov 2010-08-17 17:18:12 UTC
This exception is result of Logger notification about 
incorrect XML file META-INF/web-fragment.xml in some classpath root.

This is important information actually. 
XML file should be well formed if it exists.

Currently this error is logged with Level.SEVERE .
As result exception dialog appears.
This is really bad behavior . But as I said before this information 
is important so I just reduce level for log message to Level.INFO.
There will be no exception dialog but user will be able to 
know about problem with XML file.


changeset:   175734:f7ba1adecfa0
user:        Denis Anisimov <ads@netbeans.org>
date:        Tue Aug 17 21:13:38 2010 +0400
summary:     Fix for BZ#180039 -  java.io.IOException: Parsing failed: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-fragment'.
Comment 10 Quality Engineering 2010-08-18 03:21:53 UTC
Integrated into 'main-golden', will be available in build *201008180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f7ba1adecfa0
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#180039 -  java.io.IOException: Parsing failed: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-fragment'.
Comment 11 Martin Fousek 2011-03-25 10:48:26 UTC
*** Bug 194567 has been marked as a duplicate of this bug. ***
Comment 12 Martin Fousek 2011-04-11 09:39:35 UTC
*** Bug 182436 has been marked as a duplicate of this bug. ***