equinox

How to setup a proper equinox installation

荒凉一梦 提交于 2019-12-12 09:41:11
问题 I googled this for hours but I couldn't find anything useful. I have developed some OSGi bundles and now I want to run them outside of the Eclipse IDE in the equinox container, but it always throws an exception: !SESSION 2011-01-03 14:26:58.958 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_CH Framework arguments: -Dosgi.clean=true -Declipse.ignoreApp

OSGI container identification Equinox / knopflerfish and relation ship between equinox osgi jar and core osgi jar

纵饮孤独 提交于 2019-12-11 23:50:15
问题 Question 1:- I am working on a project which heavily uses OSGI. I am a newbee to OSGI. In my project I see JARS for both equinox and knopflerfish / and or knopflerfish bundles. Question2:- How do I determine among Equinox and Knoplerfish, which container does the OSGI use in my project? I assume OSGI can not use both the containers at a time. Question 3:- This link mentions Equinox framework requires org.eclipse.osgi_<version>.jar to implement OSGI core. So does this mean it does not require

osgi.baseConfiguration.area does not resolve using a relative path

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:22:49
问题 My company produces a small suite of Eclipse RCP applications that are installed into the same shared location on Windows (C:\Program Files (x86)\MyCompany). They share a plug-ins directory but have separate configuration areas. The desired location for osgi.configuration.area, osgi.user.area, and osgi.instance.area are in a user's roaming application data area (%APPDATA% on Windows XP/7). Due to localization requirements and differences in path locations between the OSes, it is not

e(fx)clipse equinox compilation error

Deadly 提交于 2019-12-11 19:55:18
问题 I'm developing an OSGI (Equinox) Based-System and i came across JavaFX, i was trying the e(fx)clipse {OSGI bundle project} and i wrote a simple test project, but it is giving me some compilation errors. i have a main class : import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.stage.Stage; public class main extends Application { private static main _main ; public main () { _main = this; } public static main

Deploying OSGi Servlet to Domino (IBM presentation) - 404 error

浪尽此生 提交于 2019-12-11 18:28:52
问题 I´m trying to deploy an OSGi container in Domino using PDE tool with Equinox. I´m following the instruction in this IBM slideshow: http://www.slideshare.net/fiorep/domino-osgi-development?next_slideshow=1 However (as per slide #52) when I browse to http://localhost/simpledemo (after clicking Debug from Debug Configuration), I get a "404 file not found" error. "simpledemo" is the alias mapped in the puligin.xml file (slide 44). The servlet name is however SimpleServlet. Any ideas what is going

Running p2.process.artifacts in Jenkins

孤人 提交于 2019-12-11 16:27:51
问题 I read the SO post Running P2 Ant tasks outside Eclipse, which was a great help. I am trying to call p2.process.artifacts, however I am not sure what arguments should I pass to java task call. What should value for application argument be and how can I pass augment for jar signing (p2.process.arifacts:sign) to this call which is nested in p2.process.artifacts element? Thanks, Alex 回答1: If you want to run with Java calling Eclipse's AntRunner to run an ant script (eg., build.xml) containing

Who loads javax.swing.* classes in Equinox osgi container?

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:12:53
问题 I read some equinox code and doc. I came to understand that, at present, only class loading for java.* packages are delegated to the parent classloader(given that i have not modified org.osgi.bootdelegation property, which by the way seems to be null). Then who is loading the javax.swing.* classes. I have not mentioned it anywhere in the imported packages/ required bundles, but still it loads just fine. I wanted to know who the heck is "formally" responsible for loading it? Thanks a lot in

JNDI lookup from OSGI equinox bundle deployed on tomcat (bridged mode)

倾然丶 夕夏残阳落幕 提交于 2019-12-11 02:41:27
问题 I have my datasource configured in tomcat\context.xml. I have deployed a bridge.war provided by Eclipse to get servletbridge environment. I have developed another osgi bundle which contains servlet registation code and my aim is to do JNDI look up for datasource from this servlet bundle. However I get javax.naming.NoInitialContextException:Cannot instantiate class: org.apache.naming.java.javaURLContextFactory (root cause classnotfound for org.apache.naming.java.javaURLContextFactory) when I

Metro + Jetty + OSGi = pain

烈酒焚心 提交于 2019-12-10 12:00:03
问题 I am trying to swap out Sun's HTTPServer for the much better Jetty server, within an OSGi bundle, running on Equinox. I have tried this: System.setProperty("com.sun.net.httpserver.HttpServerProvider","org.mortbay.jetty.j2se6.JettyHttpServerProvider"); but when endpoint.publish(url) is called, and the server is spawned, it complains of a ClassNotFoundException for org.mortbay.jetty.j2se6.JettyHttpServerProvider. However, the correct jars are in the bundle, and indeed in the Activator I can

How to change value of 'Read timeout' of Eclipse's Update Manager?

半世苍凉 提交于 2019-12-09 05:25:53
问题 How to change value of 'Read timeout' of Eclipse's Update Manager? I have slow internet connection and I cannot install any plugin, because Eclipse's Update manager throws me exception: Transfer Exception java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons