Problemas IOExcepition ((Resolvido))

Ola galera estou com um erro IOExepition que provavelmente vem do arquivo layer.xml, sou novo em java entaum nao conheço muti coisa segue o erro que ele mostra.

org.xml.sax.SAXParseException: Element type "file" must be followed by either attribute specifications, ">" or "/>".
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(XMLDocumentFragmentScannerImpl.java:1395)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1328)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1132)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:533)
	at org.openide.filesystems.XMLFileSystem.setXmlUrls(XMLFileSystem.java:356)
Caused: java.io.IOException: jar:file:/C:/Documents%20and%20Settings/jcsouza/Meus%20documentos/NetBeansProjects/TaskManager/TaskManagers/WindowSystemExamples/build/cluster/modules/com-netbeansrcp-custommodes.jar!/com/netbeansrcp/custommodes/layer.xml
	at org.openide.filesystems.XMLFileSystem.setXmlUrls(XMLFileSystem.java:364)
	at org.openide.filesystems.XMLFileSystem.setXmlUrls(XMLFileSystem.java:300)
	at org.netbeans.core.startup.layers.LayerCacheManager$1Updater.run(LayerCacheManager.java:168)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:542)
	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:563)
	at org.netbeans.core.startup.layers.LayerCacheManager.store(LayerCacheManager.java:179)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.setURLs(ModuleLayeredFileSystem.java:258)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.addURLs(ModuleLayeredFileSystem.java:277)
	at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:331)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:944)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:318)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:254)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:286)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
	at org.netbeans.core.startup.Main.start(Main.java:302)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114)
[catch] at java.lang.Thread.run(Thread.java:662)

e segue layer.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
    <folder name="Actions">
        <folder name="Window">
            <file name="com-netbeansrcp-custommodes-BlueAction.instance">
                <attr name="component" methodvalue="com.netbeansrcp.custommodes.BlueTopComponent.findInstance"/>
                <attr name="displayName" bundlevalue="com.netbeansrcp.custommodes.Bundle#CTL_BlueAction"/>
                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
            </file>
            <file name="com-netbeansrcp-custommodes-BlueTopComponentWstcgrpAction.instance">
                <attr name="component" methodvalue="com.netbeansrcp.custommodes.BlueTopComponentWstcgrpTopComponent.findInstance"/>
                <attr name="displayName" bundlevalue="com.netbeansrcp.custommodes.Bundle#CTL_BlueTopComponentWstcgrpAction"/>
                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
            </file>
            <file name="com-netbeansrcp-custommodes-RedAction.instance">
                <attr name="component" methodvalue="com.netbeansrcp.custommodes.RedTopComponent.findInstance"/>
                <attr name="displayName" bundlevalue="com.netbeansrcp.custommodes.Bundle#CTL_RedAction"/>
                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
            </file>
            <file name="com-netbeansrcp-custommodes-RedTopComponentWstcgrpAction.instance">
                <attr name="component" methodvalue="com.netbeansrcp.custommodes.RedTopComponentWstcgrpTopComponent.findInstance"/>
                <attr name="displayName" bundlevalue="com.netbeansrcp.custommodes.Bundle#CTL_RedTopComponentWstcgrpAction"/>
                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
            </file>
        </folder>
    </folder>
    <folder name="Menu">
        <folder name="Window">
            <file name="BlueAction.shadow">
                <attr name="originalFile" stringvalue="Actions/Window/com-netbeansrcp-custommodes-BlueAction.instance"/>
            </file>
            <file name="BlueTopComponentWstcgrpAction.shadow">
                <attr name="originalFile" stringvalue="Actions/Window/com-netbeansrcp-custommodes-BlueTopComponentWstcgrpAction.instance"/>
            </file>
            <file name="RedAction.shadow">
                <attr name="originalFile" stringvalue="Actions/Window/com-netbeansrcp-custommodes-RedAction.instance"/>
            </file>
            <file name="RedTopComponentWstcgrpAction.shadow">
                <attr name="originalFile" stringvalue="Actions/Window/com-netbeansrcp-custommodes-RedTopComponentWstcgrpAction.instance"/>
            </file>
        </folder>
    </folder>
    <folder name="Windows2">
        <folder name="Components">
            <file name="BlueTopComponent.settings" url="BlueTopComponentSettings.xml"/>
            <file name="BlueTopComponentWstcgrpTopComponent.settings" url="BlueTopComponentWstcgrpTopComponentSettings.xml"/>
            <file name="RedTopComponent.settings" url="RedTopComponentSettings.xml"/>
            <file name="RedTopComponentWstcgrpTopComponent.settings" url="RedTopComponentWstcgrpTopComponentSettings.xml"/>
        </folder>
        <folder name="Modes">
            <folder name="editor">
                <file name="BlueTopComponentWstcgrpTopComponent.wstcref" url="BlueTopComponentWstcgrpTopComponentWstcref.xml"/>
                <file name="RedTopComponentWstcgrpTopComponent.wstcref" url="RedTopComponentWstcgrpTopComponentWstcref.xml"/>
            </folder>
            <file name="mode1.wsmode" url="mode1.wsmode"/>
            <file name="mode2.wsmode" url="mode2.wsmode"/>
            <folder name="mode1">
                <file name="RedTopComponent.wstcref" url="RedTopComponentWstcref.xml"/>
            </folder>
                
            <folder name="mode2">
                <file name="BlueTopComponent.wstcref" url="BlueTopComponentWstcref.xml"/>
            </folder>
        </folder>
    </folder>
    <folder name="Groups">
        <file name="colorgroup.wsgrp" url="colorgroup.wsgrp"/>
        <folder name="colorgroup">
            <file name="RedTopComponent.wstcgrp"url="RedTopComponentWstcgrp.xml"/>
            <file name="BlueTopComponent.wstcgrp"url="BlueTopComponentWstcgrp.xml"/>
        </folder>
    </folder>
 
    
