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   
Whiteboard:
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
STR:

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


---------------------------------------------------------------------------

java.io.SyncFailedException: Deployment content already exists: /root/eap/server/all/deploy/cliTestDS-ds.xml
        at org.jboss.system.server.profileservice.repository.BasicDeploymentRepository.addDeploymentContent(BasicDeploymentRepository.java:177)
        at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.handleStream(AbstractDeployHandler.java:288)
        at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.handleStream(AbstractDeployHandler.java:63)
        at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1885)
        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:954)
        at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
        at org.jboss.remoting.Client.invoke(Client.java:2055)
        at org.jboss.remoting.Client.invoke(Client.java:879)
        at org.jboss.remoting.Client.invoke(Client.java:1758)
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( as.id, appType.id,   "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.