ServiceHoodImpl: Service not found

24 views
Skip to first unread message

Fayder Florez

unread,
Nov 12, 2009, 6:54:43 AM11/12/09
to Tapestry-OSGi
Hello!

Im trying to use @DynamicInject to inject a service into a class, and
Im getting the following warning:
WARN .... ServiceHoodImpl: Service not found -
com.packtpub.celebrities.service.CelebrityDao

and therefore the service is null in the class.

This is my component.xml file:
<code>
<component xmlns="http://www.extwind.org/schema/component"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.extwind.org/schema/component
http://www.extwind.org/schema/component.xsd">

<package>com.packtpub.celebrities</package>
<module>com.packtpub.celebrities.ComponentModule</module>
</component>
</code>

:::ComponentModule.java:::

<code>
public class ComponentModule {

public static CelebrityDao buildCelebrityDao(){
return new CelebrityDaoImpl();
}
}
</code>

:::CelebrityDao.java:::

<code>

package com.packtpub.celebrities.service;
....
public interface CelebrityDao {
public static final String SERVICE_ID =
CelebrityDao.class.getName();

public List<Celebrity> getAllCelebrities();
public Celebrity getCelebrityById(Long id);
public void addCelebrity(Celebrity celebrity);
}
</code>

:::ShowAll.java::: The class where Im trying to inject service
CelebrityDao

<code>
package com.packtpub.celebrities.pages;

@IncludeStylesheet("context:layout/layout.css")
public class ShowAll {

private static Logger logger = Logger.getLogger(ShowAll.class);

@DynamicInject
private CelebrityDao celebrityDao;
....
}
</code>

I use Apache Felix 2.0.1 and I have installed all the tapestry-osgi
bundles, tho I had to modify the commons.logging bundle for it to
import some packages in order to work together with Spring-DM bundles.

Any help is very appreciated!

Thanks!

donf yang

unread,
Nov 12, 2009, 7:58:52 AM11/12/09
to tapest...@googlegroups.com
Have you export package com.packtpub.celebrities.service in bundle's manifest ?
 


 
2009/11/12 Fayder Florez <fayder...@gmail.com>
To be surprised,to wonder,is to begin to understand.

Fayder Florez

unread,
Nov 12, 2009, 8:13:46 AM11/12/09
to Tapestry-OSGi
Hey!

Yeah, Ill copy the manifest here. the manifest is generated by Apache
Felix maven-bundle-plugin

Manifest-Version: 1.0
Export-Package: com.packtpub.celebrities.pages;uses:="org.apache.tapes
try5.annotations,org.apache.tapestry5.ioc.annotations,com.packtpub.ce
lebrities.model,com.packtpub.celebrities.service,com.packtpub.celebri
ties.util,org.apache.tapestry5.services,org.apache.tapestry5,org.apac
he.tapestry5.ioc,org.apache.tapestry5.beaneditor,org.apache.log4j,org
.extwind.osgi.tapestry.annotations";version="0.0.1.SNAPSHOT",com.pack
tpub.celebrities.components;uses:="org.apache.tapestry5,org.apache.ta
pestry5.annotations,org.apache.tapestry5.ioc.annotations";version="0.
0.1.SNAPSHOT",com.packtpub.celebrities.service.internal;uses:="org.hi
bernate,org.hibernate.criterion,org.apache.tapestry5.ioc.annotations,
com.packtpub.celebrities.model,com.packtpub.celebrities.service";vers
ion="0.0.1.SNAPSHOT",com.packtpub.celebrities.service;uses:="com.pack
tpub.celebrities.model";version="0.0.1.SNAPSHOT",com.packtpub.celebri
ties.model;uses:="org.apache.tapestry5.beaneditor,javax.persistence";
version="0.0.1.SNAPSHOT",com.packtpub.celebrities.util;uses:="com.pac
ktpub.celebrities.model";version="0.0.1.SNAPSHOT"
Ignore-Package: org.apache.tapestry5.hibernate.annotations
Built-By: fayder
Tool: Bnd-0.0.357
Bundle-Name: Celebrities Tapestry5 Application
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.6.0_15
Bundle-Version: 0.0.1.SNAPSHOT
Bnd-LastModified: 1258026005222
Bundle-ManifestVersion: 2
Bundle-Activator: com.packtpub.celebrities.internal.Activator
Bundle-SymbolicName: com.packtpub.celebrities-osgi
Import-Package: com.packtpub.celebrities.components;version="0.0",com.
packtpub.celebrities.model;version="0.0",com.packtpub.celebrities.pag
es;version="0.0",com.packtpub.celebrities.service;version="0.0",com.p
acktpub.celebrities.service.internal;version="0.0",com.packtpub.celeb
rities.util;version="0.0",javax.persistence,javax.sql,net.sf.cglib.re
flect,org.apache.log4j;version="1.2",org.apache.tapestry5,org.apache.
tapestry5.annotations,org.apache.tapestry5.beaneditor,org.apache.tape
stry5.ioc,org.apache.tapestry5.ioc.annotations,org.apache.tapestry5.s
ervices,org.extwind.osgi.tapestry.annotations,org.hibernate,org.hiber
nate.criterion,org.osgi.framework;version="[1.0.0,2.0.0)",org.osgi.se
rvice.http;version="[1.0.0,2.0.0)",org.springframework.beans.property
editors;version="2.5",org.springframework.dao.support;version="2.5",o
rg.springframework.orm.hibernate3;version="2.5",org.springframework.o
rm.hibernate3.support;version="2.5",org.springframework.osgi.service.
importer,org.springframework.osgi.service.importer.support,org.xml.sa
x

