Hi Ryan, 

This error has nothing to with CXF 2.0.2. 

The reason you 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(); 

I think add profile property into
samples/wsdl-first/wsdl-first-jsr181-su/pom.xml  explicitly just like 

<plugin> 
                <groupId>org.apache.servicemix.tooling</groupId> 
                <artifactId>xfire-maven-plugin</artifactId> 
                <version>${servicemix-version}</version> 
                <executions> 
                    <execution> 
                        <phase>generate-sources</phase> 
                        <configuration> 
                            <wsdls> 
                               
<wsdl>${basedir}/src/main/resources/person.wsdl</wsdl> 
                            </wsdls> 
                            <!--explictly specify profile to avoid top pom
profile reference--> 
                            <profile>Jsr181Profile</profile> 
                           
<outputDirectory>${basedir}/target/jaxws</outputDirectory> 
                        </configuration> 
                        <goals> 
                            <goal>wsgen</goal> 
                        </goals> 
                    </execution> 
                </executions> 
            </plugin> 

can simply fix it. Any way, I just fill a jira [1] to track it. 

[1]https://issues.apache.org/activemq/browse/SM-1079  

Best Regards 

Freeman 


Ryan Moquin wrote:
> 
> I'm working on building the latest servicemix from source, but I ran into
> a
> problem.  I'm building it against CXF 2.0.2, it doesn't look like that's
> the
> problem, but I'm guessing it could be.  Can anyone confirm whether it is,
> or
> if it's something else?  Thanks!
> 
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Samples :: WSDL first :: JSR181
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [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]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 36 seconds
> [INFO] Finished at: Sat Sep 22 12:58:57 EDT 2007
> [INFO] Final Memory: 64M/127M
> [INFO]
> ------------------------------------------------------------------------
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Building-the-latest-Servicemix-3.2-from-source-tf4501660s12049.html#a12862129
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to