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.

maku (1) [Avatar] Offline
#1
hi,

i tried to deploy chapter 3 exapmle to servicemix and I get following exception:

org.apache.xbean.kernel.ServiceRegistrationException: org.springframework.bean
s.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:esbinactionesbapache-servicemix-3.2.1data
smxservice-assembliesChapter3-JMSBindingServiceversion_1susservicemix-beanSU-BEANxbean.xml]; nested exception is org.springframework
.beans.FatalBeanException: Unable to resolve classpath location bcel.jar
at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
at org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
at org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:8smilie
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:50smilie
at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:479)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingComponents(AutoDeploymentService.java:532)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:314)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:251)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
...

In the chapter3-jms-sa.zip serviceassembly are no libs. Isn't it necessary to deploy all libs uses in the SE's?

TIA
Martin
tijs.rademakers (494) [Avatar] Offline
#2
Re: Chapter 3 - error on servicemix deployment
Hi Martin,

Are your sure you've the latest version of the source code? Because you should have a xbean.xml file in the resources/chapter3/bean directory which defines a number of libraries to include and these libraries are stored in the sub-directory resources. If this doesn't work please post a reply.

Best regards,

Tijs