On Nov 12, 2:58 pm, donf yang <donf.y...@gmail.com> wrote:
> Have you export package com.packtpub.celebrities.service in bundle's
> manifest ?
>
> 2009/11/12 Fayder Florez <fayder.flo...@gmail.com>
> --
>
> Regards,
>
> Donf Yang
> ------------------------------------------------------------------------------

donf yang

unread,
Nov 12, 2009, 8:34:43 AM11/12/09
to tapest...@googlegroups.com
There must be some classes imported by CelebrityDaoImpl are not exported.
 
Any exception tracks ?


 
2009/11/12 Fayder Florez <fayder...@gmail.com>

Fayder Florez

unread,
Nov 12, 2009, 10:10:29 AM11/12/09
to tapest...@googlegroups.com
I emptied my CelebrityDaoImpl.java like this:

package com.packtpub.celebrities.service.internal;


import java.util.List;


import com.packtpub.celebrities.model.Celebrity;

import com.packtpub.celebrities.service.CelebrityDao;


public class CelebrityDaoImpl implements CelebrityDao{


// @Inject

//    private Session session;


public void addCelebrity(Celebrity celebrity) {

// TODO Auto-generated method stub

// session.persist(celebrity);

}


public List<Celebrity> getAllCelebrities() {

// TODO Auto-generated method stub

// return session.createCriteria(Celebrity.class).list();

return null;

}


public Celebrity getCelebrityById(Long id) {

// TODO Auto-generated method stub

// Criteria criteria = session.createCriteria(Celebrity.class);

// criteria.add(Restrictions.eq("id", id));

// return (Celebrity) criteria.uniqueResult();

return null;

}



So this way only java.lang.List, Celebrity and CelebrityDao are being imported. Packages com.packtpub.celebrities.model and com.packtpub.celebrities.service are being exported as exposed in the Manifest.

There are no exception tracks... only that warning in the terminal window, while executing the Apache Felix Framework. Heres the complete thing:

DEBUG: /layout/layout_en.css
DEBUG: /layout/layout_en.css
2009-11-12 17:02:55,885; WARN  [1431908901@qtp-540757774-7] ServiceHoodImpl: Service not found - com.packtpub.celebrities.service.CelebrityDao
2009-11-12 17:02:55,886; INFO  [1431908901@qtp-540757774-7] ShowAll: celebrityDao is NULL 
2009-11-12 17:02:55,888; INFO  [1431908901@qtp-540757774-7] TimingFilter: Request time: 7 ms
DEBUG: /assets/tapestry/5.1.0.5/default.css
2009-11-12 17:02:55,919; INFO  [1431908901@qtp-540757774-7] TimingFilter: Request time: 1 ms
DEBUG: /assets/blackbird/5.1.0.5/blackbird.css
DEBUG: /assets/app/fa215e4083909abd/extwind.css
DEBUG: /assets/ctx/fa215e4083909abd/layout/layout.css
2009-11-12 17:02:55,938; INFO  [432286795@qtp-540757774-10] TimingFilter: Request time: 5 ms
2009-11-12 17:02:55,940; INFO  [1431908901@qtp-540757774-7] TimingFilter: Request time: 12 ms
2009-11-12 17:02:55,941; INFO  [35719694@qtp-540757774-11] TimingFilter: Request time: 4 ms
DEBUG: /assets/ctx/fa215e4083909abd/layout/images/img01.jpg
2009-11-12 17:02:55,975; INFO  [35719694@qtp-540757774-11] TimingFilter: Request time: 4 ms

I tried with equinox... and got the same result, I mean the object is still null (I don't get any warning or whatsoever in the equinox console).

:D

don't know what to do... It makes sense to try to inject the service using Spring-DM IoC, as a workaround?

Fayder Florez
Intern
ZERO
-----------------------------------------------------
Alumni
AIESEC Cartagena
www.aiesec.org
-----------------------------------------------------
Skype: fayder-florez
Mobile: +372 58444596

donf yang

unread,
Nov 12, 2009, 10:46:23 AM11/12/09
to tapest...@googlegroups.com
Maybe the bundle which contains com.packtpub.celebrities.service.CelebrityDao is not in status "ACTIVE" so that the module was not registered in service registry, this would be logged at the time starting osgi application.

2009/11/12 Fayder Florez <fayder...@gmail.com>

Fayder Florez

unread,
Nov 12, 2009, 11:02:43 AM11/12/09
to tapest...@googlegroups.com
All my bundles are "ACTIVE", except for bundle [20] OPS4J Pax Web - Jetty Bundle (0.7.0) which is the Jetty service provided by Pax Web, that Im not using. Im using the one in the tapestry-osgi plugin.

   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.1)
[   1] [Active     ] [    1] aopalliance.osgi (1.0.0.SNAPSHOT)
[   2] [Active     ] [    1] Antlr Runtime Plug-in (3.1.1)
[   3] [Active     ] [    1] commons-codec (1.3.0)
[   4] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
[   5] [Active     ] [    1] Apache Felix Http Api (2.0.2)
[   6] [Active     ] [    1] Apache Felix Http Bundle (2.0.2)
[   7] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
[   8] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[   9] [Active     ] [    1] Apache Felix Web Management Console (2.0.0)
[  10] [Active     ] [    1] bundleName (1.0.100.v20080427-0830) --> this is org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
[  11] [Active     ] [    1] OSGi Release 4.2.0 Services (3.2.0.200907062331)
[  12] [Active     ] [    1] Apache Commons Logging Plug-in (Zero Modified) (1.0.4.v20080605-1930)
[  13] [Active     ] [    1] Javassist Plug-in (3.10)
[  14] [Active     ] [    1] Servlet Plug-in (2.5)
[  15] [Active     ] [    1] Jetty6 Plug-in (6.1.17)
[  16] [Active     ] [    1] Tapestry5 Plug-in (5.1.0.5)
[  17] [Active     ] [    1] Extwind Filter Service (1.0.0)
[  18] [Active     ] [    1] Tapestry-OSGi Components (1.0.0)
[  19] [Active     ] [    1] Extwind OSGi Tapestry Plug-in (5.1.0.5)
[  20] [Resolved   ] [    1] OPS4J Pax Web - Jetty Bundle (0.7.0)
[  21] [Active     ] [    1] Spring AOP (2.5.6)
[  22] [Active     ] [    1] Spring Beans (2.5.6)
[  23] [Active     ] [    1] Spring Context (2.5.6)
[  24] [Active     ] [    1] Spring Context Support (2.5.6)
[  25] [Active     ] [    1] Spring Core (2.5.6)
[  26] [Active     ] [    1] Spring JDBC (2.5.6)
[  27] [Active     ] [    1] Spring ORM (2.5.6)
[  28] [Active     ] [    1] spring-osgi-annotation (1.2.0)
[  29] [Active     ] [    1] spring-osgi-core (1.2.0)
[  30] [Active     ] [    1] spring-osgi-extender (1.2.0)
[  31] [Active     ] [    1] spring-osgi-io (1.2.0)
[  32] [Active     ] [    1] Spring Transaction (2.5.6)
[  33] [Active     ] [    1] Stax2 API (3.0.1)
[  34] [Active     ] [    1] Stax_api Plug-in (1.0.1)
[  35] [Active     ] [    1] Woodstox XML-processor (4.0.3)
[  36] [Active     ] [    1] Hibernate Classes (0.0.1.SNAPSHOT)
[  37] [Active     ] [    1] HSQLDB (0.0.1.SNAPSHOT)
[  38] [Active     ] [    1] Hibernate Session Bundle (Fay) (0.0.1.SNAPSHOT)
[  39] [Active     ] [    1] Entity Class Fay (0.0.1.SNAPSHOT)
[  40] [Active     ] [    1] Hello World Servlet (0.0.1.SNAPSHOT)
[  41] [Active     ] [    1] HelloWorld tapestry5 (0.0.1.SNAPSHOT)
[  42] [Active     ] [    1] Celebrities Tapestry5 Application (0.0.1.SNAPSHOT)
[  43] [Active     ] [    1] Jetty Http Service (1.0)

CelebrityDao, CelebrityDaoImpl and ShowAll.java (the class where Im trying to Inject CelebrityDao) are in the same bundle [42].

Fayder Florez
Intern
ZERO

donf yang

unread,
Nov 12, 2009, 7:01:45 PM11/12/09
to tapest...@googlegroups.com
Well, the final way to figure it out whats going on is debug into classloader of tapestry-osgi.

2009/11/13 Fayder Florez <fayder...@gmail.com>

Fayder Florez

unread,
Nov 13, 2009, 7:25:12 AM11/13/09
to Tapestry-OSGi
Could you please suggest me the best way to debug the classloader of
tapestry-osgi?

On Nov 13, 2:01 am, donf yang <donf.y...@gmail.com> wrote:
> Well, the final way to figure it out whats going on is debug into
> classloader of tapestry-osgi.
>
> 2009/11/13 Fayder Florez <fayder.flo...@gmail.com>
> > On Thu, Nov 12, 2009 at 5:46 PM, donf yang <donf.y...@gmail.com> wrote:
>
> >> Maybe the
> >> bundle which contains com.packtpub.celebrities.service.CelebrityDao is not
> >> in status "ACTIVE" so that the module was not registered in service
> >> registry, this would be logged at the time starting osgi application.
>
> >>   2009/11/12 Fayder Florez <fayder.flo...@gmail.com>
> >>> On Thu, Nov 12, 2009 at 3:34 PM, donf yang <donf.y...@gmail.com> wrote:
>
> >>>> There must be some classes imported by CelebrityDaoImpl are not
> >>>> exported.
>
> >>>> Any exception tracks ?
>
> >>>> 2009/11/12 Fayder Florez <fayder.flo...@gmail.com>
> ...
>
> read more »

donf yang

unread,
Nov 13, 2009, 8:23:23 PM11/13/09
to tapest...@googlegroups.com
1. Make sure the complement bundle has been registered successfully (if you cannot take this from log)
 
debug into org.extwind.osgi.tapestry.internal.support.ComponentBundleFactoryImpl.activeBundleComponentContext(Bundle bundle),
 
activeBundleComponentContext is called when bundle been actived.
 
2. Debug into org.extwind.osgi.tapestry.internal.activator.ServiceHoodImpl.<T> T getDynamicService(Class<? extends T> clazz) to find out why the service implement cannot be found.
Also you can just simplified print the StackTrace of exception:
logger.warn("Service not found - " + clazz.getName(), t);
This would be done by me ...
 

 
2009/11/13 Fayder Florez <fayder...@gmail.com>

Fayder Florez

unread,
Nov 16, 2009, 5:17:16 AM11/16/09
to tapest...@googlegroups.com
Im trying to add some logs to the classes you have mentioned, and then generate the bundle again, How do you generate the bundles. As i told you I use apache maven bundle plugin... do you export it as a plug-in?. Im having problems with this.

Please let me know when you add this StackTrace to ServiceHoodImpl class.

Oh, and one thing I noticed. If i install into de framework the Login Plug-In bundle from the OSGi Console, theres this Log:

DynamicRegistryImpl: Adding module definition for class org.extwind.osgi.console.login.ComponentModule

This Log, obviously about my ComponentModule class, doesnt appear when I install my tapestry5-osgi project... it looks like my ComponentModule class is not being registered or smth lke that....

Fayder Florez
Intern
ZERO
-----------------------------------------------------



Fayder Florez

unread,
Nov 18, 2009, 9:11:43 AM11/18/09
to Tapestry-OSGi
Nevermind about the DynamicRegistryImpl: Adding module definition for
class
org.extwind.osgi.console.login.ComponentModule thing...

Please let me know when you make this change.

Looking forward your next email =)

