We use <cargo.hostname>123.42.23.2</cargo.hostname> <cargo.servlet.port>8080</cargo.servlet.port>
Maybe that works. Stefan Daniele De Francesco wrote:
Hi, I need to deploy an ear from my local repo to an alive and kickin' jboss 4.0.3SP1 remote installation...you'd say "hey, man...MAVEN CARGO PLUGIN it's what you need!!". Unfortunately...I've been trying this for a long time before I made up my mind and drop you these lines... I have a trouble in the configuration of the plugin itself, I think... but need explanations, if possible.... here is my plugin's config <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <type>${configuration.type}</type> <properties> <cargo.remote.uri>http://123.234.2.221:8080 </cargo.remote.uri> <cargo.remote.usernameadmin</cargo.remote.username><cargo.remote.passwordadmin</cargo.remote.password></properties> <container> <containerId>${container.id}</containerId> <type>${container.type}</type> </container> <deployer> <deployables> <deployable> <groupId>it.sogei.gwb</groupId> <artifactId>gwb-ear</artifactId> <type>${deployable.type}</type> </deployable> </deployables> </deployer> </configuration> </plugin> ..and this is my mvn -e -X clean package jboss:deploy output: [DEBUG] Configuring mojo ' org.codehaus.cargo:cargo-maven2-plugin:1.0-SNAPSHOT:deploy' --> [DEBUG] (s) containerId = jboss4x [DEBUG] (f) type = remote [DEBUG] (f) container = [EMAIL PROTECTED] [DEBUG] (s) groupId = it.sogei.gwb [DEBUG] (s) artifactId = gwb-ear [DEBUG] (s) type = ear [DEBUG] (f) deployables = [ Lorg.codehaus.cargo.maven2.configuration.Deployable;@717323 [DEBUG] (f) deployer = [EMAIL PROTECTED] [DEBUG] (f) localRepository = [local] -> file://C:\Documents and Settings\ddefrancesco\.m2\repository [DEBUG] (f) project = MavenProject: it.sogei.gwb:gwb-ear:1.0-SNAPSHOT @ C:\workspace-nb\gwb\ear\pom.xml [DEBUG] (f) repositories = [[central] -> http://234.234.1.210:8081/artifactory/repo, [snapshots] -> http://26.2.196.208 :8081/artifactory/libs-snapshots] [DEBUG] -- end configuration -- [INFO] [cargo:deploy] [DEBUG] Performing deployment action into [JBoss 4.x Remote]... [DEBUG] Initial deployable values: groupId = [it.sogei.gwb], artifactId = [gwb-ear], type = [ear], location = [null] [DEBUG] Computed deployable values: groupId = [it.sogei.gwb], artifactId = [gwb-ear], type = [ear], location = [C:\works pace-nb\gwb\ear\target\gwb-ear-1.0-SNAPSHOT.ear] [DEBUG] Deploying [C:\workspace-nb\gwb\ear\target\gwb-ear-1.0-SNAPSHOT.ear] ... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] *Failed to deploy to [ http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:servic e%3DMainDeployer&methodName=deploy&argType= java.net.URL&arg0=file:C%3A%5Cworkspace-nb%5Cgwb%5Cear%5Ctarget%5Cgwb-ear-1.0 -SNAPSHOT.ear]* Connection refused: connect [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.codehaus.cargo.container.ContainerException: Failed to deploy to [ http://localhost:8080/jmx-console/HtmlAdaptor?acti on=invokeOpByName&name= jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cworks pace-nb%5Cgwb%5Cear%5Ctarget%5Cgwb-ear-1.0-SNAPSHOT.ear] .................. .................. at org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.connect( JdkHttpURLConnection.java:58) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue Feb 12 12:00:23 CET 2008 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------ Fairly simple you'd say...."hey, man start up that container..." :-) Nothing to do....remote container started yet.... But my question is: why, even though I specified <cargo.remote.uri>http://123.234.2.221:8080</cargo.remote.uri>, the deploy always point on localhost:8080?? Any ideas?? TIA ----------- Daniele De Francesco
-- best regards, Stefan Seidel software developer ________________________ VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
