Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 87293 invoked from network); 22 Oct 2009 16:52:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 16:52:41 -0000 Received: (qmail 26148 invoked by uid 500); 22 Oct 2009 16:52:40 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 26038 invoked by uid 500); 22 Oct 2009 16:52:40 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 26030 invoked by uid 99); 22 Oct 2009 16:52:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 16:52:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.63] (HELO smtp108.prem.mail.sp1.yahoo.com) (98.136.44.63) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Oct 2009 16:52:29 +0000 Received: (qmail 43359 invoked from network); 22 Oct 2009 16:52:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Mime-Version:Subject:Date:References:X-Mailer; b=Rvo2VuMmrDY8mvY+3IL0PoQ6cECcQ5MtKTH3FbLXbZ8qGoY4mDXlg2Oy0Sim49r4KQsr9k/U0f7FzrCnsYn/3j9zTnYEPPM6YQwek3lMdhndGE9cgwDSPVhtU5smCQIWK+F9iBqgM3qgEPf9KBVS3B3H7QzSwGEulKSp4Fy6NlM= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 22 Oct 2009 09:52:05 -0700 PDT X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: h760.c4VM1kZY_6rVkxrymFWjQxh_01dtKLxNrcqgPh30DFHHxuswT0fLDNAcSxRVW9aI_pucYOIbPLatubFsJXODHMQx6ml8m4cvDX_BFAtRnt_QKhBAuVsvskL8mZOFUYwhbglg_Np19nCQP.qzvamf6WzPSS9eWoPQP1kohWzsGzvJGReUWy01AICVfBbqDFLMUwfDEUuKNXXI461ZNWANPCiDfKO_0C3n1WcMg_Rctbt13sNXpX3SVH108xLqp7tzpfalQ9H7dbx.cuyjpuNNXOpmNMEzhgpDxojzW.C3sfcqbxtzDjVxOSHaaz.tmlZbqk- X-Yahoo-Newman-Property: ymail-3 Message-Id: <0FF029B1-26F7-4D44-A668-E2F5631EFEA2@yahoo.com> From: David Jencks To: dev@geronimo.apache.org In-Reply-To: <432b67430910220013q15605dbh606745bb38160d13@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-26-897734444 Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: How to build and run geronimo OSGi-transformed framework Date: Thu, 22 Oct 2009 09:52:04 -0700 References: <432b67430910220013q15605dbh606745bb38160d13@mail.gmail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-26-897734444 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Thanks for the instructions -- I think this should be on a wiki page so it can be updated/referred to more easily? I'd guess http://cwiki.apache.org/GMOxDEV/index.html would be the best wiki piece. I think that maven 2.2.1 is required and also java 6. thanks david jencks On Oct 22, 2009, at 12:13 AM, Forrest Xia wrote: > I saw some changes happened in geronimo framework code tree, those > are the attempts to transform geronimo framework modules to OSGi > bundles. > > I am eager to know how it works, so I made some effort to pull the > code and try to make a build by self. Although the build process is > not so smoothly, I finally make it work. That's excited, isn't it? > Here are the steps for those who want to work on or study the > Geronimo OSGi transformation :-) > > 1. install and config build softwares > 1.1 maven 2.0.10 > 1.2 subversion > 1.3 sun jdk 1.5 or 1.6 > > 2. checkout and build servicemix4 bundles. > ServiceMix4 bundles are required by the new geronimo framework. The > build process is problematic and tricky, be patient :-) > $ svn co http://svn.apache.org/repos/asf/servicemix/smx4/all/ > smx4all > $ cd smx4all > $ mvn install -e > if you encounter error like "missing bundles-pom", do as follows: > $ cd bundles/bundles-pom > $ mvn install -e > After successfully built bundles-pom, you can start to build bundles > $ cd .. > $ mvn install -e > If you hit problem that says missing certain specific version of > bundles-pom, you need to manually update that bundle's pom.xml. In > my case, the groovy-1.5.6 has old bundles-pom dependency, so change > it to the new one "5-SNAPSHOT", then from the root of bundles, build > again. > $ mvn install -e > You need to make sure all bundles are successfully built and > installed into your local maven repository. > > Besides, you need to build these bundles additionally: > org.apache.servicemix.bundles.jaxb-impl/2.1.6_2-SNAPSHOT > org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHOT > org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT > > 3. Check out and build felix bundles. > Not all of felix bundles need to be built. For my experience, these > bundles are required: > org.osgi.core > org.osgi.foundation > org.osgi.compendium > > > 4. check out and build geronimo framework > check out geronimo code from trunk > $ svn co http://svn.apache.org/repos/asf/geronimo/server/trunk/ > gtrunk > build from framework > $ cd gtrunk/framework > $ mvn install -e > You will hit bundle missing problems. Go to bundles sub directory > and manually build each bundle, until all bundles are built > successfully. > $ cd bundles/asm-3.1 > $ mvn install -e > $ cd ../asm-commons-3.1 > $ mvn install -e > ... > The order is: > asm-3.1 asm-commons-3.1 commons-cli log4j plexus-utils plexus- > logging plexus-archiver sxc-jaxb sxc-runtime > You might encounter dependency missing errors when building plexus- > logging, plexus-archiver sxc-jaxb sxc-runtime, resolve them like this: > For plexus-logging and plexus-archiver, update plexus-utils' > version in pom.xml to the one you just built > For sxc-jaxb, you need to build > "org.apache.servicemix.bundles.jaxb-impl", back to servicemix4 > source tree and find it to build > > Back to framework directory, and build again: > $ mvn install -e > > You might to need to download some bundles manually. For my > experience, these bundles are manually downloaded and installed: > wget http://repository.code-house.org/content/repositories/release/org/osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519/org.osgi.impl.bundle.jmx-4.2.0.200907080519.jar > mvn install:install-file -DgroupId=org.osgi - > DartifactId=org.osgi.impl.bundle.jmx -Dversion=4.2.0.200907080519 - > Dpackaging=jar -Dfile=org.osgi.impl.bundle.jmx-4.2.0.200907080519.jar > > 5. After you see success prompt, you can try to run osgi-ed geronimo > framework like this: > $ cd /framework/assemblies/geronimo-framework/target/ > assembly/bin > $ chmod +x * > $ ./karaf > Auto-properties start: org.osgi.framework.BundleException: Fragment > bundles can not be started. > log4j:WARN No appenders could be found for logger > (org.ops4j.pax.url.commons.handler.HandlerActivator). > log4j:WARN Please initialize the log4j system properly. > __ __ ____ > / //_/____ __________ _/ __/ > / ,< / __ `/ ___/ __ `/ /_ > / /| |/ /_/ / / / /_/ / __/ > /_/ |_|\__,_/_/ \__,_/_/ > > Apache Felix Karaf (1.1.0-SNAPSHOT) > > Hit '' for a list of available commands > and '[cmd] --help' for help on a specific command. > Hit '' or 'osgi:shutdown' to shutdown Karaf. > > karaf@root> Module 1/5 org.apache.geronimo.framework/j2ee-system/3.0- > SNAPSHOT/car started in .000s > Module 2/5 org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/ > car started in .097s > Module 3/5 org.apache.geronimo.framework/plugin/3.0-SNAPSHOT/ > car started in .085s > Module 4/5 org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/ > car started in .272s > Module 5/5 org.apache.geronimo.framework/server-security-config/3.0- > SNAPSHOT/car started in .021s > Startup completed in 4.069s seconds > Listening on Ports: > 1099 0.0.0.0 RMI Naming > 9999 0.0.0.0 JMX Remoting Connector > > Geronimo Application Server started > > karaf@root> > > > OK! now you can try to install some application bundles with OSGi > commands. For how to use this console, see http://felix.apache.org/site/karaf-users-guide.html > > --Apple-Mail-26-897734444 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Thanks for the instructions -- = I think this should be on a wiki page so it can be updated/referred to = more easily?

