You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2007/09/24 17:31:22 UTC

[jira] Created: (SM-1079) run mavn -Dmaven.test.skip=true -Dprofile=step2 will fail due to messy profile property reference

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.


[jira] Resolved: (SM-1079) run mavn -Dmaven.test.skip=true -Dprofile=step2 will fail due to messy profile property reference

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-1079.
------------------------------

    Resolution: Fixed

> 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.