The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

belabe (2) [Avatar] Offline
#1
Good morning,
I'm doing the first things with servicemix and now i want add a store monitoring to my symple application.
My problem is: where put the code for registering the auditor in servicemix.xml:
<bean name="existAuditor" class="esb.chapter10.auditor.ExistAuditor" >
init-method="start"
destroy-method="stop">
<property name="container" ref="jbi"/>
<property name="url" >
value="xmldb:exist://localhost:8080/exist/xmlrpc/"/>
<property name="database" value="db"/>
</bean>

If I put near the other beans at the startup servicemix says that it doesn't find the class.

What do I miss?
What is the problem?

Thank you.
Belabe
belabe (2) [Avatar] Offline
#2
Re: chapter 10: problem with existAuditor
Hello, I have create an .jar with my implementation and put it in the lib folder as write here: http://www.mail-archive.com/servicemix-users@geronimo.apache.org/msg11207.html

But now when i launch servicemix i have this error:

Loading Apache ServiceMix from file: conf/servicemix.xml
[java] Caught: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:osesbinaction2esbapache-servicemix-3.2.1confservicemix.xml]; nested exception is java.lang.NoClassDefFoundError: org/xmldb/api/base/Resource

Why? What can be the problem?
Thank to all.