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

Reply via email to