This service will be undergoing maintenance at 03:30 UTC, 2016-05-27. It is expected to last about 2 hours

Bug 729846

Summary: Datasource created through CLI not discovered by JBoss AS plugin.
Product: [Other] RHQ Project Reporter: Ondřej Žižka <ozizka>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: low    
Version: 3.0.1CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Ondřej Žižka 2011-08-10 22:39:01 EDT

Create a datasource through CLI.
The DS is created, but not discovered.
When I want to create it again, EAP 5.1.1 says:

--------------------------------------------------------------------------- Deployment content already exists: /root/eap/server/all/deploy/cliTestDS-ds.xml
        at org.jboss.system.server.profileservice.repository.BasicDeploymentRepository.addDeploymentContent(
        at org.jboss.remoting.ServerInvoker.handleInternalInvocation(
        at org.jboss.remoting.ServerInvoker.invoke(
        at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(
        at org.jboss.remoting.Client.invoke(
        at org.jboss.remoting.Client.invoke(
        at org.jboss.remoting.Client.invoke(
Comment 1 Ondřej Žižka 2011-08-10 22:41:33 EDT
CLI code:

    var appTypeName = "No Tx Datasource";
    var appType = ResourceTypeManager.getResourceTypeByNameAndPlugin( appTypeName, "JBossAS5" );

    var deployConfig = new Configuration();
    deployConfig.put( new PropertySimple("jndi-name", "cliTestDS"));
    deployConfig.put( new PropertySimple("driver-class", "org.hsqldb.jdbc.JDBCDriver"));
    deployConfig.put( new PropertySimple("connection-url", "jdbc:hsqldb:mem:."));

    var as = findJBossAS();
    ResourceFactoryManager.createResource(,,   "cliTestDS-res",   null, deployConfig );
Comment 2 Ondřej Žižka 2011-08-10 22:56:05 EDT
Note that discovery or discovery --full did not help.