I am trying to setup following
development environment:
1. Eclipse
3.2
2. XFire
1.2.4
3. Maven2 Plugin for
Eclipse
4. XFire Plugin for
Eclipse.
Case 1. If I use XFire plugin for
Eclipse, I can generate the client stubs from my WSDL using the XFire plugin
Wizard.
Case 2. If I use Maven2 Plugin for
Eclipse / xfire:wsgen, invoking Maven2 will return NullPointerException trying
to load schemas that are imported on WSDL.
Case 3. I got the same error even
if I run Maven2 outside of Eclipse.
NOTE: The schemas that are included
by WSDL are pretty complex (HL7 schemas), containing circular imports and
recursive complex type definition. However, XFire plugin works, so I assume
that
WSDL + imported schemas are OK. On the project that uses XFire plugin nature
there are fewer jars added in classpath under XFire classpath container then
the project that uses Maven2 plugin enabled with Maven2 dependencies. My
guess, something is wrong with xfire:wsgen, either configuration wise either a
bug that I am not aware of.
Any feedback is much
appreciated.
Thanks,
Ioan