| Summary: | Datasource created through CLI not discovered by JBoss AS plugin. | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Ondřej Žižka <ozizka> |
| Component: | Plugins | Assignee: | Nobody <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.0.1 | CC: | 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: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 );
Note that discovery or discovery --full did not help. |
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)