You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by samjoe9998 <sa...@yahoo.com> on 2007/12/07 22:05:41 UTC

Problem to build Servicemix 4.0 in Windows XP.

I checked out the servicemix 4.0 today (2007/12/07). 
http://svn.apache.org/repos/asf/servicemix/branches/servicemix-4.0

I use Windows XP and tried to build SMX4 source, but failed. Finally I made
it build but I don't know how to run it. Here are the steps. 

1) Build exception - method cannot be found in RchClient. It turns out there
is a new version of gshell-remote-client.jar in
.m2\repository\org\apache\geronimo\gshell\remote\gshell-remote-client\1.0-alpha-1-SNAPSHOT.
What I did is to copy
gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar to a /tmp folder,
and reinstall it using command,
mvn install:install-file -DgroupId=org.apache.geronimo.gshell.remote
-DartifactId=gshell-remote-client -Dversion=1.0-alpha-1-SNAPSHOT
-Dpackaging=jar
-Dfile=gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar
-DgeneratePom=true

2) After fixed 1. Everything build successfully. Then I run 'mvn
eclipse:eclipse' and and try to import all projects into eclipse. There are
three projects marked as 'x' which indicate the jar path is missing:
org.apache.servicemix.runtime.filemonitor
org.apache.servicemix.openejb
org.apache.servicemix.itests.tests
All of them miss openejb classpath, so I just fix it by copy the following
depedencies to the individual pom.xml

        <!-- add openejb path to eclipse classpath when 'mvn
eclipse:eclipse' -->
		<dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-client</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-core</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
		<dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-cxf</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-ejbd</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>        
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-http</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
		<dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-javaagent</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-jee</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
		<dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-loader</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>          
		<dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-server</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-webservices</artifactId>
            <version>3.0.0-SNAPSHOT</version>
        </dependency>  
        <!-- end of add openejb path to eclipse classpath when 'mvn
eclipse:eclipse' -->

Now, run 'mvn eclipse:eclipse' again will fix the 'x' marks in Eclipse.


3) I unzipped the final build apache-servicemix-4.0-SNAPSHOT.zip to /tmp
folder and want to run bin/servicemix.bat, the command complaints that
bootstrapper.jar is not available. According to servicemix.sh, that .jar has
been renamed to servicemix.jar. so, I patched servicemix.bat to use
servicemix.jar instead of bootstrapper.jar. 

Now, I can start servicemix. It outputs,


Welcome to Servicemix:
===============
Enter Profile Name:

Then, I don't know what to do. What is profile name? How do I continue
running Servicemix 4.0 from here? Your help is appreciated. 




-- 
View this message in context: http://www.nabble.com/Problem-to-build-Servicemix-4.0-in-Windows-XP.-tf4964452s12049.html#a14220589
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Re: Problem to build Servicemix 4.0 in Windows XP.

Posted by Guillaume Nodet <gn...@gmail.com>.
The results if you build from the root may be unstable.
Please build the runtime subtree only and you will find the distribution in
   runtime/assembly/target

This one should work without any problems.

On Dec 8, 2007 9:39 AM, Jeff Yu <je...@gmail.com> wrote:

> I am a bit unsure about your apache-servicemix-4.0-SNAPSHOT.zip, usually,
> I
> build this zip in the $SMX4_HOME/apache-servicemix module, run "mvn
> install", and then I will get this zip in the target folder..
>
> How did you get this zip file?? I haven't seen that need to provide a
> profile name if I run the servicemix.bat in the bin folder.
>
> Thanks
> Jeff
>
> On Dec 8, 2007 5:05 AM, samjoe9998 <sa...@yahoo.com> wrote:
>
> >
> > I checked out the servicemix 4.0 today (2007/12/07).
> > http://svn.apache.org/repos/asf/servicemix/branches/servicemix-4.0
> >
> > I use Windows XP and tried to build SMX4 source, but failed. Finally I
> > made
> > it build but I don't know how to run it. Here are the steps.
> >
> > 1) Build exception - method cannot be found in RchClient. It turns out
> > there
> > is a new version of gshell-remote-client.jar in
> >
> >
> .m2\repository\org\apache\geronimo\gshell\remote\gshell-remote-client\1.0-alpha-1-SNAPSHOT.
> > What I did is to copy
> > gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar to a /tmp
> folder,
> > and reinstall it using command,
> > mvn install:install-file -DgroupId=org.apache.geronimo.gshell.remote
> > -DartifactId=gshell-remote-client -Dversion=1.0-alpha-1-SNAPSHOT
> > -Dpackaging=jar
> > -Dfile=gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar
> > -DgeneratePom=true
> >
> > 2) After fixed 1. Everything build successfully. Then I run 'mvn
> > eclipse:eclipse' and and try to import all projects into eclipse. There
> > are
> > three projects marked as 'x' which indicate the jar path is missing:
> > org.apache.servicemix.runtime.filemonitor
> > org.apache.servicemix.openejb
> > org.apache.servicemix.itests.tests
> > All of them miss openejb classpath, so I just fix it by copy the
> following
> > depedencies to the individual pom.xml
> >
> >        <!-- add openejb path to eclipse classpath when 'mvn
> > eclipse:eclipse' -->
> >                <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-client</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-core</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >                <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-cxf</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-ejbd</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-http</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >                <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-javaagent</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-jee</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >                <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-loader</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >                <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-server</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.apache.openejb</groupId>
> >            <artifactId>openejb-webservices</artifactId>
> >            <version>3.0.0-SNAPSHOT</version>
> >        </dependency>
> >        <!-- end of add openejb path to eclipse classpath when 'mvn
> > eclipse:eclipse' -->
> >
> > Now, run 'mvn eclipse:eclipse' again will fix the 'x' marks in Eclipse.
> >
> >
> > 3) I unzipped the final build apache-servicemix-4.0-SNAPSHOT.zip to /tmp
> > folder and want to run bin/servicemix.bat, the command complaints that
> > bootstrapper.jar is not available. According to servicemix.sh, that .jar
> > has
> > been renamed to servicemix.jar. so, I patched servicemix.bat to use
> > servicemix.jar instead of bootstrapper.jar.
> >
> > Now, I can start servicemix. It outputs,
> >
> >
> > Welcome to Servicemix:
> > ===============
> > Enter Profile Name:
> >
> > Then, I don't know what to do. What is profile name? How do I continue
> > running Servicemix 4.0 from here? Your help is appreciated.
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Problem-to-build-Servicemix-4.0-in-Windows-XP.-tf4964452s12049.html#a14220589
> > Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Thanks
> Jeff
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Problem to build Servicemix 4.0 in Windows XP.

