When rebooting that previously messed up config it fails with a xml parsing error:

[Host Controller] Caused by: org.jboss.jca.common.api.validator.ValidateException: jndiName (xml attribure jndi-name) is required in org.jboss.jca.common.metadata.ds.DataSourceImpl
[Host Controller] at org.jboss.jca.common.metadata.ds.DataSourceAbstractImpl.partialCommonValidation(DataSourceAbstractImpl.java:262)
[Host Controller] at org.jboss.jca.common.metadata.ds.DataSourceAbstractImpl.<init>(DataSourceAbstractImpl.java:142)
[Host Controller] at org.jboss.jca.common.metadata.ds.DataSourceImpl.<init>(DataSourceImpl.java:90)
[Host Controller] at org.jboss.jca.common.metadata.ds.DsParser.parseDataSource(DsParser.java:439)
[Host Controller] at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:158)
[Host Controller] at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:113)
[Host Controller] at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:473)


Ike


On Apr 7, 2011, at 10:27 AM, Heiko Braun wrote:



[localhost:9999 /] /profile=default/subsystem=datasources/data-source="custom-datasource-name":add
{
    "outcome" => "failed",
    "result" => {"server-groups" => {"main-server-group" => {
        "server-one" => {
            "host" => "local",
            "response" => {
                "outcome" => "failed",
                "failure-description" => "Failed to create DataSource instance for [{
    \"operation\" => \"add\",
    \"address\" => [
        (\"subsystem\" => \"datasources\"),
        (\"data-source\" => \"custom-datasource-name\")
    ]
[...]

And then a subsequent read operation blows up:

 {
     "operation" : "read-children-resources",
     "address" : [
         {
             "PROPERTY_VALUE" : {
                 "profile" : "default"
             }
         },
         {
             "PROPERTY_VALUE" : {
                 "subsystem" : "datasources"
             }
        }
   ],
 "child-type" : "data-source"
}


[Host Controller] 10:18:06,349 ERROR [org.jboss.as.controller] (pool-2-thread-21) operation ("read-children-resources") failed - address: ([
[Host Controller]     ("profile" => "default"),
[Host Controller]     ("subsystem" => "datasources")
[Host Controller] ]): java.lang.IllegalArgumentException
[Host Controller] at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:124)
[Host Controller] at org.jboss.dmr.ModelNode.keys(ModelNode.java:1085)
[Host Controller] at org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadResourceHandler.readModel(GlobalOperationHandlers.java:128)



_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev