Hi,

I have deployed OSGI plugins developed based on equinox into 
jboss5.1.0GA/all/server/deploy directory. I integrated jboss-osgi-1.0.0.Beta3 
into JBoss 5.1.0GA. 

Also updated jboss-osgi-jboss-beans.xml to autoStart these plugins. One of my 
plugins has Spring api inside it that loads some configuration files inside 
this plugin. For plugin to start it needs to read those config files. This 
plugin works on standalone client application. But when I deploy it in JBoss I 
get the following exception:


Caused by: java.lang.IllegalStateException: Clustering could not be 
initialized. ClassPathXmlApplicationContext=[clustering.xml], 
CLUSTERING_PROCESSOR_FACTORY_BEAN=[clustering.cluster-processor-factory]
        at 
com.entity.EntityClusterProcessorLocator.validate(EntityClusterProcessorLocator.java:98)
        at 
com.entity.EntityClusterProcessorLocator.getDefaultClusterProcessorId(EntityClusterProcessorLocator.java:92)
        at com.osgi.PluginActivator.start(PluginActivator.java:43)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        ... 64 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: 
IOException parsing XML document from class path resource [clustering.xml]; 
nested exception is java.io.FileNotFoundException: class path resource 
[clustering.xml] cannot be opened because it does not exist
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
        at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
        at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
        at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at 
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
        at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
        at 
com.entity.EntityClusterProcessorLocator.(EntityClusterProcessorLocator.java:49)
        ... 68 more
Caused by: java.io.FileNotFoundException: class path resource [clustering.xml] 
cannot be opened because it does not exist
        at 
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)

Is this a classloader issue? Where can I find good documentation on JBoss OSGI 
classloaders. Appreciate your time....thank you

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250758#4250758

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250758
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to