Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » WAR Deploy
WAR Deploy [message #1073832] Thu, 25 July 2013 15:14 Go to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
Hi guys

I have a simple WAR and want to deploy it in Gemini, how to proceed? I am newbie in the area


Thank´s.
Re: WAR Deploy [message #1073855 is a reply to message #1073832] Thu, 25 July 2013 16:23 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

Let's imagine that you have already Gemini Web started.

If you want to install the Apache Tomcat examples, you can do the following:

- go to the console
- execute
osgi> install webbundle:file:<path-to-examples-folder>?Web-ContextPath=/examples
Bundle id is 33
osgi> start 33

- go to the browser and request http://localhost:8080/examples/

Some of the examples need additional tweaks.

If you want to test websocket example, you can do the following:

- go to the console
- execute
osgi> install webbundle:file:C:\vily\apache-tomcat-7.0.39\webapps\examples?Web-ContextPath=/examples&Import-Package=org.apache.catalina.websocket
Bundle id is 33
osgi> start 33

- go to the browser and request http://localhost:8080/examples/websocket

So some explanation:

When we use "webbundle" this will instruct Gemini Web to transform the web application to web application bundle.

If you have already a web application bundle then you do not need "webbundle". You also do not need Web-ContextPath and Import-Package as they are available in MANIFEST.MF file.

osgi> install file:osgi.web.app.war
Bundle id is 33
osgi> start 33


An example of web application bundle can be found here [1]

Regards
Violeta

[1] http://wiki.eclipse.org/images/f/f6/Osgi.web.app.zip

[Updated on: Thu, 25 July 2013 17:08]

Report message to a moderator

Re: WAR Deploy [message #1073874 is a reply to message #1073855] Thu, 25 July 2013 17:22 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
Thank´s Violeta,

I did what you said and the console showed :


LastModified         1374772200302
BundleContext        null
StartLevel           1
SymbolicName         ws
BundleId             356
BundleData           ws_0.0.0
KeyHashCode          356
ResolutionFailureException org.osgi.framework.BundleException: The bundle "ws_0.0.0 [356]" could not be resolved
Framework            org.eclipse.osgi.framework.internal.core.Framework@b27b8a0
Revisions            [ws_0.0.0]
StateChanging        null
BundleDescription    ws_0.0.0


Re: WAR Deploy [message #1073877 is a reply to message #1073874] Thu, 25 July 2013 17:27 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
What the state of the bundle at the moment?
Use "ss" in the console.
Re: WAR Deploy [message #1073885 is a reply to message #1073877] Thu, 25 July 2013 17:48 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member

The status is INSTALLED
Re: WAR Deploy [message #1073887 is a reply to message #1073885] Thu, 25 July 2013 17:53 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
OK can you now execute "diag <bundle-id>" and paste here the output of the command

Also execute "b <bundle-id>" and paste here the result

[Updated on: Thu, 25 July 2013 17:55]

Report message to a moderator

Re: WAR Deploy [message #1073894 is a reply to message #1073887] Thu, 25 July 2013 18:04 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
Let´s go.

Result diag command :

webbundle:file:C:\Users\leonardo\Documents\Java\libs\apache-tomcat-7.0.39\wtpwebapps\websocket?Web-ContextPath=/examples&Import-Package=org.apache.catalina.websocket [358]
  No unresolved constraints.


Result b command :

websocket_0.0.0 [358]
  Id=358, Status=ACTIVE      Data Root=C:\Users\leonardo\workspace\.metadata\.plugins\org.eclipse.pde.core\tomcat\org.eclipse.osgi\bundles\358\data
  "No registered services."
  No services in use.
  No exported packages
  Imported packages
    org.apache.catalina.websocket; version="7.0.35"<org.apache.catalina_7.0.35.v201302131125 [143]>
    javax.servlet; version="2.6.0"<javax.servlet_3.0.0.v201112011016 [71]>
    javax.servlet.annotation; version="2.6.0"<javax.servlet_3.0.0.v201112011016 [71]>
    javax.servlet.descriptor; version="2.6.0"<javax.servlet_3.0.0.v201112011016 [71]>
    javax.servlet.http; version="2.6.0"<javax.servlet_3.0.0.v201112011016 [71]>
    javax.servlet.jsp; version="2.2.0"<javax.servlet.jsp_2.2.0.v201112011158 [289]>
    javax.servlet.jsp.el; version="2.2.0"<javax.servlet.jsp_2.2.0.v201112011158 [289]>
    javax.servlet.jsp.tagext; version="2.2.0"<javax.servlet.jsp_2.2.0.v201112011158 [289]>
    javax.el; version="2.2.0"<javax.el_2.2.0.v201303151357 [285]>
    javax.crypto.interfaces; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CosNaming.NamingContextPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.DynamicAny.DynAnyFactoryPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.provisional.verifier; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.timer; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.jws; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.baseadaptor.hooks; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.spi.http; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.wiring; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.rmi.ssl; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.ranges; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.naming.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.stream; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.filechooser; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.lang.model; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.xpath; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.lang.model.util; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.eventmgr; version="1.2.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.naming.ldap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth.kerberos; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer.CurrentPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.crypto; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.naming.event; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.print.attribute.standard; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.plugins.bmp; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.baseadaptor.bundlefile; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.permissionadmin; version="1.2.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.handler.soap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.url; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.print.attribute; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.transform.dom; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.traversal; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sql.rowset.serial; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer.POAManagerPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.hooks.resolver; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.core.runtime.internal.adaptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sound.midi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.pluginconversion; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.event; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.util; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.net; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.stream.util; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.loading; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.print; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.Messaging; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto.dsig.keyinfo; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA.ORBPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf.multi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.namespace; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.startlevel; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.log; version="1.3.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.protocol; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.loader; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.transform.sax; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.localization; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.relation; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.naming; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.transform.stax; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.core.runtime.internal.stats; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.stub.java.rmi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto.dsig.dom; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.parsers; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.ietf.jgss; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.xpath; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind.attachment; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.composite; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.namespace; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.console; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework; version="1.7.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.storagemanager; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto.dsig.spec; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.permadmin; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.undo; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.text; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.print.event; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.resource; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.framework; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.stylesheets; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.script; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.ls; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableInterceptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA.TypeCodePackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.launch; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.util; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.environment; version="1.3.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind.annotation.adapters; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.serviceregistry; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.stream.events; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.jetty.npn; version="1.1.5"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sql; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.equinox.log.internal; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA_2_3; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.rmi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.datalocation; version="1.3.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.resolver; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.baseadaptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.soap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.modelmbean; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.html; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.debug; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.tree; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sound.midi.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.equinox.log; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.css; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.event; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.xml.sax; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.protocol.reference; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.handler; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.runnable; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.service.security; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.IOP.CodecFactoryPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.IOP; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.adaptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.reliablefile; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sql.rowset; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.core.runtime.adaptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf.basic; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.border; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.openmbean; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA.portable; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.Dynamic; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.security; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.event; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.DynamicAny.DynAnyPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.datatype; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.metadata; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.remote; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA.DynAnyPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.table; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.transform.stream; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.resolver; version="1.6.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.annotation.processing; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth.login; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.stream; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.hooks.service; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.IOP.CodecPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.jws.soap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.http; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind.helpers; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer.portable; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.text.rtf; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.cert; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.debug; version="1.2.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.lang.model.element; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.rmi.CORBA; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.soap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.events; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CosNaming; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CosNaming.NamingContextExtPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.text.html.parser; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.ws.wsaddressing; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.condpermadmin; version="1.1.1"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.crypto.spec; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer.POAPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.module; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.signedcontent; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.resolver.extras; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf.metal; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.accessibility; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.protocol.bundleresource; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.log; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.core; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.baseadaptor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.startlevel; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableServer.ServantLocatorPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.framework.internal.protocol.bundleentry; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.colorchooser; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.SendingContext; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.naming.directory; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.views; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.xml.sax.ext; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind.util; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth.x500; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.net.ssl; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.monitor; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.text.html; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf.nimbus; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.service.packageadmin; version="1.2.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.imageio.plugins.jpeg; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.internal.composite; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.w3c.dom.bootstrap; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.baseadaptor.loader; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.bind.annotation; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.launch; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.validation; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sound.sampled; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.xml.sax.helpers; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.lang.model.type; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.management.remote.rmi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.loader.buddy; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sound.sampled.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.activity; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.sql.rowset.spi; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.signedcontent; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.util.tracker; version="1.5.1"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.DynamicAny; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.PortableInterceptor.ORBInitInfoPackage; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.profile; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.sasl; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.security.auth.callback; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.internal.provisional.service.security; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.tools; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.hooks.bundle; version="1.1.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.activation; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.eclipse.osgi.service.urlconversion; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.transform; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.omg.CORBA_2_3.portable; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto.dsig; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    org.osgi.framework.hooks.weaving; version="1.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.swing.plaf.synth; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
    javax.xml.crypto.dom; version="0.0.0"<org.eclipse.osgi_3.9.0.v20130529-1710 [0]>
  No fragment bundles
  Named class space
    websocket; bundle-version="0.0.0"[provided]
  No required bundles

One more time, thank´s for help me.
Re: WAR Deploy [message #1073900 is a reply to message #1073894] Thu, 25 July 2013 18:11 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Is that the correct bundle?

The previous was with different id

BundleId 356
BundleData ws_0.0.0

This one is active and with id 358

websocket_0.0.0 [358]
Id=358, Status=ACTIVE

also please execute "services | grep examples"
Re: WAR Deploy [message #1073901 is a reply to message #1073900] Thu, 25 July 2013 18:14 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
It´s correct id bundle, I remade the install Smile

command result:

false.
Re: WAR Deploy [message #1073904 is a reply to message #1073901] Thu, 25 July 2013 18:23 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Smile

Leonardo Torres wrote on Thu, 25 July 2013 21:14

command result:

false.


hm strange then try this:

osgi> services (objectClass=*ServletContext)
Re: WAR Deploy [message #1073907 is a reply to message #1073904] Thu, 25 July 2013 18:28 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member

Result :

"No registered services."
Re: WAR Deploy [message #1073913 is a reply to message #1073907] Thu, 25 July 2013 18:38 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Sad

I'm looking for something like this:

osgi> b 34
examples_0.0.0 [34]
  Id=34, Status=ACTIVE      
  Registered Services
    {javax.servlet.ServletContext}={osgi.web.symbolicname=examples, osgi.web.contextpath=/examples, service.id=36}
  No services in use.

osgi> services (objectClass=*ServletContext)
{javax.servlet.ServletContext}={osgi.web.symbolicname=examples, osgi.web.contextpath=/examples, service.id=36}
  Registered by bundle: examples_0.0.0 [34]
  No bundles using service.



Can you stop/start the bundle and tell me whether there are some exceptions.

I can see that the bundle is transformed correctly and the import package is added also. The bundle is in ACTIVE state.
The only missing part is that the ServletContext in not registered as a service.

Also are you running Gemini Web standalone or inside IDE (which version)?
Re: WAR Deploy [message #1073917 is a reply to message #1073913] Thu, 25 July 2013 18:47 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member

No exception when I stop or start the bundle.

I running Gemini Web inside of Eclipse Kepler.

Let me do a review of the steps:

1 I created a web project.
2 I created a websoket.
3 I did the project deploy in tomcat dir.
4 I used the webbundle
Re: WAR Deploy [message #1073919 is a reply to message #1073917] Thu, 25 July 2013 18:55 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Is it possible to attach here the application?

pp: You can deploy war files also like the directories
i.e.install webbundle:file:<path-to-directory>OR<path-to-WAR>?....
Re: WAR Deploy [message #1073925 is a reply to message #1073919] Thu, 25 July 2013 19:13 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
Yes, It´s possible.

In fact, it is a project for my dissertation. Besides websocket, I need to put the JMS / ActiveMQ within the OSGi environment. But one thing at a time. Smile

In case, you want the WAR application?
Re: WAR Deploy [message #1074073 is a reply to message #1073925] Fri, 26 July 2013 03:33 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Leonardo Torres wrote on Thu, 25 July 2013 22:13

In case, you want the WAR application?

Yes please
Re: WAR Deploy [message #1074284 is a reply to message #1074073] Fri, 26 July 2013 12:25 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
It's all right.

Here is the project
Re: WAR Deploy [message #1076317 is a reply to message #1074284] Wed, 31 July 2013 06:48 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
That application is working on my system.

Can you try to reproduce it with a new workspace in Eclipse?
Re: WAR Deploy [message #1076504 is a reply to message #1076317] Wed, 31 July 2013 13:45 Go to previous messageGo to next message
Leonardo Torres is currently offline Leonardo TorresFriend
Messages: 16
Registered: March 2012
Junior Member
Thank´s for help. It´s work´s. Just one more question, how can I find the gemini repository in maven ?
Re: WAR Deploy [message #1076569 is a reply to message #1076504] Wed, 31 July 2013 15:34 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
we have maven repo [1] only for gemini bundles but not for the dependencies
[1] http://eclipse.org/gemini/web/download/
Previous Topic:Missing MySql constraint
Next Topic:GeminiBlueprint 1.0.2 and GeminiWeb 2.2.2
Goto Forum:
  


Current Time: Sat Nov 09 01:23:24 GMT 2024

Powered by FUDForum. Page generated in 0.45113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top