Results 1 to 10 of 10

Thread: ERROR about <oxm:jaxb2-marshaller/>

  1. #1
    Join Date
    Jan 2009
    Location
    Jiaxing, China
    Posts
    23

    Unhappy ERROR about <oxm:jaxb2-marshaller/>

    I gotta "cvc-complex-type.2.4.c" error from the console after Tomcat (6.x, JDK1.6) started while I'm using XML Schema-based configuration of JAXB2:
    Code:
    The matching wildcard is strict, but no declaration can be found for element 'oxm:jaxb2-marshaller'.
    I'm quite sure that I use the right spring-oxm.1.5.xsd file, because the Eclipse (Europa) Content Assist recognize this of hint:
    Code:
    <>alias
    <>bean
    <>import
    <>oxm:jaxb1-marshaller
    <>oxm:jaxb2-marshaller
    <>oxm:jibx-marshaller
    <>oxm:xmlbeans-marshaller
    <>sws:marshalling-endpoints
    <>sws:xpath-endpoints
    Any one knows why or does the problem still happen in the new spring-ws.1.5.6? Thanks.
    Last edited by charles-xie; Jan 29th, 2009 at 07:20 PM.

  2. #2
    Join Date
    Jan 2009
    Location
    Jiaxing, China
    Posts
    23

    Default

    I think it is because of spring-ws-1.5.5-all.jar. The bug is SWS-454.
    I have to use each jar in different modules.
    Last edited by charles-xie; Feb 9th, 2009 at 03:06 AM.

  3. #3

    Default

    This issue should be fixed now. Try out the 1.5.6 release.
    Tareq Abedrabbo

    My Twitter
    My Blog

  4. #4
    Join Date
    Jul 2007
    Posts
    18

    Default

    Quote Originally Posted by tareq View Post
    This issue should be fixed now. Try out the 1.5.6 release.
    Hello,

    I have exactly the same problem , but I think in my case I can have a jar conflict somewhere, if you have any idea about this also..... ?

    Code:
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 19 in XML document from class path resource [..........hrs.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oxm:xmlbeans-marshaller'.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:369)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
    	Truncated. see log file for complete stacktrace
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oxm:xmlbeans-marshaller'.
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
    	Truncated. see log file for complete stacktrace
    Code:
    ....
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:oxm="http://www.springframework.org/schema/oxm"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
                          http://www.springframework.org/schem...-beans-2.0.xsd
                          http://www.springframework.org/schema/oxm 
                          http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd">
    
      <oxm:xmlbeans-marshaller id="xmlBeansMarshaller" />
    ......
    this are some of the libraries that are used in my project:

    Code:
    .........
    dom4j-dom4j-1.6.1.jar
    xalan-xalan-2.7.0.jar
    xerces-xerces-1.2.3.jar
    xerces-xercesImpl-2.2.1.jar
    xml-apis-xml-apis-1.0.b2.jar
    ......
    org-springframework-spring-2.0.5.jar
    spring-ws-1.5.6-all.jar
    ..........
    and everything is running on an Weblogic server 9.2MP2

    PS: replacing the spring-ws-1.5.5-all.jar with spring-ws-1.5.6-all.jar dose not have any effect on my configuration...
    Last edited by EmilianM; Feb 25th, 2009 at 07:48 AM.

  5. #5

    Default

    looks like your schema is not downloading/validating... are you behind a firewall?

  6. #6
    Join Date
    Jan 2010
    Posts
    14

    Default

    I believe I am having the same problem. We are deploying a spring 3.0.0.RELEASE app to a Oracle Weblogic 11gR1 server. I am new to WebLogic administration, however the system the server is deployed on has a proxy set, as does maven (which I am using to automate the deploy using the weblogic maven plugin).

    We're not using spring-ws.1.5.6.jar but do have spring-ws-core-1.5.8 as a dependency (there does not seem to be an equivalent 3.0.0.RELEASE version).

    Also, we have a sub project which we compile to a JAR, which our WAR depends upon. This jar has the spring-oxm dependency declared but our WAR project has the following:

    <exclusions>
    <exclusion>
    <artifactId>spring-oxm</artifactId>
    <groupId>org.springframework.ws</groupId>
    </exclusion>
    </exclusions>

    Is it possible that having this means we are getting the error in this thread?

    I'm trying commenting this out to see what happens.

  7. #7
    Join Date
    Jan 2010
    Posts
    14

    Default

    I've now made sure that I only have 3.0.0.RELEASE versions of spring-oxm and sprnig-ws-core in my WAR but I still see the same error message when I deploy.

    Can anyone help?

  8. #8
    Join Date
    Jan 2010
    Posts
    14

    Default

    I have a colleague who is deploying to an external Tomcat server and is seeing the same problem. It looks like we have the same problem.

  9. #9
    Join Date
    Jul 2009
    Posts
    17

    Default

    al94781,

    I have a solution to this as I encountered this just now.

    Make sure you have the spring-oxm-tiger dependancy for JAXB2 marshalling, then change the schema version to 1.5 from 3.0 in yourspring config file -

    Code:
    http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd
    HTH

  10. #10

    Default The prefix ...."oxm:jaxb2-marshaller" - is not bound

    I am having the same if not similar problem. I am still looking for an answer.

    I am using spring-ws-1.5.8.jar and I put spring-oxm-tiger-1.5.8.jar in my App lib directory as well.

    This error below wouldn't go away:

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

    Any ideas would be greatly appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •