Hi I'm back and still cant make my webapp work. I validated and corrected all xml 
config files using the DTDs from jboss but still wont work on 3.0.8. Ive actually 
tried it on 3.0.6 and 3.0.8.. same result. 
basing from the stack traces, my untrained eye says that the prob is on the jaws.xml 
(the app is using ejb 1.1). here is the sample jaws.xml that i have (which jboss says 
erroneous) 


  | 2004-03-22 16:06:30,399 WARN  [org.jboss.system.ServiceController] Problem 
creating service jboss.j2ee:jndiName=catalyst.PrivilegeHome,service=EJB
  | org.jboss.deployment.DeploymentException: Document root element is missing.; - 
nested throwable: (org.xml.sax.SAXParseException: Document root element is missing.)
  |     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:311)
  |     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:255)
  |     at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:227)
  |     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:211)
  |     at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:200)
  |     at 
org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:70)
  |     at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<init>(JDBCCommandFactory.java:144)
  |     at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersistenceManager.java:104)

heres my sample jaws.xml thats causing the prob(?) :


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!DOCTYPE jaws PUBLIC
  |       "-//JBoss//DTD JAWS 2.4//EN"
  |       "http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd";>
  | 
  | <jaws>
  |     <datasource>CatalystDS</datasource>
  |     <type-mapping>Oracle8</type-mapping>
  |     <enterprise-beans>
  |             <entity>
  |                     <ejb-name>privilege</ejb-name>
  | 
  |                     <cmp-field>
  |                             <field-name>userId</field-name>
  |                             <column-name>USERID</column-name>
  |                     </cmp-field>
  |                     <cmp-field>
  |                             <field-name>projectId</field-name>
  |                             <column-name>PROJECTID</column-name>
  |                     </cmp-field>
  |                     <cmp-field>
  |                             <field-name>privilege</field-name>
  |                             <column-name>PRIVILEGE</column-name>
  |                     </cmp-field>
  | 
  |                     <table-name>PRIVILEGE</table-name>
  |                     <create-table>false</create-table>            
  |             </entity>
  | 
  |     </enterprise-beans>
  | </jaws>
  | 

any ideas? pls note that all xml descriptors was already validated and has no errors.



<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826809#3826809";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826809>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to