I'd guess http://cwiki.apache.or= g/GMOxDEV/index.html would be the best wiki = piece.

I think that maven 2.2.1 is required and = also java 6.

thanks
david = jencks

On Oct 22, 2009, at 12:13 AM, Forrest Xia = wrote:

I saw some changes happened in geronimo framework code = tree, those are the attempts to transform geronimo framework modules to = OSGi bundles.

I am eager to know how it works, so I made some = effort to pull the code and try to make a build by self. Although the = build process is not so smoothly, I finally make it work. That's = excited, isn't it? Here are the steps for those who want to work on or = study the Geronimo OSGi transformation :-)

1. install and config = build softwares
1.1 maven 2.0.10
1.2 subversion
1.3 sun jdk 1.5 = or 1.6

2. checkout and build servicemix4 bundles.
ServiceMix4 = bundles are required by the new geronimo framework. The build process is = problematic and tricky, be patient :-)
  $ svn co http://svn.a= pache.org/repos/asf/servicemix/smx4/all/ smx4all
  $ cd = smx4all
  $ mvn install -e
if you encounter error like = "missing bundles-pom", do as follows:
  $ cd = bundles/bundles-pom
  $ mvn install -e
After successfully = built bundles-pom, you can start to build bundles
  $ cd = ..
  $ mvn install -e
