We're updating the issue view to help you get more done. 

Maven Cargo plugin incorrectly replaces jboss.server.lib.url

Description

I am unable to get jboss to startup correctly due to deployment issues. After digging a little further into the issue, cargo is telling jboss to run the profile it created (from the configure phase) with the exception of the lib directory.

Here is the first part of my log from mvn cargo:run

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [INFO] [talledLocalContainer] 14:06:33,841 INFO [ServerImpl] Starting JBoss (Microcontainer)... [INFO] [talledLocalContainer] 14:06:33,842 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634) [INFO] [talledLocalContainer] 14:06:33,842 INFO [ServerImpl] Bootstrap URL: null [INFO] [talledLocalContainer] 14:06:33,842 INFO [ServerImpl] Home Dir: /home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA [INFO] [talledLocalContainer] 14:06:33,843 INFO [ServerImpl] Home URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/ [INFO] [talledLocalContainer] 14:06:33,843 INFO [ServerImpl] Library URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/lib/ [INFO] [talledLocalContainer] 14:06:33,843 INFO [ServerImpl] Patch URL: null [INFO] [talledLocalContainer] 14:06:33,843 INFO [ServerImpl] Common Base URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/common/ [INFO] [talledLocalContainer] 14:06:33,843 INFO [ServerImpl] Common Library URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/common/lib/ [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Name: default [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Base Dir: /home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Base URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/ [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Config URL: file:/home/my-proj/test.services/target/cargo/configurations/jboss51x/conf/ [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Home Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Home URL: file:/home/my-proj/test.services/target/cargo/configurations/jboss51x/ [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Data Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/data [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Library URL: file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/lib/ [INFO] [talledLocalContainer] 14:06:33,844 INFO [ServerImpl] Server Log Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/log [INFO] [talledLocalContainer] 14:06:33,845 INFO [ServerImpl] Server Native Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/tmp/native [INFO] [talledLocalContainer] 14:06:33,845 INFO [ServerImpl] Server Temp Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/tmp [INFO] [talledLocalContainer] 14:06:33,845 INFO [ServerImpl] Server Temp Deploy Dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/tmp/deploy [INFO] [talledLocalContainer] 14:06:34,219 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/home/my-proj/test.services/target/cargo/configurations/jboss51x/conf/bootstrap.xml [INFO] [talledLocalContainer] 14:06:34,546 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache] [INFO] [talledLocalContainer] 14:06:34,547 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]] [INFO] [talledLocalContainer] 14:06:34,747 INFO [CopyMechanism] VFS temp dir: /home/my-proj/test.services/target/cargo/configurations/jboss51x/tmp [INFO] [talledLocalContainer] 14:06:34,747 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. [INFO] [talledLocalContainer] 14:06:35,529 INFO [ServerInfo] Java version: 1.6.0_26,Sun Microsystems Inc. [INFO] [talledLocalContainer] 14:06:35,529 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03) [INFO] [talledLocalContainer] 14:06:35,529 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02,Sun Microsystems Inc. [INFO] [talledLocalContainer] 14:06:35,530 INFO [ServerInfo] OS-System: Linux 3.2.0-24-generic,amd64 [INFO] [talledLocalContainer] 14:06:35,530 INFO [ServerInfo] VM arguments: -Xms128m -Xmx512m -XX:PermSize=48m -XX:MaxPermSize=128m -Djboss.server.lib.url=file://home/my-proj/test.services/target/cargo/configurations/${cargo.containerId}/lib -Djboss.common.lib.url=file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/common/lib/ -Djava.endorsed.dirs=/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/lib/endorsed -Djboss.home.dir=/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA -Djboss.server.home.dir=/home/my-proj/test.services/target/cargo/configurations/jboss51x -Djboss.server.home.url=file:/home/my-proj/test.services/target/cargo/configurations/jboss51x/ -Djboss.server.name=default -Djboss.server.lib.url=file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/lib/ -Djboss.server.log.threshold=INFO

If you notice, cargo is passing in -Djboss.server.lib.url=file:/home/integ/jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/efault/lib instead of -Djboss.server.lib.url=file:/home/my-proj/test.services/target/cargo/configurations/jboss51x/lib

According to ALL of the documentation that I am reading, you are supposed to place third-party dependency jar files (like jdbc connectors and the like) in <JBOSS_HOME>/server/<CONFIGURATION>/lib. However, cargo is defaulting this value to something that I am unable to change and point to the correct location.

Status

Assignee

Savas Ali Tokmen

Reporter

James Davis

Components

Fix versions

Affects versions

1.2.2

Priority

Blocker