File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Jboss Configuration Property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss Configuration Property" Watch "Jboss Configuration Property" New topic
Author

Jboss Configuration Property

Anu josh
Greenhorn

Joined: May 25, 2010
Posts: 4
Hi,

Is there any property in Jboss configuration, that will hide all errors which occurs while starting jboss.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

I assume that you are talking about the ERROR entries in the log. The only way to suppress those is to turn off logging, but of course that suppresses all log messages!

But I am curious, exactly what errors are you trying to suppress? And why are you trying to suppress them rather than fixing them?


JBoss In Action
Anu josh
Greenhorn

Joined: May 25, 2010
Posts: 4
Thanks Peter for your reply.

I am not trying to suppress any error. I asked this question because, I have a war file and I am getting an error while server is starting, if I deploy that war in Tomact 5.5. But if I deploy same war file in Jboss web server, my server is getting started without any error. That is the reason I wanted to know that is there any configuration property which hides errors which occurs while jboss is server is starting.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168

Please post the entire exception stacktrace, the version of JBoss AS and Java that you are using and a bit more details about your application.

[My Blog] [JavaRanch Journal]
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

The original JBoss AS is configured such as to show you any error that occur during server start-up and deployment of any ear or war file. If you want to change the logging level in JBoss 5.1 you can do that in <JBOSS_HOME>\server\<SERVER_TYPE>\conf\jboss-log4j.xml
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Anu josh wrote:I have a war file and I am getting an error while server is starting, if I deploy that war in Tomact 5.5. But if I deploy same war file in Jboss web server, my server is getting started without any error.

You are making an incorrect assumption here. Just because there is no error message when JBoss AS deploys the WAR does not mean that JBoss AS is suppressing the error message. Instead, it means that Tomcat doesn't like something about the WAR (perhaps a misconfiguration?), while JBoss AS is fine with it. I can think of a hundred different reasons why this might happen, but without knowing the error that Tomcat gives all I would be doing is guessing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss Configuration Property