Results 1 to 3 of 3

Thread: Jaxb2Marshaller issue

  1. #1
    Join Date
    Nov 2011
    Posts
    5

    Default Jaxb2Marshaller issue

    I configured Jaxb2Marshaller marshaller in my context. The following is the configuration:

    Code:
    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
            <property name="marshallerProperties">
                <map value-type="java.lang.Boolean" key-type="java.lang.String">
                    <entry key="jaxb.formatted.output" value="true" />
                </map>
            </property>
            <property name="contextPaths">
                <list>
                    <value>com.test.binding.Book</value>
                </list>
            </property>
        </bean>
    ButI am getting error when I run the application:

    Code:
    Error creating bean with name 'marshaller' defined in class path resource [container.xml]: 
    Invocation of init method failed; nested exception is java.util.MissingResourceException: 
    Can't find bundle for base name javax.xml.bind.Messages, locale en_US
    I checked all the jar files related to binding, and I can not find this bundle in any of the jars. Where this bundle should be coming from?

    Thanks
    oagady

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    644

    Default

    Hello

    Try to use com.test.binding insted of full Class name

    Also, maybe this will help you: www.google.com/search?q=javax.xml.bind.Messages

    Artem Bilan

  3. #3
    Join Date
    Nov 2011
    Posts
    5

    Default

    Thanks, Cleric

    Using package name instead of full class name didn't help, but at least I can add the bundle to my jars now.

    I wonder why all my jaxb-api jars are missing a required bundle.

Posting Permissions

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