You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Pierre-Henry Perret <ph...@gmail.com> on 2011/02/25 15:15:24 UTC

Error creating bean with name 'dsw'


Hi,

I have the following error when launching the single-bundle-ri-dosgi



INFO: ListenerHookImpl: skipping request from myself
Exception in thread "SpringOsgiExtenderThread-2"
org.springframework.beans.facto
ry.BeanCreationException: Error creating bean with name 'dsw' defined in URL
[bu
ndle://30.0:0/META-INF/spring/dsw.xml]: Invocation of init method failed;
nested
 exception is java.lang.NullPointerException



ATTENTION: Initial attempt to create application context was unsuccessful.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
pars
ing XML document from class path resource [META-INF/cxf/cxf.xml]; nested
excepti
on is java.io.FileNotFoundException: class path resource
[META-INF/cxf/cxf.xml]
cannot be opened because it does not exist


I must say that I test behind a proxy.

So I suppose it cant read a namespace definitions or something like ?
Any idea welcomed.

Thanks

-----
--
Pierre
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Error-creating-bean-with-name-dsw-tp3400187p3400187.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Error creating bean with name 'dsw'

Posted by Pierre-Henry Perret <ph...@gmail.com>.

Next after that error, I get this stack trace which shows that the cxf is
not loaded:




ATTENTION: Intent map load failed:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
excep
tion parsing XML document from OSGi
resource[classpath:/OSGI-INF/cxf/intents/int
ent-map.xml|bnd.id=30|bnd.sym=cxf-dosgi-ri-dsw-cxf]; nested exception is
java.la
ng.IllegalArgumentException: object is not an instance of declaring class
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:420)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:342)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:310)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)
        at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationCont
ext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)
        at
org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at
org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:422)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
plicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69
)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
plicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCus
tomTCCL(PrivilegedUtils.java:85)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
plicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java
:182)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
plicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExec
utionApplicationContext.java:89)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionAp
plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
        at
org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:411)
        at
org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:380)
        at
org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:96)
        at
org.apache.cxf.dosgi.dsw.Activator.registerRemoteServiceAdminService(
Activator.java:79)
        at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:63)







-----
--
Pierre
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Error-creating-bean-with-name-dsw-tp3400187p3400195.html
Sent from the cxf-user mailing list archive at Nabble.com.