This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Castor mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor mapping problem" Watch "Castor mapping problem" New topic
Author

Castor mapping problem

Victor Rodr�guez
Greenhorn

Joined: Apr 02, 2007
Posts: 10
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,


VictorR<br /><a href="http://www.v-code.org" target="_blank" rel="nofollow">www.v-code.org</a>
Victor Rodr�guez
Greenhorn

Joined: Apr 02, 2007
Posts: 10
Ok, I have already done it!

The solution is to use the setSchemaLocation() function from Marshaller with the value of the schema location.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor mapping problem
 
Similar Threads
requested resource not found error
struts action form not working
Checking for Session Timeout
JPA strange error.
HTTP Status 404