OK - Thank you. I don't want to seem foolish here but where can get org.xbean.spring.context? Do I need to download something else?
Scott -----Original Message----- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 5:31 PM To: [email protected] Subject: Re: [servicemix-user] JBI Client Example Help? Then you must use xbean application contexts. They are the same, only the package is different: org.xbean.spring.context instead of org.springframework.context.support Guillaume Scott Luttenberg wrote: >I am using V2.0 that was released today. > >Scott > >-----Original Message----- >From: Guillaume Nodet [mailto:[EMAIL PROTECTED] >Sent: Monday, November 07, 2005 5:27 PM >To: [email protected] >Subject: Re: [servicemix-user] JBI Client Example Help? > >In ServiceMix 1.1, you have to use the modified version of spring that >comes with >ServiceMix >(http://dist.codehaus.org/servicemix/jars/spring-1.2.2-dev.jar). >In v 2.0, you have to use xbean-spring and any starndard version of >spring. >You can also use only a standard spring version, provided that you only >use spring's xml syntax. > >Cheers, >Guillaume Nodet > >Scott Luttenberg wrote: > > > >>I am trying to write my own JBI client example and I think I am >>spinning my wheels. >> >>I have my own SWING GUI app that I am trying to send a msg by way of >>ServiceMix to a Web Service (JAS-WS). My web service is up and running >> >> > > > >>tested with an external client test app. ServiceMix at least can come >>up with it configured in. I have copied the example.xml >> >>I have copied most of the test JBI client code into my client code but >> >> > > > >>things don't seem to be working. I get an error when >> >>protected AbstractXmlApplicationContext createBeanFactory() { >> >>return new ClassPathXmlApplicationContext("Resources/example.xml"); >> >>reads my example.xml file. The error is: >> >>Use The Controller!! >> >>log4j configFile specified = Resources/log4j.properties >> >>found configFile = Resources/log4j.properties >> >>Configured log4j based on Resources/log4j.properties >> >>ServiceMix exception: >>_org.springframework.beans.factory.BeanDefinitionStoreException_: Line >> >> > > > >>3 in XML document from class path resource [Resources/example.xml] is >>invalid; nested exception is _org.xml.sax.SAXParseException_: Document >> >> > > > >>root element "beans", must match DOCTYPE root "null". >> >>Exception in thread "main" _java.lang.ClassCastException_: >>aa.autoWarehouse.WarehouseCraneServiceMixClientImpl >> >>at aa.autoWarehouse.DSNQueProcessor.<init>(_DSNQueProcessor.java:42_) >> >>at >> >> >> >aa.autoWarehouse.AutoPullUIDelegate.<init>(_AutoPullUIDelegate.java:104 _ >) > > >>at AutoWarehouseMain.main(_AutoWarehouseMain.java:22_) >> >>I have tried many ways to experiment the example.xml and adding the >>DOCTYPE but to no avail !! >> >>It seems that Spring might be getting in the way? I don't see how - is >> >> > > > >>not Spring what ServiceMix use for reading application contexts? Also >>- I had to comment out the line: context.setXmlValidating(false); >>because could not find a def for setXmlValidating. That may or may/may >> >> > > > >>not be a clue. >> >>Some help please! >> >>Scott >> >> >> > > > > >
