Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox application not working
Equinox application not working [message #482442] Wed, 26 August 2009 14:29 Go to next message
Marco Barbi is currently offline Marco BarbiFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I've been developing an Equinox application with Eclipse 3.5 and currently
I'm stuck because I cannot see my application working outside Eclipse!
In details, my application is an headless (ie no RCP, no ui) Equinox
application. Within Eclipse, I defined a target platform, placed eclipse
org.eclipse.osgi plugin, added my own plugin along with third party
bundles (spring, hibernate, etc). I also created an Equinox launch
configuration, and everything works well. The framework status is:

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.100.v20090629
24 RESOLVED it.satanet.bridge.log4j_fragment_1.0.0
Master=50
26 ACTIVE com.springsource.antlr_2.7.7
28 ACTIVE com.springsource.org.apache.commons.collections_3.2.1
29 ACTIVE com.springsource.slf4j.api_1.5.6
Fragments=35
30 ACTIVE com.springsource.edu.emory.mathcs.backport_3.1.0
33 ACTIVE com.springsource.org.dom4j_1.6.1
34 RESOLVED com.springsource.org.hibernate.annotations_3.4.0.GA
Master=42
35 RESOLVED com.springsource.slf4j.log4j_1.5.6
Master=29
36 ACTIVE org.springframework.osgi.extender_1.2.0
37 ACTIVE org.springframework.osgi.io_1.2.0
40 ACTIVE com.springsource.org.hibernate.annotations.common_3.3.0.ga
42 ACTIVE com.springsource.org.hibernate_3.3.1.GA
Fragments=34
44 ACTIVE com.springsource.org.objectweb.asm_2.2.3
45 ACTIVE com.springsource.javax.xml.stream_1.0.1
46 ACTIVE com.springsource.net.sf.cglib_2.1.3
47 ACTIVE org.springframework.osgi.extensions.annotations_1.2.0
49 ACTIVE org.springframework.osgi.core_1.2.0
50 ACTIVE org.springframework.osgi.log4j.osgi_1.2.15.SNAPSHOT
Fragments=24
51 ACTIVE com.springsource.javax.persistence_1.99.0
52 ACTIVE com.springsource.javassist_3.3.0.ga
53 ACTIVE com.springsource.slf4j.org.apache.commons.logging_1.5.6
54 ACTIVE com.springsource.org.jgroups_2.5.1
55 ACTIVE com.springsource.org.aopalliance_1.0.0
58 ACTIVE org.springframework.context.support_2.5.6.A
59 ACTIVE org.springframework.aspects_2.5.6.A
60 ACTIVE org.springframework.aop_2.5.6.A
61 ACTIVE org.springframework.jdbc_2.5.6.A
62 ACTIVE org.springframework.orm_2.5.6.A
63 ACTIVE org.springframework.beans_2.5.6.A
64 ACTIVE org.springframework.context_2.5.6.A
65 ACTIVE org.springframework.core_2.5.6.A
66 ACTIVE org.springframework.transaction_2.5.6.A
70 ACTIVE com.springsource.javax.transaction_1.1.0
82 ACTIVE it.satanet.bridge.common_1.0.0
92 ACTIVE com.springsource.junit_3.8.2
110 ACTIVE org.springframework.integration_1.0.3.RELEASE
112 ACTIVE org.springframework.integration.file_1.0.3.RELEASE
114 ACTIVE it.satanet.bridge.hsqldb_1.0.0
116 ACTIVE it.satanet.bridge.core_1.0.0


Now, I'd like to run the application outside Eclipse IDE. I followed the
Equinox documentation and I created a folder, copied there the plugins
contained in my launch application, authored the config.ini file and tried
to launch the Equinox platform. The result is that the platform starts
without errors, but:

1) log4j fragment is ignored: "log4j:WARN No appenders could be found for
logger (org.springframework.osgi.extender.internal.activator.Contex
tLoaderListener).
log4j:WARN Please initialize the log4j system properly."

