On Nov 19, 2012, at 5:43 AM, tomeks <[email protected]> wrote:

> Hi
> I found strange problem with generated WSDL from CXF 2.7. Content of WSDL
> differs between x64 and x86 JDK version, what causes Schema Validation to
> fail. On x86 everything works fine, but on x64 Schema Validation complains
> about missing element declaration (" Cannot find the declaration of element"
> ).
 
Are you sure it's just a difference between x64 and x86?   Is there a Java 6 -> 
Java 7 update in there as well?  That would certainly explain it (different 
JAXB versions).

Can you also check if there is a JAXB impl or api jar endorsed in the the 
ire/lib/endorsed or similar of one of the JDK's?   That could also affect it.


> Its looks like all used jar are the same on both versions (  also Jboss
> version match ).
> 
> This isn't probably caused by CXF its self by rather some strange JDK
> problem, but maybe someone already know the reason for such behavior.

Because there are differences in things like HashMap implementations in the 
various JDK's, some differences are "expected".  You can normally remove many 
of the differences by fully specifying various things with the JAXB annotations 
(like the propOrder on the @XmlType annotation).  Most of the other differences 
are just ignorable differences such as the order of the operations within a 
portType or order of the types in the schemas.   Those shouldn't have an impact 
on the runtime at all.


-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to