Problem with Deployment Descriptor

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2006
Posts: 80
Reputation: parthiban is an unknown quantity at this point 
Solved Threads: 6
parthiban's Avatar
parthiban parthiban is offline Offline
Junior Poster in Training

Problem with Deployment Descriptor

 
0
  #1
Mar 22nd, 2007
Hi all ,

I developed Entity Bean(BMP) and i created Deployment Descriptor in NetBeans 5.5. I'm getting following error .

Error:
===

  1.  
  2. XML validation started.
  3.  
  4. Checking file:/G:/my_prgs/Xml/learning/Store_Data/build/jar/META-INF/jonas-ejb-jar.xml...
  5. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  6. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [5]
  7. cvc-elt.1: Cannot find the declaration of element 'jonas-ejb-jar'. [5]
  8. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  9. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [6]
  10. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  11. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [7]
  12. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  13. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [8]
  14. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  15. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [9]
  16. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  17. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [10]
  18. Referenced entity at "<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>".
  19. schema_reference.4: Failed to read schema document '<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'" target="_blank">http://www.objectweb.org/jonas/ns/jo...r_4_0.xsd'</a>, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [11]
  20. XML validation finished.
  21.  
Deployment Descriptor :
==============

  1.  
  2. <?xml version="1.0" encoding="ISO-8859-1"?>
  3. <jonas-ejb-jar xmlns="<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns" target="_blank">http://www.objectweb.org/jonas/ns</a>"
  4. xmlns:xsi="<a rel="nofollow" class="t" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
  5. xsi:schemaLocation="<a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns" target="_blank">http://www.objectweb.org/jonas/ns</a>
  6. <a rel="nofollow" class="t" href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" target="_blank">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a>" >
  7. <jonas-entity>
  8. <ejb-name>Store_DataBean</ejb-name>
  9. <jndi-name>Store_DataBean</jndi-name>
  10. <jonas-resource>
  11. <res-ref-name>connect</res-ref-name>
  12. <jndi-name>connect</jndi-name>
  13. </jonas-resource>
  14. </jonas-entity>
  15. </jonas-ejb-jar>

I'm not good in XML . So i don't know what's the problem .

Please tell me what are the changes i have to do to correct this problem .

Thanks in advance
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC