Can't override the path "jboss.server.log.dir" in config file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't override the path "jboss.server.log.dir" in config file

Vimal Kansal
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



_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: Can't override the path "jboss.server.log.dir" in config file

kkhan
To override jboss.server.log.dir you need to start the server with ./standalone.sh -Djboss.server.log.dir=/some/where

See the following location for more information
https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-Systemproperties

http://community.jboss.org/en/jbossas/as7_users?view=discussions

I'll check with the author about the wording here.

BTW please for user questions use http://community.jboss.org/en/jbossas/as7_users?view=discussions rather than this list

On 14 Jul 2011, at 03:49, Vimal Kansal wrote:

> 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
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: Can't override the path "jboss.server.log.dir" in config file

Vimal Kansal
Thanks Kabir. I will

On 14/07/2011 6:46 PM, Kabir Khan wrote:

> To override jboss.server.log.dir you need to start the server with ./standalone.sh -Djboss.server.log.dir=/some/where
>
> See the following location for more information
> https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-Systemproperties
>
> http://community.jboss.org/en/jbossas/as7_users?view=discussions
>
> I'll check with the author about the wording here.
>
> BTW please for user questions use http://community.jboss.org/en/jbossas/as7_users?view=discussions rather than this list
>
> On 14 Jul 2011, at 03:49, Vimal Kansal wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev