One last tidbit.. Here is the error msg I am getting:
se The Controller!!
log4j configFile specified = Resources/log4j.properties
found configFile = Resources/log4j.properties
Configured log4j based on Resources/log4j.properties
0 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader - Using JAXP
implementation
[EMAIL PROTECTED]
0 [main] INFO
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader - Loading
XML bean definitions from file
[C:\Datafile\Workspaces\AutoWarehouse\Resources\example.xml]
10 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser - Loading
bean definitions
10 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser - Default
lazy init ''
10 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser - Default
autowire ''
10 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser - Default
dependency check ''
20 [main] DEBUG
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser - Could not
find resource:
META-INF/services/org/xbean/spring/http/servicemix.org/config/1.0/contai
ner
ServiceMix exception:
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'jbi' defined in file
[C:\Datafile\Workspaces\AutoWarehouse\Resources\example.xml]: Class that
bean class [org.servicemix.jbi.container.SpringJBIContainer] depends on
not found; nested exception is java.lang.NoClassDefFoundError:
javax/resource/spi/work/WorkManager
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)
Looks like WorkManager is the class I can't find?
Thanks for the help!!!!!!!
Scott
-----Original Message-----
From: Scott Luttenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 6:32 PM
To: [email protected]
Subject: RE: [servicemix-user] JBI Client Example Help?
Also - could not find "
META-INF/services/org/xbean/spring/http/servicemix.org/config/1.0/contai
ner"
-----Original Message-----
From: Scott Luttenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 6:30 PM
To: [email protected]
Subject: RE: [servicemix-user] JBI Client Example Help?
I sort of figured that my spring was out of date and just updated it. I
got different errors now. Can't find
org.servicemix.jbi.container.SpringJBIContainer now.
I sort of figured that the setXmlValidating method was no big deal, so I
was not paying too much attention it.
I am in the process of including the various jar files I downloaded
today.
I am working on an example derived from
http://servicemix.codehaus.org/maven/xref-test/org/servicemix/client/Ser
viceMixClientTest.html
I took out most of the test cases. I took out the JUnit stuff. My
constructor calls setup. My "send msg" method is the code from
testSendUsingJbiAPIs
I copied the code for setup, getBean, and createBeanFactory (but had to
change the rtn type to FileSystemXmlApplicationContext. I am using the
example.xml strait from
"servicemix-2.0-SNAPSHOT/core/src/test/resources/org/servicemix/client"
(I copied it into my own Resource dir)
I think I am going to try this in the morn..
Good Night!
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 6:08 PM
To: [email protected]
Subject: Re: [servicemix-user] JBI Client Example Help?
The setXmlValidating was only part of the modified spring version, so
that you should not call it anymore.
It seems that you use a vesion of spring that is too old.
ServiceMix 2.0 is shipped with 1.2.5, and 1.2.4 should be ok, i think.
But i am not sure for older versions.
Which example are you trying ?
Btw, the we site has not been update yet, so this does not reflect the
new syntax.
Guillaume
Scott Luttenberg wrote:
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.setNamesp
a
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.setNamesp
a
ceAware(Z)V
java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setNamesp
a
ceAware(Z)V
at
org.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader.<init>(XBean
X
mlBeanDefinitionReader.java:57)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefini
t
ions(FileSystemXmlApplicationContext.java:157)
at
org.springframework.context.support.AbstractRefreshableApplicationConte
x
t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
at
org.springframework.context.support.AbstractApplicationContext.refresh(
A
bstractApplicationContext.java:262)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSys
t
emXmlApplicationContext.java:149)
at
org.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSys
t
emXmlApplicationContext.java:48)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.createBeanFactory(W
a
rehouseCraneServiceMixClientImpl.java:123)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.setUp(WarehouseCran
e
ServiceMixClientImpl.java:102)
at
aa.autoWarehouse.WarehouseCraneServiceMixClientImpl.<init>(WarehouseCra
n
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.i
n
stantiate(SimpleInstantiationStrategy.java:48)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
c
tory.createBean(AbstractAutowireCapableBeanFactory.java:310)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
c
tory.createBean(AbstractAutowireCapableBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A
b
stractBeanFactory.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A
b
stractBeanFactory.java:145)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
e
InstantiateSingletons(DefaultListableBeanFactory.java:282)
at
org.springframework.context.support.AbstractApplicationContext.refresh(
A
bstractApplicationContext.java:317)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<in
i
t>(FileSystemXmlApplicationContext.java:82)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<in
i
t>(FileSystemXmlApplicationContext.java:67)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<in
i
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:1
0
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