You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Bruce Snyder (JIRA)" <ji...@apache.org> on 2007/12/04 18:21:28 UTC
[jira] Commented: (SM-1079) run mavn -Dmaven.test.skip=true
-Dprofile=step2 will fail due to messy profile property reference
[ https://issues.apache.org/activemq/browse/SM-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40780 ]
Bruce Snyder commented on SM-1079:
----------------------------------
Fixed in [revision 579037|http://svn.apache.org/viewvc?view=rev&revision=579037] and [revision 594479|http://svn.apache.org/viewvc?view=rev&revision=594479].
> run mavn -Dmaven.test.skip=true -Dprofile=step2 will fail due to messy profile property reference
> -------------------------------------------------------------------------------------------------
>
> Key: SM-1079
> URL: https://issues.apache.org/activemq/browse/SM-1079
> Project: ServiceMix
> Issue Type: Bug
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> the exception is like
> INFO] [xfire:wsgen {execution: default}]
> [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();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.