[
https://issues.jboss.org/browse/AS7-1346?page=com.atlassian.jira.plugin.s...
]
Jeff Zhang commented on AS7-1346:
---------------------------------
hi Heiko,
I checked this. Since RA subsystem use archive name as node name, like
resource-adapter=xmpp-ra.rar
The code is L438 in ResourceAdaptersExtension.java
raAddress.add(RESOURCEADAPTER, ra.getArchive());
That to add resource-adapter by cli should be:
./resource-adapter=xmpp-ra.rar:add(archive="xmpp-ra.rar",transacation-support="Notransaction",connection-definitions=[{"class-name"
=> "com.ramphastos.xmpp.XmppConnectionFactory","jndi-name" =>
"eis/xmpp2","pool-name"=>"xmpp_Pool"}])
I tested on latest AS7, and restart, everything looks correct.
I will close this. If you find something wrong, please reopen it.
Thanks!
Adding RA fails
---------------
Key: AS7-1346
URL:
https://issues.jboss.org/browse/AS7-1346
Project: Application Server 7
Issue Type: Bug
Components: JCA
Reporter: Heiko Braun
Assignee: Jeff Zhang
Fix For: 7.1.0.Alpha1
Adding a new RA fails:
{noformat}
Request:
[INFO] {
[INFO] "operation" => "add",
[INFO] "address" => [
[INFO] ("subsystem" => "resource-adapters"),
[INFO] ("resource-adapter" => "xmpp")
[INFO] ],
[INFO] "archive" => "xmpp-ra.rar",
[INFO] "transaction-support" => "NoTransaction",
[INFO] "connection-definitions" => [{
[INFO] "class-name" =>
"com.ramphastos.xmpp.XmppConnectionFactory",
[INFO] "jndi-name" => "eis/xmpp2",
[INFO] "pool-name" => "xmpp_Pool"
[INFO] }]
[INFO] }
Server Log:
11:11:43,826 ERROR [org.jboss.as.controller] (pool-2-thread-2) Operation
("remove") failed - address: ([
("subsystem" => "resource-adapters"),
("resource-adapter" => "xmpp")
]): java.util.NoSuchElementException: "resource-adapter" =>
"xmpp"
at org.jboss.as.controller.registry.BasicResource.requireChild(BasicResource.java:95)
at
org.jboss.as.controller.OperationContextImpl.readModel(OperationContextImpl.java:697)
at
org.jboss.as.connector.subsystems.resourceadapters.RaRemove.execute(RaRemove.java:51)
at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira