• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Enterprise Service Bus Service Mix version 3.2.1 deployment problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic