[jboss-dev-forums] [JBoss AS7 Development] - Logging deployment errors on start-up
Alexey Loubyansky
do-not-reply at jboss.com
Mon Nov 15 11:17:47 EST 2010
Alexey Loubyansky [http://community.jboss.org/people/alex.loubyansky%40jboss.com] created the discussion
"Logging deployment errors on start-up"
To view the discussion, visit: http://community.jboss.org/message/571259#571259
--------------------------------------------------------------
At the moment it's silent. Suppose there is a deployment unit in the repository and listed in the config in <deployments> which is invalid and can't be deployed. Starting the server (standalone, at least) the logs will contain a line like
"INFO [org.jboss.as.deployment] (pool-1-thread-2) Activating deployment: managedbeans.jar"
but nothing more even if the deployment fails. One of the easiest ways to fix this would probably be using a UpdateResultHandler which would log things from AbstractServerModelUpdate
/** * Apply the boot action for this update. This action is only executed when the update is processed during * server startup. By default, this method simply invokes {@link #applyUpdate(UpdateContext, UpdateResultHandler, Object)} * directly, but this behavior should be overriden if a different action must be taken at boot time. * * @param updateContext the update context */ public void applyUpdateBootAction(UpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); }
instead of using UpdateResultHandler.NULL.
Any objections or other suggestions?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571259#571259]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101115/069ea121/attachment.html
More information about the jboss-dev-forums
mailing list