How do I script the features:install war command in Fuse ?
Issue
- When we deploy a war file which uses Spring we get the message below in the Fuse Management Console logs. How do I resolve this ?
java.io.FileNotFoundException: URL [bundle://0.0.0.0/com/redhat/sample/] cannot be resolved to absolute file path because it does not reside in the file system: bundle://0.0.0.0/com/redhat/sample/
at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:204)[com.redhat.sample.app:demo-di:0.0.1-SNAPSHOT]
at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52)[com.redhat.sample.app:demo-di:0.0.1-SNAPSHOT]
at org.springframework.core.io.UrlResource.getFile(UrlResource.java:212)[com.redhat.sample.app:demo-di:0.0.1-SNAPSHOT]
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.
- We use the web interface and console interface(through ssh). They work well and are user friendly but what we want to do is deploy the WAR to development server after a successful overnight build.
- Hence, is there any way we can script and automate the execute for the
features:install war
command ?
Environment
- Red Hat JBoss Fuse
- 6.x
- Spring
- OSP4J Pax War
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.