users@glassfish.java.net

Re: Glassfish+jersey+json+natural convention and new jaxb

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Jul 2009 10:12:17 PDT

Thanks for reply
But, there is something wrong, because I downloaded latest night build of glassfish v3 preview and it has new version of jaxb I think.

jersey (json) required min jaxb v 2.1.10 but now is 2.2 already

I looked to jersey code and there is something like:

 public static Builder natural() {
        // this is to make sure people trying to use NATURAL notation will get clear message what is missing, when an old JAXB RI version is used
        try {
            Class.forName("com.sun.xml.bind.annotation.OverrideAnnotationOf");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(JSONConfiguration.class.getName()).log(Level.SEVERE, ImplMessages.ERROR_JAXB_RI_2_1_10_MISSING());
            throw new RuntimeException(ImplMessages.ERROR_JAXB_RI_2_1_10_MISSING());
        }
        return new Builder(Notation.NATURAL);
    }


so i greped glassfish directories by OverrideAnnotationOf file and i found:

glassfishv3\glassfish\modules\jaxb-osgi.jar\com\sun\xml\bind\annotation\OverrideAnnotationOf .class

I tried put jaxb-osgi-2.2-promoted-b36.jar in modeules/endorsed/ but it doesn't help.
jersey still doesn't see this anotation.

?
[Message sent by forum member 'rafik777' (rafik777)]

http://forums.java.net/jive/thread.jspa?messageID=353971