[jboss-dev-forums] [JBoss AS 7 Development] - CLI deployment archive problem

Jesper Thorhauge do-not-reply at jboss.com
Thu Sep 20 13:06:19 EDT 2012


Jesper Thorhauge [https://community.jboss.org/people/thohawk] created the discussion

"CLI deployment archive problem"

To view the discussion, visit: https://community.jboss.org/message/760668#760668

--------------------------------------------------------------
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 using the data-source. *This does not work* :-( The error is;

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."}}

What *works* is;

./jboss-cli.sh -c --file=deploy.scr

What is the difference?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/760668#760668]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120920/54123a0f/attachment.html 


More information about the jboss-dev-forums mailing list