Details
-
Bug
-
Resolution: Duplicate
-
Major
-
7.1.3.Final (EAP)
-
None
Description
When HornetQ journal is specified using absolute paths then it's treated as relative path:
<hornetq-server> ... <paging-directory path="/home/jbossqa/hornetq_eap6_testsuite/journal_A/paging"/> <bindings-directory path="/home/jbossqa/hornetq_eap6_testsuite/journal_A/bindings"/> <journal-directory path="/home/jbossqa/hornetq_eap6_testsuite/journal_A/journal"/> <large-messages-directory path="/home/jbossqa/hornetq_eap6_testsuite/journal_A/large-messages"/> ... </hornetq-server>
Server log:
15:29:07,418 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) live server is starting with configuration HornetQ Configuration (clustered=true,backup=false,sharedStore=true,journalDirectory=/home/jbossqa/hornetq_eap6_testsuite/server1/jboss-eap-6.0/standalone/data//home/jbossqa/hornetq_eap6_testsuite/journal_A/journal,bindingsDirectory=/home/jbossqa/hornetq_eap6_testsuite/server1/jboss-eap-6.0/standalone/data//home/jbossqa/hornetq_eap6_testsuite/journal_A/bindings,largeMessagesDirectory=/home/jbossqa/hornetq_eap6_testsuite/server1/jboss-eap-6.0/standalone/data//home/jbossqa/hornetq_eap6_testsuite/journal_A/large-messages,pagingDirectory=/home/jbossqa/hornetq_eap6_testsuite/server1/jboss-eap-6.0/standalone/data//home/jbossqa/hornetq_eap6_testsuite/journal_A/paging)
Definition of "directoryType" from jboss-as-messaging_1_2.xsd:
<xs:complexType name="directoryType"> <xs:annotation> <xs:documentation> <![CDATA[ A directory location configuration. The "path" attribute denotes a relative or absolute filesystem pathname where the directory should be located. The "relative-to" attribute references a global path configuration in the domain model, defaulting to the JBoss Application Server data directory (jboss.server.data.dir). If the value of the "path" attribute does not specify an absolute pathname, it will treated as relative to this path. ]]> </xs:documentation> </xs:annotation> <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir" /> <xs:attribute name="path" type="xs:string" /> </xs:complexType>
It seems that detection that given string in path attribute is absolute path is not correct.