On Nov 16, 12:17 pm, Fayder Florez <fayder.flo...@gmail.com> wrote:
> Im trying to add some logs to the classes you have mentioned, and then
> generate the bundle again, How do you generate the bundles. As i told you I
> use apache maven bundle plugin... do you export it as a plug-in?. Im having
> problems with this.
>
> Please let me know when you add this StackTrace to ServiceHoodImpl class.
>
> Oh, and one thing I noticed. If i install into de framework the Login
> Plug-In bundle from the OSGi Console, theres this Log:
>
> DynamicRegistryImpl: Adding module definition for class
> org.extwind.osgi.console.login.ComponentModule
>
> This Log, obviously about my ComponentModule class, doesnt appear when I
> install my tapestry5-osgi project... it looks like my ComponentModule class
> is not being registered or smth lke that....
>
> Fayder Florez
> Intern
> ZERO
> -----------------------------------------------------
>
> On Sat, Nov 14, 2009 at 3:23 AM, donf yang <donf.y...@gmail.com> wrote:
> > 1. Make sure the complement bundle has been registered successfully (if you
> > cannot take this from log)
>
> > debug into
> > org.extwind.osgi.tapestry.internal.support.ComponentBundleFactoryImpl.activeBundleComponentContext(Bundle
> > bundle),
>
> > activeBundleComponentContext is called when bundle been actived.
>
> > 2. Debug into
> > org.extwind.osgi.tapestry.internal.activator.ServiceHoodImpl.<T> T
> > getDynamicService(Class<? extends T> clazz) to find out why the service
> > implement cannot be found.
> > Also you can just simplified print the StackTrace of exception:
> > logger.warn("Service not found - " + clazz.getName(), t);
> > This would be done by me ...
>
> > 2009/11/13 Fayder Florez <fayder.flo...@gmail.com>
> ...
>
> read more »

