NotifyFiles does not work while writing files in network shared folder if JBoss Enterprise SOA-P is running as a Windows service

Solution Unverified - Updated -

Issue

  • I am using NotifyFiles to write to a network shared folder using a mapped drive. But it does not work when running JBoss Enterprise SOA-P as Windows service as it gives the following ERROR message. This is working when the JBoss Enterprise SOA-P is running as standalone.
    Can you please guide me how to solve this issue?
ERROR [org.jboss.soa.esb.notification.NotificationList] (pool-38-thread-1) Can't instantiate target <target class="NotifyFiles">
        <file URI="file:///Z:/Dump/results.log" append="false"/> 
        <file URI="file:///Z:/HelloWorldFileNotifierTest.log" append="false"/>
</target>
java.lang.IllegalArgumentException: Bad File Notification Configuration: Parent folder for file [Z:\Dump\results.log] doesn't exist.
    at org.jboss.soa.esb.notification.NotifyFiles.setFiles(NotifyFiles.java:153)
    at org.jboss.soa.esb.notification.NotifyFiles.sendNotification(NotifyFiles.java:173)
    at org.jboss.soa.esb.notification.NotificationList.notifyAll(NotificationList.java:164)
    at org.jboss.soa.esb.actions.Notifier.notifyOK(Notifier.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processSuccess(ActionProcessorMethodInfo.java:165)
    at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.processSuccess(OverriddenActionLifecycleProcessor.java:108)
    at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.notifySuccess(ActionProcessingPipeline.java:965)
    at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:739)
    at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603)
    at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433)
    at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:550)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

Environment

  • JBoss Enterprise Service Oriented Architecture Platform (SOA-P)
    • 5.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.