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
5
votes
1 answer

deploying web app to external glassfish4 instance with maven cargo plugin

I'm trying to deploy an app using cargo, this is the config for it: org.codehaus.cargo cargo-maven2-plugin 1.4.9
5
votes
2 answers

Maven Cargo: Could not find JNDI datasource

Here is how my persistence.xml looks like
daydreamer
  • 87,243
  • 191
  • 450
  • 722
5
votes
1 answer

How to setup configuration (JDBC Realm or a Java Mail Session) in Glassfish with Maven Cargo?

I use Maven Cargo (1.2.1) to configure and start an Glassfish 3.1.2 for Integration Tests. I am able to configure the datasource and start the server. But I also need to configure a JDBC Security Realm as well as a Java Mail Session. But I have no…
Ralph
  • 118,862
  • 56
  • 287
  • 383
4
votes
2 answers

Using Cargo with Maven to remotely deploy WAR without HOT deployment

We're using Cargo with Maven on a build server to remotely deploy a WAR file from our build server to an internal QA server for testing. Our current POM for the project is seen below, and works properly for a hot deployment. The problem is that…
Craig Otis
  • 31,257
  • 32
  • 136
  • 234
4
votes
0 answers

cargo build-bpf command not working for solana

I'm getting this error after I execute the command cargo build-bpf to build the program for Solana on Windows 10. info: uninstalling toolchain 'bpf' info: toolchain 'bpf' uninstalled error: no such command: `+bpf` Cargo does not handle…
4
votes
1 answer

How to solve "no authentication available" problem for rust crates when using vscode?

We are quite familiar with the following errors when using Cargo. [ERROR rust_analyzer::lsp_utils] rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /Users/calvin/tiflash/raft-engine/Cargo.toml, Some(Version…
calvin
  • 2,125
  • 2
  • 21
  • 38
4
votes
1 answer

upgrade tomcat7-maven-plugin to cargo-maven3-plugin with contianer Id tomcat9x

please help , configuring cargo-maven3-plugin and facing the problem below , thank you and appreciate those who have experience on the cargo and tomcat 9 plugin . thank you very much pom.xml file configuration for cargo-maven3-plugin
4
votes
1 answer

cargo install: specify a /tmp substitute?

cargo install says: error: failed to write /tmp/rustcaq37XH/lib.rmeta: No space left on device (os error 28) Therefore I would like to tell Cargo to use some other directory than /tmp. As far as I can see, there is no environment variable or…
bertramscharpf
  • 175
  • 1
  • 10
4
votes
4 answers

Maven and Cargo: start Jetty-Container with war-File

I just started a new Maven project that is intended to start a Jetty containing a war-File from a depended project. The cargo-plugin should be the right tool for this. Unfortunately it doesn't work for me. It starts Jetty successfully but it only…
tautologe
  • 1,781
  • 2
  • 15
  • 14
4
votes
1 answer

Debug Tomcat deployed code with cargo plugin

Can anyone please tell how to debug the code in eclipse with Cargo(Tomcat) plugin? We are using Java 8, Tomcat 8, eclipse Juno in Windows 7 OS. One other thing I want to mention is, we don't have control to modify Tomcat scripts as the tomcat is…
whoami
  • 1,517
  • 1
  • 21
  • 29
4
votes
0 answers

Cargo NoClassDefFoundError when having a webapp which uses jetty modules embedded 9.1.1

I am using cargo maven plugin for testing purposes. Cargo is used to start our webapp and then REST API tests are run against it. We are using jetty 9.1.1. I am using cargo version: 1.4.8 Here is the configuration of the cargo plugin: …
Genry
  • 1,358
  • 2
  • 23
  • 39
4
votes
1 answer

Setting up Gradle Cargo

I am trying follow this tutorial to set up Grails/ Cargo: https://github.com/bmuschko/gradle-cargo-plugin I wish to use this plugin to deploy wars to local tomcat instances and to start and stop them. Here is my build.gradle apply plugin:…
Breako Breako
  • 6,353
  • 14
  • 40
  • 59
4
votes
1 answer

Problem using Maven with Cargo plug-in

When I'm using Maven with the cargo plug-ing to handle hot deployments to tomcat, maven fails on the clean task if the .war artifact doesn't currently exist. So if I run mvn clean, then mvn clean package - it errors out. What can I do to have…
BZ.
  • 1,928
  • 2
  • 17
  • 26
3
votes
1 answer

Cargo-Maven2-Plugin not finding Tomcat /lib directory

I'm trying to setup Maven to start Tomcat (using Cargo) and deploy my project in preparation for integration tests. Here is my POM: < ... > org.codehaus.cargo cargo-maven2-plugin
Planky
  • 3,185
  • 3
  • 29
  • 39
3
votes
1 answer

Am I missing a target-feature for AVX512 when I compile my Rust code?

I have written some Rust functions that use AVX2 and AVX512 instructions to speed up image compositing. I am using an AMD 7950x CPU. When I run RUSTFLAGS="-C target-cpu=native" cargo bench I get: test overlay_using_avx2 ... bench: 483,596…
Chris
  • 1,501
  • 17
  • 32
1
2
3
21 22