donf yang

unread,
Nov 18, 2009, 9:40:29 AM11/18/09
to tapest...@googlegroups.com
Sorry for that long time, I have update org.extwind.osgi.tapestry_5.1.0.5.jar you can get it from:
 
 
And also noted to update the source code.
 
If you just got only one message of console-login component, means your component bundle cant be recognized by tapestry-osgi.

2009/11/18 Fayder Florez <fayder...@gmail.com>
--

You received this message because you are subscribed to the Google Groups "Tapestry-OSGi" group.
To post to this group, send email to tapest...@googlegroups.com.
To unsubscribe from this group, send email to tapestry-osg...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tapestry-osgi?hl=.





--

Regards,

Donf Yang
------------------------------------------------------------------------------

Fayder Florez

unread,
Nov 18, 2009, 9:47:00 AM11/18/09
to Tapestry-OSGi
Nevermind about the DynamicRegistryImpl: Adding module definition for
class
org.extwind.osgi.console.login.ComponentModule thing...

Please let me know when you make this change.

Looking forward your next email =)

On Nov 16, 12:17 pm, Fayder Florez <fayder.flo...@gmail.com> wrote:
> Im trying to add some logs to the classes you have mentioned, and then
> generate the bundle again, How do you generate the bundles. As i told you I
> use apache maven bundle plugin... do you export it as a plug-in?. Im having
> problems with this.
>
> Please let me know when you add this StackTrace to ServiceHoodImpl class.
>
> Oh, and one thing I noticed. If i install into de framework the Login
> Plug-In bundle from the OSGi Console, theres this Log:
>
> DynamicRegistryImpl: Adding module definition for class
> org.extwind.osgi.console.login.ComponentModule
>
> This Log, obviously about my ComponentModule class, doesnt appear when I
> install my tapestry5-osgi project... it looks like my ComponentModule class
> is not being registered or smth lke that....
>
> Fayder Florez
> Intern
> ZERO
> -----------------------------------------------------
>
> On Sat, Nov 14, 2009 at 3:23 AM, donf yang <donf.y...@gmail.com> wrote:
> > 1. Make sure the complement bundle has been registered successfully (if you
> > cannot take this from log)
>
> > debug into
> > org.extwind.osgi.tapestry.internal.support.ComponentBundleFactoryImpl.activeBundleComponentContext(Bundle
> > bundle),
>
> > activeBundleComponentContext is called when bundle been actived.
>
> > 2. Debug into
> > org.extwind.osgi.tapestry.internal.activator.ServiceHoodImpl.<T> T
> > getDynamicService(Class<? extends T> clazz) to find out why the service
> > implement cannot be found.
> > Also you can just simplified print the StackTrace of exception:
> > logger.warn("Service not found - " + clazz.getName(), t);
> > This would be done by me ...
>
> > 2009/11/13 Fayder Florez <fayder.flo...@gmail.com>
> ...
>
> read more »

