|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
cargo:deploy and Jboss 5: problem deploying an EAR remotelyHi,
I am trying to deploy artifacts remotely to a Jboss 5 server using the goal cargo:deploy. I never managed to successfully deploy an artifact. Who did it successfully? How? Any help is greatly appreciated. Best Regards Jean-Claude Configuration: Maven: Maven version: 2.0.9 Java version: 1.6.0_07 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" cargo-maven2-plugin: No version specified in the POM. Get the latest (1.0-beta-2) (?) POM: This should be sufficient according to: http://cargo.codehaus.org/Deploying+to+a+running+container <profile> <id>remote-jboss</id> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>jboss5x</containerId> <type>remote</type> </container> <configuration> <type>runtime</type> <properties> <cargo.hostname>${jboss.hostName}</cargo.hostname> </properties> </configuration> </configuration> </plugin> </plugins> </build> </profile> Maven Command: mvn clean package cargo:deploy -P remote-jboss Error Message: (Jboss is up and running and accessible at the address: http://host.domain.ch:8080) [DEBUG] Trace org.codehaus.cargo.container.ContainerException: Failed to deploy to [http://host.domain.ch:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:c%3A%5Cjp%5Cprojects%5Cipi-ear-example%5Cipi-ear-example-ear%5Ctarget%5Cear-example.ear] at org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.connect(JdkHttpURLConnection.java:58) at org.codehaus.cargo.container.jboss.JBossRemoteDeployer.invokeURL(JBossRemoteDeployer.java:179) at org.codehaus.cargo.container.jboss.JBossRemoteDeployer.deploy(JBossRemoteDeployer.java:136) at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:79) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:118) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:266) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) ... Caused by: java.io.FileNotFoundException: http://host.domain.ch:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:c%3A%5Cjp%5Cprojects%5Cipi-ear-example%5Cipi-ear-example-ear%5Ctarget%5Cear-example.ear |
|
|
Re: cargo:deploy and Jboss 5: problem deploying an EAR remotelyOn Tue, 2008-12-23 at 01:36 -0800, Jean-Claude wrote: > Hi, > > I am trying to deploy artifacts remotely to a Jboss 5 server using the goal > cargo:deploy. JBoss container support for remotely running servers is currently broken (and has never worked properly). It will only work if the server is local or if the remote machine has that file. It will not transfer a file across a network. > I never managed to successfully deploy an artifact. > Who did it successfully? How? > > Any help is greatly appreciated. > > Best Regards > Jean-Claude > > Configuration: > Maven: > Maven version: 2.0.9 > Java version: 1.6.0_07 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > cargo-maven2-plugin: > No version specified in the POM. > Get the latest (1.0-beta-2) (?) > > POM: > This should be sufficient according to: > http://cargo.codehaus.org/Deploying+to+a+running+container > <profile> > <id>remote-jboss</id> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.cargo</groupId> > <artifactId>cargo-maven2-plugin</artifactId> > <configuration> > <container> > <containerId>jboss5x</containerId> > <type>remote</type> > </container> > > <configuration> > <type>runtime</type> > <properties> > <cargo.hostname>${jboss.hostName}</cargo.hostname> > </properties> > </configuration> > > </configuration> > > </plugin> > </plugins> > </build> > </profile> > > > Maven Command: > mvn clean package cargo:deploy -P remote-jboss > > > Error Message: > (Jboss is up and running and accessible at the address: > http://host.domain.ch:8080) > > [DEBUG] Trace > org.codehaus.cargo.container.ContainerException: Failed to deploy to > [http://host.domain.ch:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:c%3A%5Cjp%5Cprojects%5Cipi-ear-example%5Cipi-ear-example-ear%5Ctarget%5Cear-example.ear] > at > org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.connect(JdkHttpURLConnection.java:58) > at > org.codehaus.cargo.container.jboss.JBossRemoteDeployer.invokeURL(JBossRemoteDeployer.java:179) > at > org.codehaus.cargo.container.jboss.JBossRemoteDeployer.deploy(JBossRemoteDeployer.java:136) > at > org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:79) > at > org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:118) > at > org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47) > at > org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:266) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > ... > > Caused by: java.io.FileNotFoundException: > http://host.domain.ch:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:c%3A%5Cjp%5Cprojects%5Cipi-ear-example%5Cipi-ear-example-ear%5Ctarget%5Cear-example.ear > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |