...
- Download Equinox framework (implementation in a standalone package as a jar).
- 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/ cp ${jetty.home}/lib/ext/cipango-dar*.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.56.07.v20110901v20120910/jetty-osgi-boot-warurl-7.56.07.v20110901v20120910.jar
- 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
- Start equinox
No Format java -jar org.eclipse.osgi_3.7.12.R37x_v20110808v20120110-11061415.jar -console
- Execute the following commands to install required bundles
No Format install file:bundle/cipango-dar-2.2-SNAPSHOT.jar install file:bundle/cipango-annotations-2.2-SNAPSHOT.jar install file:bundle/cipango-callflow-2.2-SNAPSHOT.jar install file:bundle/cipango-deploy-2.2-SNAPSHOT.jar install file:bundle/cipango-jmx-2.2-SNAPSHOT.jar install file:bundle/cipango-plus-2.2-SNAPSHOT.jar install file:bundle/cipango-server-2.2-SNAPSHOT.jar install file:bundle/jetty-ajp-7.6.7.v20120910.jar install file:bundle/jetty-annotations-7.6.7.v20120910.jar install file:bundle/jetty-client-7.56.07.v20110901v20120910.jar install file:bundle/jetty-continuation-7.56.07.v20110901v20120910.jar install file:bundle/jetty-deploy-7.56.07.v20110901v20120910.jar install file:bundle/jetty-http-7.56.07.v20110901v20120910.jar install file:bundle/jetty-io-7.56.07.v20110901v20120910.jar install file:bundle/jetty-jmx-7.56.07.v20110901v20120910.jar install file:bundle/jetty-osgi-boot-warurljndi-7.6.7.v20120910.jar install file:bundle/jetty-plus-7.56.07.v20110901v20120910.jar install file:bundle/jetty-securitypolicy-7.56.07.v20110901v20120910.jar install file:bundle/jetty-serverrewrite-7.56.07.v20110901v20120910.jar install file:bundle/jetty-servletsecurity-7.56.07.v20110901v20120910.jar install file:bundle/jetty-servletsserver-7.56.07.v20110901v20120910.jar install file:bundle/jetty-utilservlet-7.56.07.v20110901v20120910.jar install file:bundle/jetty-webappservlets-7.56.07.v20110901v20120910.jar install file:bundle/jetty-websocketutil-7.56.07.v20110901v20120910.jar install file:bundle/jetty-xmlwebapp-7.56.07.v20110901v20120910.jar install file:bundle/servletjetty-api-2.5websocket-7.6.7.v20120910.jar install file:bundle/sipjetty-api-1.1xml-7.6.7.v20120910.jar install file:bundle/org.eclipse.osgi.services-3.2.100.v20100503.jar install file:bundle/cipangoservlet-osgi-bootapi-2.2-SNAPSHOT.5.jar install file:bundle/sip-api-1.1.jar install file:bundle/jetty-osgi-boot-warurl-7.6.7.5.0.v20110901v20120910.jar install file:bundle/cipango-osgi-boot-2.2-SNAPSHOT.jar
Start
- Start equinox with the command:
No Format java -Djetty.etc.config.urls=etc/cipango-osgi.xml -Djetty.home=jettyhome -jar org.eclipse.osgi_3.7.12.R37x_v20110808v20120110-11061415.jar -console
- Start cipango-osgi-boot and jetty-osgi-boot-warurl
No Format start org.eclipse.jetty.osgi.boot start org.eclipse.jetty.osgi.boot.warurl
...
- Compile
cipango-example-sipapp
No Format cd ${cipango.src.home}/modules/examples/cipango-example-sipapp mvn install cp target/*.war ${equinox.home}/bundle/
- Start equinox
No Format java -jar org.eclipse.osgi_3.7.12.R37x_v20110808v20120110-11061415.jar -console
- deploy and start the application in exquinox
No Format install war:file:bundle/cipango-example-sipapp.war start org.cipano.example-sipapp
- The
cipango-example-sipapp
is now deployed, you could test it.