Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mimi Tam
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're missing the namespace declaration.
 
Mimi Tam
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is a very helpful link.

Thanks a lot, David.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure thing--enjoy!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic