wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes The prefix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound" Watch "The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound" New topic
Author

The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Hi,

I am getting this compile error in webmvc_cfg.xml and I have no idea what can fix it.

Excerpt from my webmvc_config.xml:


Error "The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound" is on:

I have all of the files below in my App's lib directory:

spring.oxm-tiger-1.5.8.jar
spring-web.jar
spring-ws-core-tiger-15.8.jar
spring-ws-core-1.5.8
spring-ws-security-1.5.8.jar
spring-ws-support-1.5.9.jar

Can anyone point out my problem and ideas for fixing it?

Many Thanks in advance...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You're missing the namespace declaration.
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

Thank you, David.

May I ask which tns: prefix/namespace am I supposed to add to fix this problem? I couldn't find an example of this.

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Really? I searched for "spring oxm namespace" and amongst the top few links was this:

http://static.springsource.org/spring-ws/sites/1.5/reference/html/oxm.html#d0e5649

I'd *strongly* recommend reading the documentation for the technology you're trying to use--things will go much more smoothly! :)
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

This is a very helpful link.

Thanks a lot, David.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sure thing--enjoy!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound
 
Similar Threads
Persistent Connection : Sping-ws Client
Spring 3.0 + REST Annotations
Spring-ws client with Jax-ws web service
Spring JDBC Problem getting log messages
Compile Error: The prefix "util" for element "util:list" is not bound.