crimson.jar *is* required and is added in classpath by the run script. Might be worthwhile looking at other xml parsers you may have in classpath. So if your run.bat has something like
 
set CLASSPATH=%CLASSPATH%;<new items to put in cp>
 
remove the %CLASSPATH% to start jboss with a clean classpath. All that is needed is run.jar and crimson.jar.
 
Vinay

 

----- Original Message -----
From: Filip Hanik
Sent: Tuesday, May 01, 2001 11:44 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] org.xml.sax.SAXParseException: Document root el

looks like you have crimson.jar in your classpath and this may conflict with some other JAXP implementation (Xerces, jaxp.jar, parser.jar)
 
Filip
 

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Durst
Sent: Tuesday, May 01, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] org.xml.sax.SAXParseException: Document root element is missing

I am new to JBOSS and EJB's in general. I have created several beans and "jarr'ed" them along with the corresponding home interfaces, remote interfaces and the deployment descriptor. When I drop my jar file in the deploy folder, this is the error I get. I would appreciate it if anyone could give me a clue as to what the error is referring to with: org.xml.sax.SAXParseException: Document root element is missing. If additional information is necessary I would be glad to provide it. Thank you in advance for your help.
 
I suspect that the problem is with my ejb-jar.xml file but I cannot find a reference to this error.
 
jason
 
the error message continues but I thought that this was the relevant part.
 
[J2EE Deployer Default] Starting
[J2EE Deployer Default] Cleaning up deployment directory
[J2EE Deployer Default] Started
[Auto deploy] Starting
[Auto deploy] Watching E:\jboss-tomcat-2.2\jboss-2.2\deploy
[Auto deploy] Auto deploy of file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar
[J2EE Deployer Default] Deploy J2EE application: file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar
[J2EE Deployer Default] Create application musicdb.jar
[J2EE Deployer Default] install module musicdb.jar
[Container factory] Deploying:file:/E:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/musicdb.jar
[Container factory] Document root element is missing.:-1:1
[Container factory] org.xml.sax.SAXParseException: Document root element is missing.
[Container factory]     at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
[Container factory]     at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)
[Container factory]     at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java, Compiled Code)
[Container factory]     at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
[Container factory]     at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
[Container factory]     at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
[Container factory]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
[Container factory]     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)
[Container factory]     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
[Container factory]     at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:89)
[Container factory]     at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)
[Container factory]     at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)
[Container factory]     at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java, Compiled Code)
[Container factory]     at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory]     at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Code)
[Container factory]     at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java, Compiled Code)
[Container factory]     at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.util.ServiceControl.start(ServiceControl.java, Compiled Code)
[Container factory]     at java.lang.reflect.Method.invoke(Native Method)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory]     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory]     at org.jboss.Main.<init>(Main.java, Compiled Code)
[Container factory]     at org.jboss.Main$1.run(Main.java:107)
[Container factory]     at java.security.AccessController.doPrivileged(Native Method)
[Container factory]     at org.jboss.Main.main(Main.java, Compiled Code)
[Container factory] org.jboss.ejb.DeploymentException: Document root element is missing., Cause:org.xml.sax.SAXParseException: Document root element i
s missing.



Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to