Questions tagged [cargo]

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven or Ant. DO NOT use this for the Rust-related tool; use "rust-cargo" instead.

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven (Cargo - Maven) or Ant (Cargo - Ant). Another use case is to create configurations and doing the deployments for the application.

Cargo provides the following Tools and APIs:

  • A Java API to start/stop/configure Java Containers and deploy modules into them.
  • A Java API to parse/create/merge Java EE Modules
  • Ant tasks and Maven 2/Maven 3 plugins.
319 questions
3
votes
1 answer

Rust: Is there a list of what target is a member of what "target-family"?

When trying to write or interpret cfg statements like e.g. #[cfg(all(unix, not(target_arch = "wasm32")))] from the atty crate, I am sometimes unsure what exactly unix means here. (Apparently it includes wasm?) Is there a full list of what rust…
ChrisB
  • 1,540
  • 6
  • 20
3
votes
0 answers

Linking against dependent C libraries

Suppose I have static C libraries lib1 and lib2 where functions in lib2 call functions in lib1. I've made crates lib1-sys and lib2-sys which simply list the extern functions exposed by each library, lib2-sys depends on lib1-sys. The Cargo.toml…
3
votes
1 answer

How do I run cargo flamegraph on unit-tests in lib crate

I have a library crate which I want to profile using cargo flamegraph. But however I try to run cargo flamegraph, I get error messages. The library has the following structure: utilrs ├── Cargo.lock ├── Cargo.toml └── src ├── fileprocessor.rs …
Dan0175
  • 97
  • 1
  • 5
3
votes
1 answer

How to deploy a WAR onto an existing Tomcat 6 instance using Cargo?

I installed Tomcat using the Windows installer ages ago and it runs fine as a service on my development laptop. Now I'm mavenising my project and would like to use Cargo (or something similar) to deploy updated WARs onto the local Tomcat. I can't…
Simon Gibbs
  • 4,737
  • 6
  • 50
  • 80
3
votes
2 answers

Tomcat Failed to start component using cargo maven

I am trying to deploying a war file to tomcat, using cargo maven plugin on port 8080(which is free, I checked), I am getting catalina.LifeCycleException: Failed to start component [Connector[AJP/1.3-auto-1]] It also says that port number entered…
Nikhil Kumar
  • 117
  • 3
  • 12
3
votes
3 answers

Maven 2 multi module pom

I have recently started migrating my project from ant to maven. I have two module in my application which I am able to build using maven. Now I have automated tests project which use Web Driver for testing UI functionality. What I am trying to do…
Ankit Bansal
  • 4,962
  • 1
  • 23
  • 40
3
votes
0 answers

Cargo: Delete a File from Container

Is it possible to delete a Library from the container/application-server used by cargo? I am using TomEE, but always exclude the Library lib\slf4j-jdk14-1.7.5.jar because I am using Logback overall in the container. Now I want to use Cargo for…
Markes
  • 153
  • 1
  • 7
3
votes
1 answer

Cargo embedded tomcat: custom context.xml

I am using cargo to automate war deployment on Tomcat. However, i get a trouble: i can`t replace default tomcat files with my custom as my files are copied first and then get overwritten by default. I spent hours for resolving this problem but…
quento
  • 1,074
  • 4
  • 20
  • 43
3
votes
1 answer

Integration testing in maven multi module project

I have a multi module project and I now want to add integration tests to it, I want to use the cargo plugin to start tomcat and deploy my artefacts there and then test end to end using selenium. I have looked through the maven console output for my…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
3
votes
2 answers

How to deploy a specific child project with cargo:start using maven

I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this: com.shc.obu.ca shcobuca-pom 1.1.0
Neeraj
  • 31
  • 1
  • 3
3
votes
0 answers

Cargo remote deployment Glassfish 4.1 Fails GlassFish uses 100% CPU

I have the following Problem with GlassFih 4.1 and Cargo. I try to deploy an ear on a remote GlassFish 4.1 Server. Without success... Maven command: mvn cargo:redeploy The Glassfish Server takes 100% of the CPU and that's it. The Maven process…
Emmanuel
  • 235
  • 3
  • 10
3
votes
0 answers

Jetty 9.2.2 JDK 1.7 Cargo Daemon MultipleException AnnotationConfiguration.scanForAnnotations

Jetty Version: jetty-distribution-9.2.2.v20140723 JDK: 1.7.0_65-b17 I am using the Cargo Daemon with the cargo-jetty-7-and-onwards-deployer I have updated the asm jars to 5.0.3 as suggested by other answers. But I am still receiving the below…
3
votes
1 answer

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: org.codehaus.cargo cargo-maven2-plugin 1.0.1-SNAPSHOT
tputkonen
  • 5,579
  • 16
  • 60
  • 88
3
votes
0 answers

In maven cargo, how do I specify a String resource for jndy?

I need to deploy a war file during integration tests where a service requires a property in a JNDI lookup. It is a plain String. I looked through the only existing example code at…
Kai
  • 2,145
  • 1
  • 20
  • 35
3
votes
1 answer

How to remotely deploy war file to remote glassfish?

I try to remotely deploy war file of my java web-project to remote Glassfish 3.1.2 I use Cargo plugin for Gradle, but I always get following error :backend:cargoDeployRemote FAILED FAILURE: Build failed with an exception. * What went…
Yauhen
  • 2,435
  • 1
  • 17
  • 18
1 2
3
21 22