If you hit problem that says missing = certain specific version of bundles-pom, you need to manually update = that bundle's pom.xml. In my case, the groovy-1.5.6 has old bundles-pom = dependency, so change it to the new one "5-SNAPSHOT", then from the root = of bundles, build again.
  $ mvn install -e
You need to make = sure all bundles are successfully built and installed into your local = maven repository.

Besides, you need to build these bundles = additionally:
  = org.apache.servicemix.bundles.jaxb-impl/2.1.6_2-SNAPSHOT
  = org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHOT
  = org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT

3. Check = out and build felix bundles.
Not all of felix bundles need to be = built. For my experience, these bundles are required:
  = org.osgi.core
  org.osgi.foundation
  = org.osgi.compendium
 

4. check out and build geronimo = framework
check out geronimo code from trunk
  $ svn co http://svn= .apache.org/repos/asf/geronimo/server/trunk/ gtrunk
build from = framework
  $ cd gtrunk/framework
  $ mvn install = -e
You will hit bundle missing problems. Go to bundles sub directory = and manually build each bundle, until all bundles are built = successfully.
  $ cd bundles/asm-3.1
  $ mvn install = -e
  $ cd ../asm-commons-3.1
  $ mvn install = -e
  ...
The order is:
  asm-3.1  = asm-commons-3.1  commons-cli  log4j  plexus-utils = plexus-logging plexus-archiver  sxc-jaxb  sxc-runtime
You = might encounter dependency missing errors when building plexus-logging, = plexus-archiver sxc-jaxb sxc-runtime, resolve them like this:
  = For plexus-logging and plexus-archiver, update plexus-utils' version in = pom.xml to the one you just built
  For sxc-jaxb, you need to = build "org.apache.servicemix.bundles.jaxb-impl", back to servicemix4 = source tree and find it to build

Back to framework directory, = and build again:
  $ mvn install -e

You might to need to = download some bundles manually. For my experience, these bundles are = manually downloaded and installed:
  wget http://repository.code-house.org/content/repositor= ies/release/org/osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519/org.osgi.= impl.bundle.jmx-4.2.0.200907080519.jar
   mvn = install:install-file -DgroupId=3Dorg.osgi = -DartifactId=3Dorg.osgi.impl.bundle.jmx -Dversion=3D4.2.0.200907080519 = -Dpackaging=3Djar = -Dfile=3Dorg.osgi.impl.bundle.jmx-4.2.0.200907080519.jar

5. After = you see success prompt, you can try to run osgi-ed geronimo framework = like this:
  $ cd = <gtrunk>/framework/assemblies/geronimo-framework/target/assembly/bin=
  $ chmod +x *
  $ ./karaf
Auto-properties start: = org.osgi.framework.BundleException: Fragment bundles can not be = started.
log4j:WARN No appenders could be found for logger = (org.ops4j.pax.url.commons.handler.HandlerActivator).
log4j:WARN = Please initialize the log4j system = properly.
        __ = __            =       ____     =  
       / //_/____ __________ _/ = __/      
      / = ,<  / __ `/ ___/ __ `/ /_       =  
     / /| |/ /_/ / /  / /_/ / = __/        
    = /_/ |_|\__,_/_/   = \__,_/_/         

  = Apache Felix Karaf (1.1.0-SNAPSHOT)

Hit '<tab>' for a list = of available commands
and '[cmd] --help' for help on a specific = command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown = Karaf.
 
karaf@root> Module 1/5 = org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car  &nbs= p;         started = in   .000s
Module 2/5 = org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car   = ;          started = in   .097s
Module 3/5 = org.apache.geronimo.framework/plugin/3.0-SNAPSHOT/car   &nb= sp;            = ; started in   .085s
Module 4/5 = org.apache.geronimo.framework/j2ee-security/3.0-SNAPSHOT/car  &n= bsp;       started in   = .272s
Module 5/5 = org.apache.geronimo.framework/server-security-config/3.0-SNAPSHOT/car = started in   .021s
Startup completed in 4.069s = seconds
  Listening on Ports:
    1099 0.0.0.0 = RMI Naming
    9999 0.0.0.0 JMX Remoting = Connector

Geronimo Application Server = started

karaf@root>


OK! now you can try to install = some application bundles with OSGi commands. For how to use this = console, see http://felix.= apache.org/site/karaf-users-guide.html
=


= --Apple-Mail-26-897734444--