You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by mqaiserm <Qa...@revolution.com> on 2006/04/26 17:53:06 UTC
xfire bean problem
I am exposing my service in JBI as defined in sample like this :
<!-- The Service Bean -->
<bean id="echo" class="org.servicemix.components.xfire.Echo"
singleton="true"/>
<bean name="Echo" class="org.codehaus.xfire.spring.ServiceBean">
<property name="service" ref="echo"/>
<property name="serviceFactory" ref="xfire.serviceFactory"/>
<property name="xfire" ref="xfire"/>
</bean>
And getting this error, no bean is defined as 'xfire' . Where I can find the
defination for 'xfire' bean ?
--
View this message in context: http://www.nabble.com/xfire-bean-problem-t1512619.html#a4104128
Sent from the ServiceMix - User forum at Nabble.com.
Re: xfire bean problem
Posted by mqaiserm <Qa...@revolution.com>.
I have xfire-all-1.0.jar in my classpath, do u know is this new one , if not
where I cna get new one ?
--
View this message in context: http://www.nabble.com/xfire-bean-problem-t1512619.html#a4129656
Sent from the ServiceMix - User forum at Nabble.com.
Re: xfire bean problem
Posted by Dan Diephouse <da...@envoisolutions.com>.
Would you per chance have an old xfire on your classpath? There is no
line 84 in DefaultTransportManager in xfire 1.1-beta or xfire 1.0
http://svn.xfire.codehaus.org/viewrep/xfire/trunk/xfire/xfire-core/src/main/org/codehaus/xfire/transport/DefaultTransportManager.java?r=1028
- Dan
mqaiserm wrote:
> I downloaded xfire.xml and customEditors.xml and placed in classpath and
> started application and getting this error :
>
> :\servicemix-2.0.2\examples\jms-binding\xfire.xml]: Initialization of bean
> faile
> d; nested exception is java.lang.NullPointerException: null
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> wit
> h name 'xfire.transportManager' defined in file
> [C:\servicemix-2.0.2\examples\jm
> s-binding\xfire.xml]: Initialization of bean failed; nested exception is
> java.la
> ng.NullPointerException: null
> java.lang.NullPointerException
> at
> org.codehaus.xfire.transport.DefaultTransportManager.initializeTransp
> orts(DefaultTransportManager.java:84)
>
> Any idea ?
> --
> View this message in context: http://www.nabble.com/xfire-bean-problem-t1512619.html#a4105796
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog
Re: xfire bean problem
Posted by mqaiserm <Qa...@revolution.com>.
I downloaded xfire.xml and customEditors.xml and placed in classpath and
started application and getting this error :
:\servicemix-2.0.2\examples\jms-binding\xfire.xml]: Initialization of bean
faile
d; nested exception is java.lang.NullPointerException: null
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'xfire.transportManager' defined in file
[C:\servicemix-2.0.2\examples\jm
s-binding\xfire.xml]: Initialization of bean failed; nested exception is
java.la
ng.NullPointerException: null
java.lang.NullPointerException
at
org.codehaus.xfire.transport.DefaultTransportManager.initializeTransp
orts(DefaultTransportManager.java:84)
Any idea ?
--
View this message in context: http://www.nabble.com/xfire-bean-problem-t1512619.html#a4105796
Sent from the ServiceMix - User forum at Nabble.com.
Re: xfire bean problem
Posted by Dan Diephouse <da...@envoisolutions.com>.
mqaiserm wrote:
> I am exposing my service in JBI as defined in sample like this :
>
> <!-- The Service Bean -->
> <bean id="echo" class="org.servicemix.components.xfire.Echo"
> singleton="true"/>
>
> <bean name="Echo" class="org.codehaus.xfire.spring.ServiceBean">
> <property name="service" ref="echo"/>
> <property name="serviceFactory" ref="xfire.serviceFactory"/>
> <property name="xfire" ref="xfire"/>
> </bean>
>
> And getting this error, no bean is defined as 'xfire' . Where I can find the
> defination for 'xfire' bean ?
> --
> View this message in context: http://www.nabble.com/xfire-bean-problem-t1512619.html#a4104128
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Try importing the xfire beans:
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
See this for docs -
http://xfire.codehaus.org/Spring%2C+XBean%2C+Servlets+and+more
Cheers,
- Dan
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog