Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:18:53+00:00 2026-06-15T22:18:53+00:00

I am using Arquillian[1] in a Glassfish-environment to have my Code unit-tested. I have

  • 0

I am using Arquillian[1] in a Glassfish-environment to have my Code unit-tested.

I have setup my tests to work fine when being run in glassfish-embedded environment. But when I try to execute the tests in remote-Glassfish-environment, maven-Dependencies are not found:

Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Lorg/springframework/data/neo4j/support/Neo4jTemplate;

My ShrinkWrap from the test:

@Deployment
public static WebArchive createDeployment() {
    return ShrinkWrap.create(WebArchive.class).addPackages(true, "main.java")
            .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
}

To have maven dependencies resolved I am using shrinkwrap-resolver-bom:shrinkwrap-resolver-bom – it seems to me as if the maven dependencies are not in classpath when running the test in remote-environment.

I have upload my pom.xml to http://pastxt.com/P/9400A0KQSC

How can I get my test running in Glassfish-remote-environment?

[1] http://arquillian.org/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:18:54+00:00Added an answer on June 15, 2026 at 10:18 pm

    Having the ShrinkWrap Resolver BOM in your POM is not sufficient to enable Arquillian locate and add Maven artifacts to your deployment. A Maven BOM (Bill of Materials) is a merely a container for related dependencies.

    To use the BOM, you’ll need to import the BOM into your project POm in the dependencyManagement section, and add the dependencies that you need. To add the ShrinkWrap Maven resolver, you’ll need to add the shrinkwrap-resolver-depchain test dependency.

    You’ll need to use the Maven resolver to resolve the dependencies you need, and then add the resolved artifacts to your ShrinkWrap archive. More details about using the newer ShrinkWrap Maven resolver (2.x) are in this community FAQ post. Note that the Arquillian BOM (<= 1.0.3.Final) pulls in an older version of the ShrinkWrap resolvers, so you’ll need to be careful about which version of the ShrinkWrap Maven resolver you pull in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Embedded Glassfish to do some In-Container-Tests with Arquillian. Now, when my test
I am using Arquillian to run a basic unit test on WebLogic 10.3.5. Unfortunately,
We are trying to run integration tests of Spring based code on an embedded
My environment is Jboss AS 7.1.0. I am using JUnit and Arquillian for unit
I want to test a JMS-worker included in my glassfish-application using arquillian (to have
Using intellij and maven pom files, how do i debug tests run inside the
Using the ndk I have compiled a code written in C. The program is
I'm trying to use Arquillian for some unit tests, however I can't find why
I have just started using maven-glassfish-plugin. I got the start-domain goal working. However when
Using InteliJ IDEA , I am trying to set up multiple projects to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.