3.1 Maintenance?

72 views
Skip to first unread message

Christof

unread,
Sep 27, 2017, 3:24:42 AM9/27/17
to CDI-Unit
Hi,

are there any plans for a 3.1 maintenance branch?

I'd like to see the fix for Gradle 4.x on master in a 3.1.x release. I can't upgrade to CDI-Unit 4.0.1, because my project has to use CDI 1.1 (Weld 2.3.5).

Regards,
Christof

Sean Flanigan

unread,
Sep 27, 2017, 6:23:09 AM9/27/17
to cdi-...@googlegroups.com
Hi Christof,

I'm not sure we currently have the capacity to do that, but I can tell you that Travis is still running integration tests against Weld 2.3.5, even for CDI-Unit 4.x. 


Have you got a bug to report? Something with the dependency management?

Regards

Sean.

--
You received this message because you are subscribed to the Google Groups "CDI-Unit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdi-unit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christof

unread,
Sep 27, 2017, 7:16:13 AM9/27/17
to CDI-Unit
Hi Sean,

yes it is a dependency problem.

The web application runs on Tomcat 8.0 with Jersey 2.25.1 and Weld 2.3.5.

build.gradle:

ext {
jerseyVersion = 2.25.1
}

...

// JAX-RS implementation Jersey
compile "org.glassfish.jersey.core:jersey-server:${jerseyVersion}"
runtime "org.glassfish.jersey.core:jersey-common:${jerseyVersion}"
runtime "org.glassfish.jersey.media:jersey-media-json-jackson:${jerseyVersion}"
runtime "org.glassfish.jersey.containers:jersey-container-servlet:${jerseyVersion}"
runtime "org.glassfish.jersey.ext:jersey-bean-validation:${jerseyVersion}"
compile "org.glassfish.jersey.ext.cdi:jersey-cdi1x:${jerseyVersion}"
compile "org.glassfish.jersey.ext.cdi:jersey-cdi1x-servlet:${jerseyVersion}"
compile 'org.jboss.weld.servlet:weld-servlet:2.3.5.Final' // CDI 1.2/JEE 7/Java 7

....

testCompile 'org.jglue.cdi-unit:cdi-unit:4.0.1'
testRuntimeClasspath 'org.jboss.weld.se:weld-se-core:3.0.0.Final'
testRuntimeClasspath 'org.jboss.weld.module:weld-web:3.0.0.Final'

...


Running the CDI-Unit tests results in this exception:

COMMON
java.lang.NoSuchFieldError: COMMON
    at org.jboss.weld.environment.se.Weld.initialize(Weld.java:750)
    at org.jglue.cdiunit.CdiRunner.createTest(CdiRunner.java:126)
 ....

COMMON is supposed to be in org.jboss.weld.executor.ExecutorServicesFactory.ThreadPoolType


Regards,
Christof
To unsubscribe from this group and stop receiving emails from it, send an email to cdi-unit+u...@googlegroups.com.

Sean Flanigan

unread,
Sep 27, 2017, 8:25:10 AM9/27/17
to cdi-...@googlegroups.com
Hi Christof,

Those 3.0.0.Final versions for weld-se-core and weld-web look a bit suspicious.

The cdi-unit/gradle tests against Weld 2.3.5.Final would be using the dependency weld-se-core 2.3.5.Final. (The tests don't use weld-web or weld-servlet, but I imagine 'org.jboss.weld.servlet:weld-servlet:2.3.5.Final' should be fine.)

If that doesn't help, could you please put a bug into github issues? https://github.com/BrynCooke/cdi-unit/issues/

To unsubscribe from this group and stop receiving emails from it, send an email to cdi-unit+unsubscribe@googlegroups.com.

Christof

unread,
Sep 28, 2017, 2:19:56 AM9/28/17
to CDI-Unit
Hi Sean,

with the dependency settings

testCompile 'org.jglue.cdi-unit:cdi-unit:4.0.1'
testRuntimeClasspath 'org.jboss.weld.se:weld-se-core:2.3.5.Final'

my CDI-Unit tests pass successfully.

Thanks,

Christof

Am Mittwoch, 27. September 2017 12:23:09 UTC+2 schrieb Sean Flanigan:
To unsubscribe from this group and stop receiving emails from it, send an email to cdi-unit+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages