Details
-
Bug
-
Resolution: Done
-
Major
-
7.1.3.Final (EAP)
-
None
Description
Hi,
First of all, the new CLI deployment archive feature of 7.2.x solves a lot of problems for my migration from 5.1! I have 20+ standalone servers that now can be configured at deploy-time. Thanks!
Playing with the latest nightly build from yesterday, my CLI archive consists of the following;
- mywebapp.war
- postgresql-9.1-902.jdbc4.jar
- deploy.scr
- undeploy.scr
deploy.scr has the following lines;
deploy postgresql-9.1-902.jdbc4.jar
data-source add --name=MyDS --jndi-name=java:jboss/datasources/MyDS --driver-name=postgresql-9.1-902.jdbc4.jar --connection-url=[not important for this example]
deploy mywebapp.war
That is, install my jdbc driver, create the data-source, and finally deploy my webapp which uses the data-source. This does not work The error is;
[standalone@localhost:9999 /] deploy mycliarchive.cli
......
Failed to execute archive script: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS010468: Driver named \"postgresql-9.1-902.jdbc4.jar\" is not installed."}}
Attachments
Issue Links
- incorporates
-
AS7-5438 standalone.xml: check if driver name datasource references existing driver in drivers is missing
- Resolved
- is blocked by
-
AS7-5607 DataSourceEnable does not handle rollback
- Resolved
- relates to
-
AS7-3349 Data-source add allows adding data sources with non existing JDBC driver
- Resolved