</filesystem>

Dica: Use seu navegador (IE ou Firefox) para diagnosticar erros de XML.

Por exemplo, carreguei seu XML no Firefox e ele me apresentou o seguinte erro:

XML Parsing Error: not well-formed
Location: file:///C:/Temp/teste.xml
Line Number 70, Column 50:             <file name="RedTopComponent.wstcgrp"url="RedTopComponentWstcgrp.xml"/>  
-------------------------------------------------^

OU seja, por algum estranho motivo faltou um espaço antes da palavra url.

Note que ele para no primeiro erro (tanto o IE quanto o Firefox). Portanto, corrija o erro que você viu, salve o arquivo, tente carregar de novo, corrija se vir mais algum erro, e só se dê por satisfeito quando o Firefox conseguir carregar o arquivo, mais ou menos assim:


Foi bem util sua resposta pois naum sabia dessa porem ja arrumei e o erro ainda persiste.

Cara desculpa mais eu sou meio noob … eu estava dando check no xml pra ver os erros porem ele soh me mostrou aquele…
como eu faço pra testar no fire fox ou no caso explorer?

Isso é um arquivo em disco que está em um diretório, não?
Pegue esse arquivo e então faça o IE ou Firefox ler esse arquivo. Pode usar a própria barra de endereços, em vez de usar “http://bla” você usa só “c:\temp\teste.xml” se você tiver um arquivo teste.xml que estiver no diretório temp, por exemplo.

Só lembrando que você tem de tirar o arquivo de dentro do JAR (que é um arquivo ZIP, em última instância). se for o caso. Tanto o IE quanto o Firefox não sabem abrir arquivos JAR.

Tinham 2 arquivos xml com erro porem corrigi os erros e eles persistiram fique mais 40 minutos quebrando a cabeça todos os xml ja estavam ok. resolvi entaum toma um cafézinho fexei os projetos quando voltei e reabri executei e simplesmente funcionou "¬¬.

muito obrigado pela ajuda !!

um abraço

Vlw mesmo 8)