本文介绍了JBoss 7.1.1不创建server.log的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我们目前在域模式下运行的
JBoss 7.1.1。
操作系统红帽:红帽企业Linux服务器版本6.4(圣地亚哥)

Here is what we currently have running,JBoss 7.1.1 in Domain Mode.OS Red Hat:Red Hat Enterprise Linux Server release 6.4 (Santiago)

所以在作为域控制器的主机(Host-A)我们也有一个App-Server。我们有17个其他主机,但是我现在正在Host-A上进行测试。

So on the host(Host-A) that acts as the Domain Controller we also have an App-Server. We have 17 other hosts but I am testing it out on Host-A right now.

在该服务器的domain.xml中,我们创建了一个自定义配置文件在该配置文件中,我已经配置了这样的日志位置:

In the domain.xml on that very server, we have created a custom profile and in that profile I have configured a log location like this:

<profile name="AppLogix-full-ha">
            <subsystem xmlns="urn:jboss:domain:logging:1.1">
                <console-handler name="CONSOLE">
                    <level name="INFO"/>
                    <formatter>
                        <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                    </formatter>
                </console-handler>
                <periodic-rotating-file-handler name="FILE">
                    <level name="INFO"/>
                    <formatter>
                        <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                    </formatter>
                   <file relative-to="jboss.server.log.dir" path="/apps/logs/AppLogix.Cluster/server.log"/>
                    <suffix value=".yyyy-MM-dd"/>
                    <append value="true"/>
                </periodic-rotating-file-handler>

这是为应用服务器配置日志的唯一位置。
我在Host-A上的host.xml中没有任何东西。

and this the only place where the log is configured for the app server.I don't have anything in the host.xml on Host-A.

问题是它仍然在/ apps / jboss / jboss-as-7.1.1.Final/domain/servers/AppLogix.Member1/log(我认为是默认位置)

Problem is it still keeps creating the log in the /apps/jboss/jboss-as-7.1.1.Final/domain/servers/AppLogix.Member1/log ( which I THINK is the default location)

我在这里做错什么专家?
我错过了什么?
任何帮助是非常重要的。
真诚,
KK。

What am I doing wrong here experts?What did I miss?Any help is monumentally appreciated.Sincerely,KK.

推荐答案

确定我想到了...我在使用在domain.xml结尾处错误的配置文件.......... OK我想出了
在domain.xml的底部
所有的配置文件都有正确的位置为server.log文件,但是还有一个名为full-ha(一个未使用的无用配置文件)的配置文件,它仍然指向默认位置。我忘了把它从全包改为适当的配置文件名称
一旦我改变它,这一切都很好!!!

OK I figured it out....I was using the wrong profile at the end of the domain.xml..........OK I figured it outat the bottom of the domain.xmlAll the profiles had the correct locations for the server.log file but there was another profile called full-ha( an un-used useless profile) that will still pointing to the default location. I forgot to change it from full-ha to appropriate profile nameOnce I changed it , it all worked fine !!!

这篇关于JBoss 7.1.1不创建server.log的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 20:05