Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download Equinox framework (implementation in a standalone package as a jar).
  2. Copy bundles in bundle directory
    No Format
    mkdir ${equinox.home}/bundle
    cp ${jetty.home}/lib/*.jar ${equinox.home}/bundle/
    cp ${jetty.home}/lib/sip/*.jar ${equinox.home}/bundle/
    # Get OSGi specific dependencies
    cd ${equinox.home}/bundle/
    wget http://repo1.maven.org/maven2/org/eclipse/osgi/org.eclipse.osgi.services/3.2.100.v20100503/org.eclipse.osgi.services-3.2.100.v20100503.jar
    wget http://repo1.maven.org/maven2/org/eclipse/jetty/osgi/jetty-osgi-boot-warurl/7.5.0.v20110901/jetty-osgi-boot-warurl-7.5.0.v20110901.jar
    
  3. Compile Cipango-osgi-boot
    No Format
    
    cd ${cipango.src.home}/cipango-osgi/cipango-osgi-boot
    mvn install
    cp target/*.jar ${equinox.home}/bundle/
    cp jettyhome ${equinox.home} -r
    
  4. Start equinox
    No Format
    java -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -console
  5. Execute the following commands to install required bundles
    No Format
    install file:bundle/cipango-dar-2.12-SNAPSHOT.jar
    install file:bundle/cipango-deploy-2.2-SNAPSHOT.jar
    install file:bundle/cipango-server-2.2-SNAPSHOT.jar
    install file:bundle/jetty-client-7.5.0.v20110901.jar
    install file:bundle/jetty-continuation-7.5.0.v20110901.jar
    install file:bundle/jetty-deploy-7.5.0.v20110901.jar
    install file:bundle/jetty-http-7.5.0.v20110901.jar
    install file:bundle/jetty-io-7.5.0.v20110901.jar
    install file:bundle/jetty-jmx-7.5.0.v20110901.jar
    install file:bundle/jetty-osgi-boot-jsp-7.5.0.v20110901.jar
    install file:bundle/jetty-osgi-boot-warurl-7.5.0.v20110901.jar
    install file:bundle/jetty-security-7.5.0.v20110901.jar
    install file:bundle/jetty-server-7.5.0.v20110901.jar
    install file:bundle/jetty-servlet-7.5.0.v20110901.jar
    install file:bundle/jetty-servlets-7.5.0.v20110901.jar
    install file:bundle/jetty-util-7.5.0.v20110901.jar
    install file:bundle/jetty-webapp-7.5.0.v20110901.jar
    install file:bundle/jetty-websocket-7.5.0.v20110901.jar
    install file:bundle/jetty-xml-7.5.0.v20110901.jar
    install file:bundle/servlet-api-2.5.jar
    install file:bundle/sip-api-1.1.jar
    install file:bundle/org.eclipse.osgi.services_-3.32.0100.v20110513v20100503.jar
    install file:bundle/cipango-osgi-boot-2.2-SNAPSHOT.jar
    install file:bundle/jetty-osgi-boot-warurl-7.5.0.v20110901.jar
    

...

Start

  1. Start equinox with the command:
    No Format
    
    java -Djetty.etc.config.urls=etc/cipango

...

  1. -osgi.xml -Djetty.home=jettyhome -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar  -console
    
  2. Start cipango-osgi-boot and jetty-osgi-boot-warurl
    No Format
    
    start org.eclipse.jetty.osgi.boot
    start org.eclipse.jetty.osgi.boot.warurl
    

Demonstration

The application cipango-example-sipapp is used as it is a Sip application bundled like described in RFC66.

  1. Compile cipango-example-sipapp
    No Format
    
    cd ${cipango.src.home}/modules/examples/cipango-example-sipapp
    mvn install
    cp target/*.war ${equinox.home}/bundle/
    
  2. Start equinox
    No Format
    java -jar org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar -console
  3. deploy and start the application in exquinox
    No Format
    
    install war:file:bundle/cipango-example-sipapp.war
    start org.cipano.example-sipapp
    
  4. The cipango-example-sipapp is now deployed, you could test it.