HornetQ directory lookup issue when copy jboss folder to different server

Solution Verified - Updated -

Issue

We are working on moving our application to different data center(server) and application running on Jboss 5.1.2 EAP/HQ_2_2_10_EAP_GA_BUILD2. To make my task easy, I just copied entire jboss folder from one server to another server and started app.

Application on new server throws following exception on start-up. It looks like it still points to old hornetq directory where old server configured even though we changed hornetq file storage to different directory on the new server. Please help us to resolve this issue.

WARN  [org.hornetq.core.server.impl.FileLockNodeManager] (main) can't open file /hornetq/journal/server.lock
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:883)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2
  • HornetQ
    • 2.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content