Fayder Florez

unread,
Nov 19, 2009, 5:11:01 AM11/19/09
to Tapestry-OSGi
Hey

I downloaded and installed the updated the new bundle, but still its
not showing any exception track... I have no idea why...

Im going to post here the differences in the logging when installing/
starting the Login Plugin from Extwind OSGi-Console and my bundle:

=====Login Plugin:=====

2009-11-19 11:43:54 BundleComponentContextImpl [INFO] Loading
component definition for bundle org.extwind.osgi.console.login [42]
2009-11-19 11:43:54 ComponentBundleRegistryImpl [INFO] Register
package [org.extwind.osgi.console.login] by
org.extwind.osgi.console.login [42]
2009-11-19 11:43:54 ComponentBundleRegistryImpl [INFO] Register
component module [org.extwind.osgi.console.login.ComponentModule] by
org.extwind.osgi.console.login [42]
2009-11-19 11:43:54 DynamicRegistryImpl [INFO] Adding module
definition for class org.extwind.osgi.console.login.ComponentModule
2009-11-19 11:43:54 DynamicRegistryImpl [INFO] Refresh referenced
service for module: org.extwind.osgi.console.login.ComponentModule
-> 2009-11-19 11:43:54 BundleTracker [INFO] Bundle event received for
bundle: org.extwind.osgi.console.login

