Jenkins Deploy Plugin - Remote Jboss Problem

2012-10-11 Thread cesar1983

Hello!

I am trying to make the Deploy work on my environment, but I get the Cargo 
errror...   The deploy is remote 

*"*

*ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to 
exceptionorg.codehaus.cargo.container.ContainerException 
:
 Failed to create deployer with implementation class 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer for the parameters 
(container [id = [jboss5x]], deployer type [remote]).
at 
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
 

.
at hudson.model.Executor.run(Executor.java:236) 

Caused by: java.lang.reflect.InvocationTargetException 

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at 
org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:206)
at 
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:153)
... 19 more
Caused by: org.codehaus.cargo.util.CargoException: Cannot locate the JBoss 
deployer class! Make sure the jboss-deployer for your
JBoss version as well as all required JBoss JARs are in CARGO's classpath.
More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer
at 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:91)
... 25 more
Caused by: java.lang.ClassNotFoundException: 
org.codehaus.cargo.tools.jboss.JBossDeployer
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

"*


I am trying to fix this but with no success... 

I did what they told in (*http://cargo.codehaus.org/JBoss+Remote+Deployer)*. 
I tried creating a lib dir in jenkins server, putting  3 jars inside ( 
jboss-client, jboss-integration, jboss-profileservice-client) . 
Then I passed the -cp arg ponting to this lib dir with the jenkins.war  
execution ... ( java  jenkins.war -jar -cp /jenkins/lib/   )  but I still 
get the problem...   

My Jboss version is 5.1  Jenkins 1.48 ...  

They tell to use this jars 

   - JBoss deployment manager JARs
   - JBoss remoting client JARs


I dont know if I used the right ones...

If anyonce can help me finding the problem I would appreciate a lot!

Regards
Cesar

Jenkins Plugin - Remote Jboss Deploy Problem

2012-10-11 Thread cesar1983
Hello Olivier.

I am trying to make the Deploy work on my environment, but I get the Cargo 
errror...   The deploy is remote 

*"*

*ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to 
exceptionorg.codehaus.cargo.container.ContainerException 
:
 Failed to create deployer with implementation class 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer for the parameters 
(container [id = [jboss5x]], deployer type [remote]).
at 
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
 

.
at hudson.model.Executor.run(Executor.java:236) 

Caused by: java.lang.reflect.InvocationTargetException 

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at 
org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:206)
at 
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:153)
... 19 more
Caused by: org.codehaus.cargo.util.CargoException: Cannot locate the JBoss 
deployer class! Make sure the jboss-deployer for your
JBoss version as well as all required JBoss JARs are in CARGO's classpath.
More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer
at 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:91)
... 25 more
Caused by: java.lang.ClassNotFoundException: 
org.codehaus.cargo.tools.jboss.JBossDeployer
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

"*


I am trying to fix this but with no success... 

I did what they told in (*http://cargo.codehaus.org/JBoss+Remote+Deployer)*. 
I tried creating a lib dir in jenkins server, putting  3 jars inside ( 
jboss-client, jboss-integration, jboss-profileservice-client) . 
Then I passed the -cp arg ponting to this lib dir with the jenkins.war  
execution ... ( java  jenkins.war -jar -cp /jenkins/lib/   )  but I still 
get the problem...   

My Jboss version is 5.1  Jenkins 1.48 ...  

They tell to use this jars 

   - JBoss deployment manager JARs
   - JBoss remoting client JARs


I dont know if I used the right ones...

If anyonce can help me finding the problem I would appreciate a lot!

Regards
Cesar

Re: jenkin - maven and deploy

2012-10-11 Thread cesar1983
Hello Olivier.

I am trying to make the Deploy work on my environment, but I get the Cargo 
errror...   The deploy is remote 

*"Caused by: org.codehaus.cargo.util.CargoException: Cannot locate the 
JBoss deployer class! Make sure the jboss-deployer for your JBoss version 
as well as all required JBoss JARs are in CARGO's classpath. More 
information on: http://cargo.codehaus.org/JBoss+Remote+Deployer at 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:91)
 
... 25 more Caused by: java.lang.ClassNotFoundException: 
org.codehaus.cargo.tools.jboss.JBossDeployer at 
java.net.URLClassLoader$1.run(URLClassLoader.java:217)"
*
I am trying to fix this but with no success... 

I did what they told in (*http://cargo.codehaus.org/JBoss+Remote+Deployer)*. I 
tried creating a lib dir in jenkins server, putting  3 jars inside ( 
jboss-client, jboss-integration, jboss-profileservice-client) . Then I 
passed the -cp arg ponting to this lib dir with the jenkins.war  execution 
... ( java  jenkins.war -jar -cp /jenkins/lib/   )  but I still get the 
problem...   

My Jboss version is 5.1  Jenkins 1.48 ...  

If you can help me finding the problem I appreciate!

Regards
Cesar


On Saturday, April 28, 2012 2:12:16 PM UTC-3, ol...@apache.org wrote:
>
> Have a look at the following plugin: 
> https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin 
>
> HTH, 
> -- 
> Olivier Lamy 
> Talend: http://coders.talend.com 
> http://twitter.com/olamy | http://linkedin.com/in/olamy 
>
> 2012/4/28 Rajwinder Makkar >: 
> > I have this in my env : 
> > 
> > Jboss 
> > jenkins 
> > maven 
> > 
> > I am able to build a maven project using jenkins , 
> > I know how to deploy to jboss using jenkins 
> > 
> > But how to tell jenkins what artifacts need to be deployed out of all 
> the 
> > artifacts produced by maven .. as my one maven project produces multiple 
> > jar's and ear and i need to deploy only EAR to jboss. 
> > 
> > Any suggestions ? 
> > 
> > -Raj 
>