简体   繁体   English

Stacktrace不会在Glassfish 4.1 Cluster日志中打印

[英]Stacktrace does not print in Glassfish 4.1 Cluster log

Doing our first cluster setup on Glassfish (4.1). 在Glassfish上进行我们的第一次集群设置(4.1)。 Application(EAR) level logs (ex printing a stacktrace) don't seem to reach the server.log in (GF-dir)/domains//logs/server.log or (GF-dir)/nodes/(node-name)/(instance-name)/server.log 应用程序(EAR)级别日志(例如打印堆栈跟踪)似乎没有到达(GF-dir)/domains//logs/server.log或(GF-dir)/ nodes /(node-name)中的server.log )/(例如名称)/server.log

(There is no cluster.log as stated in documentation) (文档中没有cluster.log)

We didn't change any of the default logging options in logging.properties. 我们没有更改logging.properties中的任何默认日志记录选项。

The current logs only show cluster and instance related information. 当前日志仅显示与集群和实例相关的信息。

I had similar probrem. 我有类似的问题。 server.log is not output after 之后不输出server.log

MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is EMBEDDED, connection mode is TCP

If the similar message is output in (GF-dir)/nodes/(node-name)/(instance-name)/imq/instances/(clustername instancename)/log/log.txt 如果在(GF-dir)/ nodes /(node-name)/(instance-name)/ imq / instances /(clustername instancename)/log/log.txt中输出类似的消息

 Invalid broker address for this broker to run in cluster: Loopback IP address is not allowed in broker address mq://127.0.1.1:27676/?instName=c1i1&brokerSessionUID=2263708429127912192&ha=false for cluster

Fixed the node server's /etc/hosts file to not to use the loopback to the node server. 修复了节点服务器的/ etc / hosts文件,使其不使用环回到节点服务器。

It seems that the node stops to output to the log file when JMS broker is configured as embedded (the default). 当JMS代理配置为嵌入式(默认)时,似乎节点停止输出到日志文件。 I tried to change it to LOCAL (in the JMS configuration, plus turned on JMS availability service with defaults), and the log file is now output as expected. 我尝试将其更改为LOCAL(在JMS配置中,加上默认启用JMS可用性服务),现在按预期输出日志文件。

This is not a solution per se, as I started to get other errors due to the change in JMS configuration. 这本身不是一个解决方案,因为我开始因JMS配置的变化而得到其他错误。 But I'm able to see error messages from my application which I was not able to see before. 但我能够看到我以前无法看到的应用程序的错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM