[jboss-as7-dev] Can't override the path "jboss.server.log.dir" in config file

Vimal Kansal vkansal at redhat.com
Wed Jul 13 22:49:27 EDT 2011


Hi,

In the admin guide, it is mentioned under "Paths" section :

"
JBoss AS 7 automatically provides a number of standard paths without any 
need for the user to configure them in a configuration file:

     jboss.home - the root directory of the JBoss AS distribution
     user.home - user's home directory
     user.dir - user's current working directory
     java.home - java installation directory
     jboss.server.base.dir - root directory for an individual server 
instance
     jboss.server.data.dir - directory the server will use for 
persistent data file storage
     jboss.server.log.dir - directory the server will use for log file 
storage
     jboss.server.tmp.dir - directory the server will use for temporary 
file storage
     jboss.domain.servers.dir - directory under which a host controller 
will create the working area for individual server instances (managed 
domain mode only)

*Users can add their own paths or override all except the first 5 of the 
above by adding a <path/> element to their configuration file.*

"

which means I should be able to override "jboss.server.log.dir" and when 
I do that in "standalone_preview.xml" :

<paths>
<path name="jboss.server.log.dir" value="C:\\vkk\\as7log"/>
</paths>

  I get the following error :

"
12:40:50,355 ERROR [stderr]     at 
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)
12:40:50,356 ERROR [stderr]     at java.lang.Thread.run(Thread.java:662)
12:40:50,357 ERROR [stderr] Caused by: 
org.jboss.as.controller.persistence.ConfigurationPersistenceException: 
Failed to parse configuration
12:40:50,357 ERROR [stderr]     at 
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
12:40:50,358 ERROR [stderr]     at 
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)
12:40:50,359 ERROR [stderr]     at 
org.jboss.as.server.ServerService.boot(ServerService.java:193)
12:40:50,360 ERROR [stderr]     at 
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
12:40:50,361 ERROR [stderr]     ... 1 more
12:40:50,362 ERROR [stderr] Caused by: 
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[55,3]
12:40:50,363 ERROR [stderr] *Message: jboss.server.log.dir is reserved*
12:40:50,364 ERROR [stderr]     at 
org.jboss.as.controller.parsing.CommonXml.parsePath(CommonXml.java:999)
12:40:50,365 ERROR [stderr]     at 
org.jboss.as.controller.parsing.CommonXml.parsePaths(CommonXml.java:370)
12:40:50,365 ERROR [stderr]     at 
org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:154)
12:40:50,366 ERROR [stderr]     at 
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)
12:40:50,367 ERROR [stderr]     at 
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)
12:40:50,367 ERROR [stderr]     at 
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
12:40:50,368 ERROR [stderr]     at 
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
12:40:50,369 ERROR [stderr]     at 
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
12:40:50,370 ERROR [stderr]     ... 4 more

I was wondering, if the doc is wrong or I am doing something wrong.

Thx

Vimal


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110714/e3994f90/attachment.html 


More information about the jboss-as7-dev mailing list