[jboss-user] [Microcontainer] - Problem parsing jboss-beans.xml

ahalley do-not-reply at jboss.com
Mon Jan 12 11:39:20 EST 2009


Hi

I'm getting parser errors when trying to read jboss-beans.xml

DEBUG [main] (KernelFactory.java:86) - Starting JBoss Kernel construction...
DEBUG [main] (KernelFactory.java:112) - Completed JBoss Kernel construction.  Duration: 671 milliseconds
 WARN [main] (SaxJBossXBParser.java:316) - Valid documents must have a <!DOCTYPE declaration. @ jar:file:/C:/jboss-4.0.5.GA/server/xxx/deploy/MyApp.war/xxx/MyApp.jar!/jboss-beans.xml[3,-1]
org.jboss.xb.binding.JBossXBException: Failed to parse source: null at -1,-1
	at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:128)
	at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:134)
	at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
	at com.mgt.microcontainer.EmbeddedBootstrap.deploy(EmbeddedBootstrap.java:36)
	at com.mgt.gui.AgentApplication.run(AgentApplication.java:272)
	at com.mgt.gui.AgentApplication.main(AgentApplication.java:837)
Caused by: org.xml.sax.SAXException: Element type "deployment" is not declared. @ jar:file:/C:/jboss-4.0.5.GA/server/xxx/deploy/MyApp.war/xxx/MyApp.jar!/jboss-beans.xml[3,-1]
	at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:322)
	at org.apache.crimson.parser.Parser2.error(Parser2.java:3165)
	at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
	at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
	at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
	at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
	at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:396)
	at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:124)
	... 5 more


I've tried using the jboss-beans..xml supplied with the examples but still get the smae errror

jboss-beans.xml is

<?xml version="1.0" encoding="UTF-8"?>

<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
            xmlns="urn:jboss:bean-deployer:2.0">

    
       
         file:C:\examples\User_Guide\gettingStarted\commandLineClient\target/client-cl.dir/otherLib/humanResourcesService-1.0.0.jar
       
    

   
      
         
            
               
            
         
      
   

   
     
     <!-- true    
      -->
   
      
   <!-- 
     1000
     80000
   
   
   
     2000
     90000
    -->
         



Any help would be greatly appreciated.

Alan

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201078#4201078

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201078



More information about the jboss-user mailing list