Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor mapping problem

 
Victor Rodr�guez
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to map an attribute like this:



with this mapping tag:



but the result is a MappingException with the message:

Nested error: The namespace associated with the prefix: 'xmlns' is null.


Can someone help me, please?

thank you very much,
 
Victor Rodr�guez
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I have already done it!

The solution is to use the setSchemaLocation() function from Marshaller with the value of the schema location.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic