dev@glassfish.java.net

Re: bean-validator in 3.1.2 vs trunk

From: Cheng Fang <cheng.fang_at_oracle.com>
Date: Fri, 19 Aug 2011 22:42:54 -0400

I filed an issue
http://java.net/jira/browse/GLASSFISH-17213

Hopefully it is resolved soon, since it blocks ejb devtests w/ 3.1.2 builds.

-cheng

On 8/19/11 10:47 AM, Cheng Fang wrote:
> Any difference (version, etc) between bean-validator.jar in 3.1.2 and
> trunk? Their size is different:
>
> in 3.1.2: 1164011 Aug 19 10:33 bean-validator.jar
> in trunk: 387450 Aug 19 10:32 bean-validator.jar.trunk
>
> When running tests devtests/ejb/ejb31/embedded/embedasync with a
> locally built 3.1.2 glassfish, this test failed with slf4j errors.
> But if I replace bean-validator.jar with trunk's version, it passed.
> The errors when it failed:
>
> [java] SEVERE: Exception while loading the app
> [java] Aug 19, 2011 10:41:28 AM
> org.glassfish.deployment.admin.DeployCommand execute
> [java] SEVERE: Exception while loading the app :
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
> [java] Aug 19, 2011 10:41:28 AM
> org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer
> [java] INFO: [EJBContainerProviderImpl] Cleaning up on failure ...
>
> I suspect it's caused by version conflict of slf4j bundled in
> bean-validator.jar and weld-osgi-bundle.jar (both jars contain slf4j
> classes). It seems this conflict was introduced into 3.1.2 (not sure
> about 3.1.1), but not in trunk.
>
> Could someone confirm it?
>
> Thanks,
> -cheng