I just tried it and ... nope it doesn't work (openjdk 1.7.0.3 x86_64 and
cxf 2.6.1 and tomcat 7.0.27). I'm not actually that worried because I can
just tell users to use oracle-jdk.

But, in case you're wondering... I think it has to do with the xml
libraries but I don't know the details. Here's the symptoms. The problem
seems to be in the XML. I've attached snippets of the objects and their xml
below, notice 2 differences, in openjdk there's <person> tag where as
oracle-jdk there isn't. Also notice in openjdk the <id> tag has
dissappeared... I guess it's a reserved word/tag or conflicting name?

The java objects I'm returning from the server to the client is a composite
object which looks roughly like :

public final class LoginResultTransfer
{
    private PersonTransfer person;

   ...
}

public final class PersonTransfer
{
    private Long id;
    private String firstName = null;
    private Calendar birthDate = null;
    private Gender gender = null;
    ...
}

When I turn on logging on the server :
In oracle-jdk I get

ID: 5
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <ns2:getPersonResponse xmlns:ns2="http://ws.myoscar_server.oscarehr.org/
">
      <return>
        <birthDate>1991-02-01T00:00:00+11:00</birthDate>
        <firstName>pat1-fn</firstName>
        <gender>F</gender>
        <id>6</id>
        ...
      </return>
    </ns2:getPersonResponse>
  </soap:Body>
</soap:Envelope>

in openjdk I get :

ID: 3
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <ns2:login2Response xmlns:ns2="http://ws.myoscar_server.oscarehr.org/";>
      <return>
        <person>
          <birthDate>1991-02-01T00:00:00+11:00</birthDate>
          <firstName>pat1-fn</firstName>
          <gender>F</gender>
          ...
        </person>
      </return>
    </ns2:login2Response>
  </soap:Body>
</soap:Envelope>

On Wed, Jun 13, 2012 at 2:54 AM, Daniel Kulp <[email protected]> wrote:

> On Tuesday, June 12, 2012 12:53:32 PM Ted wrote:
> > Just wondering if anyone is running cxf with openjdk. (1.6)
> >
> > Our application runs fine with the sun jdk but a slew of users have had
> > problems when they tried open jdk. On the mail-lists there was mention of
> > it not working but that was 3 years ago now I couldn't find anything
> > recent. The CXF mentions "jdk" compatability but doesn't specify if
> > they're talking about open-jdk or sun-jdk.
> >
> > I was just wondering if there's an update on the issue, is it suppose to
> > work now? (and it's just my application that's messed up) or is everyone
> > else using the sun jdk still?
>
> Honestly, I've never tried it.  There doesn't seem to be a Gentoo ebuild in
> portage for it or I would.
>
> CXF 1.6.1 should definitely work better than previous versions.   We've
> done
> a lot of testing with Java7  (Oracle) and fixes all the issues we found.
> With OpenJDK being similar to the Oracle 7 stuff, it may "just work".
>
> Definitely give it a spin and see if anything fails.   I'd be very curious
> to see how it works.
>
> --
> Daniel Kulp
> [email protected] - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>



-- 
Ted.

Reply via email to