=====Celebrities Tapestry5=====
2009-11-19 11:44:32 BundleComponentContextImpl [INFO] Loading
component definition for bundle com.packtpub.celebrities-osgi [43]
2009-11-19 11:44:32 ComponentBundleRegistryImpl [INFO] Register
package [com.packtpub.celebrities] by com.packtpub.celebrities-osgi
[43]
2009-11-19 11:44:32 DefaultOsgiApplicationContextCreator [INFO]
Discovered configurations {osgibundle:/META-INF/spring/*.xml} in
bundle [Celebrities Tapestry5 Application (com.packtpub.celebrities-
osgi)]
2009-11-19 11:44:32 OsgiBundleXmlApplicationContext [INFO] Refreshing
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@5f2679f2:
display name [OsgiBundleXmlApplicationContext
(bundle=com.packtpub.celebrities-osgi, config=osgibundle:/META-INF/
spring/*.xml)]; startup date [Thu Nov 19 11:44:32 EET 2009]; root of
context hierarchy
2009-11-19 11:44:32 OsgiBundleXmlApplicationContext [INFO]
Unpublishing application context OSGi service for bundle Celebrities
Tapestry5 Application (com.packtpub.celebrities-osgi)
-> DEBUG: commons-logging.properties
2009-11-19 11:44:32 BundleTracker [INFO] Bundle event received for
bundle: com.packtpub.celebrities-osgi
DEBUG: META-INF/services/org.apache.commons.logging.LogFactory
2009-11-19 11:44:32 XmlBeanDefinitionReader [INFO] Loading XML bean
definitions from URL [bundle://43.0:0/META-INF/spring/celebrities-
context-osgi.xml]
DEBUG: META-INF/services/javax.xml.parsers.DocumentBuilderFactory
2009-11-19 11:44:32 XmlBeanDefinitionReader [INFO] Loading XML bean
definitions from URL [bundle://43.0:0/META-INF/spring/celebrities-
context.xml]
DEBUG: META-INF/services/javax.xml.parsers.DocumentBuilderFactory
2009-11-19 11:44:32 XmlBeanDefinitionReader [INFO] Loading XML bean
definitions from URL [bundle://43.0:0/META-INF/spring/
celebrity.hbm.xml]
DEBUG: META-INF/services/javax.xml.parsers.DocumentBuilderFactory
2009-11-19 11:44:33 XmlBeanDefinitionReader [INFO] Loading XML bean
definitions from URL [bundle://43.0:0/META-INF/spring/
hibernate.cfg.xml]
DEBUG: META-INF/services/javax.xml.parsers.DocumentBuilderFactory
2009-11-19 11:44:33 OsgiBundleXmlApplicationContext [INFO] Bean
factory for application context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@5f2679f2]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@6e820a0c
2009-11-19 11:44:33 DependencyWaiterApplicationContextExecutor [INFO]
No outstanding OSGi service dependencies, completing initialization
for OsgiBundleXmlApplicationContext(bundle=com.packtpub.celebrities-
osgi, config=osgibundle:/META-INF/spring/*.xml)
2009-11-19 11:44:33 DefaultListableBeanFactory [INFO] Pre-
instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@6e820a0c:
defining beans [celebrityDaoOsgi,celebrityDao]; root of factory
hierarchy
2009-11-19 11:44:33 OsgiServiceFactoryBean [INFO] Publishing service
under classes [{com.packtpub.celebrities.service.CelebrityDao}]
2009-11-19 11:44:33 OsgiBundleXmlApplicationContext [INFO] Publishing
application context as OSGi service with properties
{org.springframework.context.service.name=com.packtpub.celebrities-
osgi, Bundle-SymbolicName=com.packtpub.celebrities-osgi, Bundle-
Version=0.0.1.SNAPSHOT}
2009-11-19 11:44:33 ContextLoaderListener [INFO] Application context
successfully refreshed (OsgiBundleXmlApplicationContext
(bundle=com.packtpub.celebrities-osgi, config=osgibundle:/META-INF/
spring/*.xml))

The lines
2009-11-19 11:43:54 ComponentBundleRegistryImpl [INFO] Register
component module [org.extwind.osgi.console.login.ComponentModule] by
org.extwind.osgi.console.login [42]
2009-11-19 11:43:54 DynamicRegistryImpl [INFO] Adding module
definition for class org.extwind.osgi.console.login.ComponentModule
2009-11-19 11:43:54 DynamicRegistryImpl [INFO] Refresh referenced
service for module: org.extwind.osgi.console.login.ComponentModule

Are missing when installing my bundle... and I dont know why this is
happening... And as I told you before I couldnt add logs to the class
you mentioned in order to see whats going on. Could you tell me how
you generate the bundles? so I do this myself.

Thank you

Fayder
----------------------

On Nov 18, 4:40 pm, donf yang <donf.y...@gmail.com> wrote:
> Sorry for that long time, I have update
> org.extwind.osgi.tapestry_5.1.0.5.jar you can get it from:
>
> http://extwind.googlecode.com/svn/ebr/app/osgiconsole/org/extwind/osg...
>
> And also noted to update the source code.
>
> If you just got only one message of console-login component, means your
> component bundle cant be recognized by tapestry-osgi.
>
> 2009/11/18 Fayder Florez <fayder.flo...@gmail.com>
> ...
>
> read more »

Fayder Florez

unread,
Nov 19, 2009, 5:26:27 AM11/19/09
to Tapestry-OSGi
Ok... now I finally got it to work I think..... I was not exporting
the ComponentModule.java in the manifest!!!... Christ...

Thanks for everything!!... If theres anything new Id let you know :P.
(Actually there is, but as its not related to this I could make new
post)

Fayder
---------------------
> ...
>
> read more »

donf yang

unread,
Nov 19, 2009, 7:17:33 AM11/19/09
to tapest...@googlegroups.com
thats cool, feel free to contact me when you got problem.

2009/11/19 Fayder Florez <fayder...@gmail.com>
> ...
>
> read more »

--

You received this message because you are subscribed to the Google Groups "Tapestry-OSGi" group.
To post to this group, send email to tapest...@googlegroups.com.
To unsubscribe from this group, send email to tapestry-osg...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tapestry-osgi?hl=.


Reply all
Reply to author
Forward
0 new messages