This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enterprise Service Bus Service Mix version 3.2.1 deployment problem  RSS feed

 
harbeer kadian
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I created a Service assembly to poll a file in a particular directory and send it to some other directory
The content of xbean.xml file is as follows

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:file="http://servicemix.apache.org/file/1.0"
xmlns:esb="http://opensourceesb/XmlConvertor/">

<file:poller service="esb:filePoller"
endpoint="simpleToJmsPoller"
targetService="esb:fileSender"
targetEndPoint="simpleFromJMSSender"
file="file:///D:/harbeer/EsbInAction/workspace/workspace-servicemix/servicemix/resources/chapter3/in"
period="10000">


</file:poller>

<file:sender service="esb:fileSender"
endpoint="simpleFromJMSSender"
directory="file:///D:/harbeer/EsbInAction/workspace/workspace-servicemix/servicemix/resources/chapter3/out">


</file:sender>

</beans>

When I am adding this service assembly in the hotdeploy directory of servicemix, i am getting following exception.

java.io.IOException: Cannot build parent directory: D:\harbeer\EsbInAction\esb\a

pache-servicemix-3.2.1\data\smx\service-assemblies\

XmlConvertor



at org.apache.servicemix.jbi.util.FileVersionUtil.getNewVersionDirectory

(FileVersionUtil.java:119)

at org.apache.servicemix.jbi.container.EnvironmentContext.getNewServiceA

ssemblyEnvironment(EnvironmentContext.java:329)

at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs

sembly(DeploymentService.java:458)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

ceAssembly(AutoDeploymentService.java:350)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi

ve(AutoDeploymentService.java:253)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire

ctory(AutoDeploymentService.java:647)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(

AutoDeploymentService.java:60)

at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD

eploymentService.java:611)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

WARN - AutoDeploymentService - Directory: hotdeploy: Automatic install

of D:\harbeer\EsbInAction\esb\apache-servicemix-3.2.1\hotdeploy\XmlConvertor-sa

.zip failed

javax.jbi.management.DeploymentException: Failed to update Service Assembly:

XmlConvertor



at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

ceAssembly(AutoDeploymentService.java:365)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi

ve(AutoDeploymentService.java:253)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire

ctory(AutoDeploymentService.java:647)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(

AutoDeploymentService.java:60)

at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD

eploymentService.java:611)

at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

Caused by: java.io.IOException: Cannot build parent directory: D:\harbeer\EsbInA

ction\esb\apache-servicemix-3.2.1\data\smx\service-assemblies\

XmlConvertor



at org.apache.servicemix.jbi.util.FileVersionUtil.getNewVersionDirectory

(FileVersionUtil.java:119)

at org.apache.servicemix.jbi.container.EnvironmentContext.getNewServiceA

ssemblyEnvironment(EnvironmentContext.java:329)

at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs

sembly(DeploymentService.java:458)

at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

ceAssembly(AutoDeploymentService.java:350)

... 6 more


If any one has previously worked on Service Mix, please help me out.

With Regards
Harbeer Kadian

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!