954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with Deployment Descriptor

Hi all ,

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

Error:
===

XML validation started. 
 
Checking file:/G:/my_prgs/Xml/learning/Store_Data/build/jar/META-INF/jonas-ejb-jar.xml... 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
cvc-elt.1: Cannot find the declaration of element 'jonas-ejb-jar'. [5] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
Referenced entity at " <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> ". 
schema_reference.4: Failed to read schema document ' <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_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] 
XML validation finished.

Deployment Descriptor :
==============

<?xml version="1.0" encoding="ISO-8859-1"?> 
<jonas-ejb-jar xmlns=" <a href="http://www.objectweb.org/jonas/ns">http://www.objectweb.org/jonas/ns</a> " 
xmlns:xsi=" <a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a> " 
xsi:schemaLocation=" <a href="http://www.objectweb.org/jonas/ns">http://www.objectweb.org/jonas/ns</a>  
 <a href="http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd">http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd</a> " > 
<jonas-entity> 
<ejb-name>Store_DataBean</ejb-name> 
<jndi-name>Store_DataBean</jndi-name> 
<jonas-resource> 
<res-ref-name>connect</res-ref-name> 
<jndi-name>connect</jndi-name> 
</jonas-resource> 
</jonas-entity> 
</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

parthiban
Junior Poster in Training
80 posts since Sep 2006
Reputation Points: 10
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You