in my case I can see the bundle
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
1 ACTIVE org.apache.felix.ipojo.composite_1.4.0
2 ACTIVE org.apache.felix.ipojo_1.4.0
3 ACTIVE MyiPOJOBundle_1.0.0
but if I run .. start 3
I get following error
[ERROR] org.apache.felix.ipojo.sample.MyComponentImpl :
[org.apache.felix.ipojo.sample.MyComponentImpl-0] createInstance -> Cannot
invoke the constructor (method not found) :
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
[ERROR] org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO
instance, the POJO constructor cannot be found :
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
java.lang.RuntimeException: Cannot create a POJO instance, the POJO
constructor cannot be found :
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
at
org.apache.felix.ipojo.InstanceManager.createObject(InstanceManager.java:632)
at
org.apache.felix.ipojo.InstanceManager.getPojoObject(InstanceManager.java:776)
at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__stateChanged(LifecycleCallbackHandler.java:156)
at
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
at
org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:440)
at
org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:321)
at
org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155)
at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:298)
at
org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:235)
at
org.apache.felix.ipojo.InstanceCreator$ManagedInstance.create(InstanceCreator.java:360)
at
org.apache.felix.ipojo.InstanceCreator.addInstance(InstanceCreator.java:89)
at org.apache.felix.ipojo.Extender.parse(Extender.java:269)
at org.apache.felix.ipojo.Extender.startManagementFor(Extender.java:208)
at org.apache.felix.ipojo.Extender.access$600(Extender.java:52)
at org.apache.felix.ipojo.Extender$CreatorThread.run(Extender.java:669)
at java.lang.Thread.run(Unknown Source)
[ERROR] org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO
instance, the POJO constructor cannot be found :
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
[ERROR] iPOJO Instance Creator : A matching factory was found for
{component=org.apache.felix.ipojo.sample.MyComponentImpl,
instance.name=org.apache.felix.ipojo.sample.MyComponentImpl-0}, but the
instantiation failed : The configuration is not correct for the type
org.apache.felix.ipojo.sample.MyComponentImpl : Cannot create a POJO
instance, the POJO constructor cannot be found :
org.apache.felix.ipojo.sample.MyComponentImpl.<init>(org.apache.felix.ipojo.InstanceManager)
--------------------------------------------------
From: "Dimitris Karteris" <[email protected]>
Sent: Wednesday, January 27, 2010 4:35 PM
To: <[email protected]>
Subject: IPOJO integration with Eclipse problem
Hi there,
I followed the instructions given in the article below:
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.html
but Step 4 fails for me. Specifically, after right-clicking on the
.launch file, and then going on Run-As -> MyiPOJOBundle, Equinox is
started as expected (osgi prompt is shown) BUT my iPOJO bundle is not
deployed or started. Typing ss on the osgi prompt I get:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.1.R35x_v20090827
1 ACTIVE org.apache.felix.ipojo_1.2.0
osgi>
I've used both archives found on the article:
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle.zip
http://felix.apache.org/site/apache-felix-ipojo-eclipse-integration.data/MyiPOJOBundle-1.4.2.zip
Thanx for any help in advance,
~dkart
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]