Coder Social home page Coder Social logo

arquillian-gradle-sample's People

Contributors

mmatloka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arquillian-gradle-sample's Issues

NoSuchMethodException org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapHttpException

Firtsly i downloaded and run arquillian-gradle-sample, and its working [OK]

Next i moved build.gradle to my war subproject (I have two subprojects jar and war closed in ear).

And i get:

Caused by: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./e5aeeef4-e86c-485e-a0ad-7f5a5235d014" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./e5aeeef4-e86c-485e-a0ad-7f5a5235d014: com.google.common.util.concurrent.ExecutionError: java.lang.ExceptionInInitializerError
Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
Caused by: org.jboss.weld.exceptions.WeldException: WELD-000625: Unable to locate method: org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapHttpException(org.apache.http.HttpException)
Caused by: java.lang.NoSuchMethodException: org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapHttpException(org.apache.http.HttpException)"}}
at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)
at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)
at org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy(ServerDeploymentHelper.java:55)
at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:77)

I tought that maybe it is something wrong with jar dependencies because war is the same. But inside jar there is nothing with rest.

When i switch to manualy shrink addClasses its working.

Mutli Project Support

Hi,

I'm very glad for your gradle resolver. However, we have multi project setup in which this code fails with an ArrayIndexOutOfBoundException

final GradleProject gradleProject = projectConnection.getModel(GradleProject.class);

    final File buildDir = new File(projectDir, "build");
    final File libsDir = new File(buildDir, "libs");
    final File result = libsDir.listFiles(new FilenameFilter() {
        @Override
        public boolean accept(final File dir, final String name) {
            return name.startsWith(gradleProject.getName());
        }
    })[0];

This is imho due to the fact that the gradleProject above holds the multi project but the arquillian tests are contained (and should be contained) in the sub project (*server). There the predicate will never be true and the [0] with end up in an exception.

I think you can either do a deep search to also get the sub project jars or more accurately resolve the project the tests are in. If you need help let me know.

Best,
Maik

Tests fail with JBoss EAP 6.2

Hi,
Tests for both single-module and multi-module fail with the following exception:
org.jboss.shrinkwrap.resolver.example.FullGreeterTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container

    Caused by:
    java.util.concurrent.TimeoutException: Managed server was not started within [60] s

org.jboss.shrinkwrap.resolver.example.GreeterTest > classMethod FAILED
java.lang.RuntimeException: Arquillian has previously been attempted initialized, but failed. See cause for previous
exception

    Caused by:
    org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container

        Caused by:
        java.util.concurrent.TimeoutException: Managed server was not started within [60] s

I am trying to execute on Windows 7 (64-bit) with JDK 1.7 and JBoss EAP 6.2.
Please let me know how to resolve these issues
Thanks
Surjit Sen

Build failed, missing dependencies

Hi! Today I was experimenting with arquillian and gradle and build for this project gets an error:

$ gradle clean build
:clean UP-TO-DATE
:compileJava
:processResources NO-SOURCE
:classes
:war
:assemble
:compileTestJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':testCompileClasspath'.

Could not find org.gradle:gradle-tooling-api:2.6.
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
https://repo.maven.apache.org/maven2/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repository.jboss.org/nexus/content/groups/public/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repository.jboss.org/nexus/content/groups/public/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repository.jboss.org/nexus/content/repositories/deprecated/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repository.jboss.org/nexus/content/repositories/deprecated/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repo.jfrog.org/artifactory/repo/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repo.jfrog.org/artifactory/repo/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
Required by:
project : > org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-gradle-depchain:2.2.0 > org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-gradle-embedded-archive:2.2.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
4 actionable tasks: 3 executed, 1 up-to-date

My 2 cents: seems to be a transitive missing dependecies, playing a little bit gives me no insight on how to solve this problem.

My gradle -v output:


Gradle 4.6

Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_162 (Oracle Corporation 25.162-b12)
OS: Windows 10 10.0 amd64

Cloned it and test failed

I cloned this 'as-is' and in the folder 'single-module' I ran the following command:
gradlew.bat test
and the response is:

org.jboss.shrinkwrap.resolver.example.FullGreeterTest > classMethod FAILED
    org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container

        Caused by:
        java.lang.IllegalArgumentException: WFLYLNCHR0001
: The path 'null' does not exist

Is there an environmental value that I am supposed to set?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.