[jboss-jira] [JBoss JIRA] (WFLY-3571) bad error message for invalid <resource-root path>
Brian Stansberry (JIRA)
issues at jboss.org
Thu Jul 10 17:54:24 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFLY-3571:
-----------------------------------
Assignee: Brian Stansberry (was: Jason Greene)
Component/s: Domain Management
This is due to the way AbstractOperationContext.executeStep is logging errors. It's logging the name and address of the management op that failed as well as the failure-description that would go as part of the response to any management client, but it's not logging the stack trace.
I think the issue description was missing a line in what was logged. When I mess up the h2 database driver module and boot, I get this:
{code}
16:39:04,546 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 27) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "h2")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.h2database.h2]"
{code}
I'm not saying that's sufficient; just that it's more like what I expected, whereas the issue description looked really odd.
> bad error message for invalid <resource-root path>
> --------------------------------------------------
>
> Key: WFLY-3571
> URL: https://issues.jboss.org/browse/WFLY-3571
> Project: WildFly
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Domain Management
> Reporter: Karl Pietrzak
> Assignee: Brian Stansberry
> Priority: Minor
>
> h3. What
> If you have a typo in your path for your module.xml for a JDBC driver, e.g.,
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <module xmlns="urn:jboss:module:1.0" name="com.mysql">
> <resources>
> <resource-root path="DOES.NOT.EXIST.jar"/>
> </resources>
> <dependencies>
> <module name="javax.api"/>
> <module name="javax.transaction.api"/>
> </dependencies>
> </module>
> {code}
> WF just says:
> {noformat}
> 16:22:26,770 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 30) JBAS014613: Operation ("add") failed - address: ([
> ("subsystem" => "datasources"),
> ("jdbc-driver" => "com.mysql")
> {noformat}
> h3. Why
> This is not very informative, unfortunately. Maybe it's logged as level DEBUG instead of WARN? If someone points me to the name of the class that handles this kind of thing, I can submit a patch/pull request.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list