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 »