asadmin delete-jms-resource can delete a resource which is not displayed with asadmin list-jms-resource.
To reproduce the problem:
1. Create a connector connection pool with raname jaxr-ra. (Do not use jmsra.)
C:\>asadmin create-connector-connection-pool --raname=jaxr-ra --connectiondefinition=com.sun.connector.jaxr.JaxrConnectionFactory pooltest
Connector connection pool pooltest created.
Command create-connector-connection-pool executed successfully.
2. The new resource is not listed for the JMS resources.
Nothing to list
Command list-jms-resources executed successfully.
3. The new resource is deleted with delete-jms-resource command even if it is not a JMS resource.
C:\>asadmin delete-jms-resource jms/test
Connector resource jms/test deleted.
Command delete-jms-resource executed successfully.