Hi, well, actually, it was too hard to configure spring using plain spring, so I just reverted to using the Spring XML extention syntax. So, I'm not 100% sure that it was the exact same error as before, but after using spring XML extention, I still had an IllegalArgument exception.. and the root of the problem was caused by another exception. So make sure you really see the beginning of the exception, it should give you more advice..
My problem was caused by a problem to resolve a JMS connection topic in some other bean (some weird activemq 3.0 vs activemq 3.1M5 incompatibility). After solving that, the illegalargument exception was gone.. I hope it helps, Regards, Sami Dalouche Selon Matthew Clark <[EMAIL PROTECTED]>: > Hi there - did you manage to resolve this issue? I am having the same > problem when using plain spring... > > Regards, > > Matthew > > > Selon Sami Dalouche <[EMAIL PROTECTED]>: > > > Hi, > > > > I'm trying to embed ServiceMix using plain spring (not the > > container/component > > tags, that I have no idea how to use using an unmodified spring) > > > > So, for the moment, I'm just trying to deploy as few stuff as possible > : > > > > > > <bean id="jbi" > class="org.servicemix.jbi.container.SpringJBIContainer"> > > > > <property name="componentNames"> > > <list> > > <value>sender</value> > > </list> > > </property> > > </bean> > > > > > > <bean id="sender" > class="org.servicemix.components.jms.JmsSenderComponent"> > > <property name="template"> > > <ref bean="jmsTemplate"/> > > </property> > > <property name="service" ref="receiverServiceName"/> > > > > </bean> > > > > <bean id="receiverServiceName" class="javax.xml.namespace.QName"> > > <constructor-arg value="http://servicemix.org/example/"/> > > <constructor-arg value="receiver"/> > > </bean> > > > > and I get the following Exception : > > > > org.springframework.beans.factory.BeanCreationException: Error > creating bean > > wit > > h name 'jbi' defined in class path resource [spring/servicemix.xml]: > > Initializat > > ion of bean failed; nested exception is > java.lang.IllegalArgumentException: > > null > > source > > java.lang.IllegalArgumentException: null source > > at java.util.EventObject.<init>(Unknown Source) > > at javax.management.Notification.<init>(Unknown Source) > > at javax.management.AttributeChangeNotification.<init>(Unknown > > Source) > > at > > org.servicemix.jbi.management.BaseStandardMBean.sendAttributeChangeNo > > tification(BaseStandardMBean.java:438) > > at > > org.servicemix.jbi.management.BaseStandardMBean.updateAttribute(BaseS > > tandardMBean.java:221) > > > > Does anyone have some advice to give me ? > > > > Thanks a lot > > Sami Dalouche > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > > > > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > > This message has been scanned for viruses. > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
