Guillaume,
I thank you for your patience but I am ran into yet another issue. I
downloaded the indicated jar file, commented out the refs to Spring in
my imports, included the xbean jar file in my build. A few problems:
1) No AbstractXmlApplicationContext class could be found.
I Tried converting to FileSystemXmlApplicationContext. More issues:
2) Still no setXmlValidating
3) Got the following error:
Use The Controller!!
log4j configFile specified = Resources/log4j.properties
found configFile = Resources/log4j.properties
Configured log4j based on Resources/log4j.properties
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'WarehouseCraneClientImpl' defined in file
[C:\Datafile\Workspaces\AutoWarehouse\Resources\craneApplicationContext.
xml]: Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate
class [aa.autoWarehouse.WarehouseCraneServiceMixClientImpl]; constructor
threw exception; nested exception is java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespa
ceAware(Z)V
org.springframework.beans.FatalBeanException: Could not instantiate
class [aa.autoWarehouse.WarehouseCraneServiceMixClientImpl]; constructor
threw exception; nested exception is java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespa
ceAware(Z)V
java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamespa
ceAware(Z)V
at
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader.<init>(XBeanX
mlBeanDefinitionReader.java:57)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinit
ions(FileSystemXmlApplicationContext.java:157)
at
org.springframework.context.support.AbstractRefreshableApplicationContex
t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:262)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSyst
emXmlApplicationContext.java:149)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSyst
emXmlApplicationContext.java:48)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.createBeanFactory(Wa
rehouseCraneServiceMixClientImpl.java:123)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.setUp(WarehouseCrane
ServiceMixClientImpl.java:102)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.<init>(WarehouseCran
eServiceMixClientImpl.java:58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:78)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:55)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:48)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:310)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:145)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:282)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:317)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<ini
t>(FileSystemXmlApplicationContext.java:82)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<ini
t>(FileSystemXmlApplicationContext.java:67)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<ini
t>(FileSystemXmlApplicationContext.java:58)
at
aa.autoWarehouse.DSNQueProcessor.<init>(DSNQueProcessor.java:41)
at
aa.autoWarehouse.AutoPullUIDelegate.<init>(AutoPullUIDelegate.java:104)
at AutoWarehouseMain.main(AutoWarehouseMain.java:22)
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 5:38 PM
To: [email protected]
Subject: Re: [servicemix-user] JBI Client Example Help?
http://dist.codehaus.org/org.xbean/jars/xbean-spring-2.0.jar
Guillaume
Scott Luttenberg wrote:
>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:10
4
>>
>>
>_
>
>
>>)
>>
>>
>>
>>
>>>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
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
>
>
>