Posted by Jeff Yu <je...@gmail.com>.
I am a bit unsure about your apache-servicemix-4.0-SNAPSHOT.zip, usually, I
build this zip in the $SMX4_HOME/apache-servicemix module, run "mvn
install", and then I will get this zip in the target folder..

How did you get this zip file?? I haven't seen that need to provide a
profile name if I run the servicemix.bat in the bin folder.

Thanks
Jeff

On Dec 8, 2007 5:05 AM, samjoe9998 <sa...@yahoo.com> wrote:

>
> I checked out the servicemix 4.0 today (2007/12/07).
> http://svn.apache.org/repos/asf/servicemix/branches/servicemix-4.0
>
> I use Windows XP and tried to build SMX4 source, but failed. Finally I
> made
> it build but I don't know how to run it. Here are the steps.
>
> 1) Build exception - method cannot be found in RchClient. It turns out
> there
> is a new version of gshell-remote-client.jar in
>
> .m2\repository\org\apache\geronimo\gshell\remote\gshell-remote-client\1.0-alpha-1-SNAPSHOT.
> What I did is to copy
> gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar to a /tmp folder,
> and reinstall it using command,
> mvn install:install-file -DgroupId=org.apache.geronimo.gshell.remote
> -DartifactId=gshell-remote-client -Dversion=1.0-alpha-1-SNAPSHOT
> -Dpackaging=jar
> -Dfile=gshell-remote-client-1.0-alpha-1-20071207.163731-11.jar
> -DgeneratePom=true
>
> 2) After fixed 1. Everything build successfully. Then I run 'mvn
> eclipse:eclipse' and and try to import all projects into eclipse. There
> are
> three projects marked as 'x' which indicate the jar path is missing:
> org.apache.servicemix.runtime.filemonitor
> org.apache.servicemix.openejb
> org.apache.servicemix.itests.tests
> All of them miss openejb classpath, so I just fix it by copy the following
> depedencies to the individual pom.xml
>
>        <!-- add openejb path to eclipse classpath when 'mvn
> eclipse:eclipse' -->
>                <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-client</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-core</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>                <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-cxf</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-ejbd</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-http</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>                <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-javaagent</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-jee</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>                <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-loader</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>                <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-server</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.apache.openejb</groupId>
>            <artifactId>openejb-webservices</artifactId>
>            <version>3.0.0-SNAPSHOT</version>
>        </dependency>
>        <!-- end of add openejb path to eclipse classpath when 'mvn
> eclipse:eclipse' -->
>
> Now, run 'mvn eclipse:eclipse' again will fix the 'x' marks in Eclipse.
>
>
> 3) I unzipped the final build apache-servicemix-4.0-SNAPSHOT.zip to /tmp
> folder and want to run bin/servicemix.bat, the command complaints that
> bootstrapper.jar is not available. According to servicemix.sh, that .jar
> has
> been renamed to servicemix.jar. so, I patched servicemix.bat to use
> servicemix.jar instead of bootstrapper.jar.
>
> Now, I can start servicemix. It outputs,
>
>
> Welcome to Servicemix:
> ===============
> Enter Profile Name:
>
> Then, I don't know what to do. What is profile name? How do I continue
> running Servicemix 4.0 from here? Your help is appreciated.
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Problem-to-build-Servicemix-4.0-in-Windows-XP.-tf4964452s12049.html#a14220589
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>
>


-- 
Thanks
Jeff