2) The Spring extender doesn't load the xml configurations, thus the
application doesn't do anything!

Here the framework status outside Eclipse:
Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.100.v20090629
1 RESOLVED it.satanet.bridge.log4j_fragment_1.0.0
Master=18
2 ACTIVE com.springsource.antlr_2.7.7
3 ACTIVE com.springsource.org.apache.commons.collections_3.2.1
4 ACTIVE com.springsource.slf4j.api_1.5.6
Fragments=8
5 ACTIVE com.springsource.edu.emory.mathcs.backport_3.1.0
6 ACTIVE com.springsource.org.dom4j_1.6.1
7 RESOLVED com.springsource.org.hibernate.annotations_3.4.0.GA
Master=12
8 RESOLVED com.springsource.slf4j.log4j_1.5.6
Master=4
9 ACTIVE org.springframework.osgi.extender_1.2.0
10 ACTIVE org.springframework.osgi.io_1.2.0
11 ACTIVE
com.springsource.org.hibernate.annotations.common_3.3.0.ga
12 ACTIVE com.springsource.org.hibernate_3.3.1.GA
Fragments=7
13 ACTIVE com.springsource.org.objectweb.asm_2.2.3
14 ACTIVE com.springsource.javax.xml.stream_1.0.1
15 ACTIVE com.springsource.net.sf.cglib_2.1.3
16 ACTIVE org.springframework.osgi.extensions.annotations_1.2.0
17 ACTIVE org.springframework.osgi.core_1.2.0
18 ACTIVE org.springframework.osgi.log4j.osgi_1.2.15.SNAPSHOT
Fragments=1
19 ACTIVE com.springsource.javax.persistence_1.99.0
20 ACTIVE com.springsource.javassist_3.3.0.ga
21 ACTIVE com.springsource.slf4j.org.apache.commons.logging_1.5.6
22 ACTIVE com.springsource.org.jgroups_2.5.1
23 ACTIVE com.springsource.org.aopalliance_1.0.0
24 ACTIVE org.springframework.context.support_2.5.6.A
25 ACTIVE org.springframework.aspects_2.5.6.A
26 ACTIVE org.springframework.aop_2.5.6.A
27 ACTIVE org.springframework.jdbc_2.5.6.A
28 ACTIVE org.springframework.orm_2.5.6.A
29 ACTIVE org.springframework.beans_2.5.6.A
30 ACTIVE org.springframework.context_2.5.6.A
31 ACTIVE org.springframework.core_2.5.6.A
32 ACTIVE org.springframework.transaction_2.5.6.A
33 ACTIVE com.springsource.javax.transaction_1.1.0
34 ACTIVE it.satanet.bridge.common_1.0.0
35 ACTIVE com.springsource.junit_3.8.2
36 ACTIVE org.springframework.integration.file_1.0.3.RELEASE
37 ACTIVE org.springframework.integration_1.0.3.RELEASE
38 ACTIVE it.satanet.bridge.hsqldb_1.0.0
39 ACTIVE it.satanet.bridge.core_1.0.0

They look the same!
Any help or suggestion?

Many thanks.
Marco
Re: Equinox application not working [message #482571 is a reply to message #482442] Thu, 27 August 2009 06:39 Go to previous message
Marco Barbi is currently offline Marco BarbiFriend
Messages: 2
Registered: July 2009
Junior Member
I found that the issue was caused by a bad configuration of the config.ini
file.

For the newbies of OSGi like me, the straightforward way to test an
Equinox launcher outside Elcipse IDE is open the launch configuration, go
to settings tab , follow the Configuration area path. There you'll find
the config.ini file used within Eclipse. Take this file as reference for
building you own application.

Finally, follow this link for more detailed info:
http://www.eclipse.org/equinox/documents/quickstart.php
Previous Topic:Can't update product itself with p2
Next Topic:Programmatically restarting a bundle
Goto Forum:
  


Current Time: Fri Apr 26 23:35:41 GMT 2024

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

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

Back to the top