Hello, After hours on a non working example using JPA, JDO, Spring ORM and more, I went to a more simple example but even this isn't working.
I'm trying JDO (in order to let in work with oracle later) with a quite simple XML file and it's XML Schemas. The first step I would like to achieve is generating the descriptors of the files. Enclosed are the XML, the XML Schemas and the corresponding Java file I try to use. At the execution, I get the following Java exception : No namespace declaration has been found for person * assuming default namespace of http://www.w3.org/2001/XMLSchema <person> elements are either currently unsupported or non-valid schema elements. Exception in thread "main" java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:399) at org.exolab.castor.builder.BuilderConfiguration.setLocationPackageMapping(BuilderConfiguration.java:614) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:755) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:705) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:602) at Test.generate(Test.java:17) at Test.main(Test.java:24) Could someone help me understand this exception ? Best Regards, Jorrit Wortel
Test.java
Description: Binary data
schema.xsd
Description: Binary data
<?xml version="1.0" encoding="UTF-8"?> <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schema.xsd"> <name> Superman </name> <age> 21 </age> </person>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email

