Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
the exception is like
INFO] [xfire:wsgen
]
[INFO] Executing XFire WsGen task with url:
file:/C:/java_3rd_party/servicemix/servicemix-src/samples/wsdl-first/wsdl-fir
st-jsr181-su/src/main/resources/person.wsdl
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] command execution failed
Embedded error: java.lang.ClassNotFoundException: step2
[INFO]
The reason you we see this error is that the -Dprofile=step2 which should only be used by servicemix is also passed into the sub-module of servicemix project, which is samples/wsdl-first/wsdl-first-jsr181-su, and wsdl-first-jsr181-su use xfire codegen plugin try to resolve this profile "step2" as a profile class, you can see the relavant code in xfire Wsdl11Generator.java is like
if (profile == null) profile = Jsr181Profile.class.getName();
PluginProfile profileObj =
(PluginProfile) ClassLoaderUtils.loadClass(profile, getClass()).newInstance();