bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Vara (JIRA)" <>
Subject [jira] Commented: (BVAL-84) CNFEX org.slf4j.impl.StaticLoggerBinder building xstream and guice
Date Mon, 25 Oct 2010 23:26:19 GMT


Carlos Vara commented on BVAL-84:

Tried to reproduce but couldn't. Linux and sun's JDK here.

During mvn install, SLF4J defaults to no logging correctly:
Running org.apache.bval.guice.GuiceAwareValidationTestCase
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See for further details.

If your problem is when consuming the built jars, you will need to declare the dependency
for your chosen backend in your project (slf4j-log4j, slf4j-simple, etc.). We should not declare
that dependency in our pom, as it's the consumer's decision what backend suits them best.

> CNFEX org.slf4j.impl.StaticLoggerBinder building xstream and guice
> ------------------------------------------------------------------
>                 Key: BVAL-84
>                 URL:
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.2-incubating
>            Reporter: Albert Lee
>            Priority: Minor
>         Attachments: BVAL-84.patch
> Clean downloaded from trunk and hit the following exception in xstream and guice modules
from "mvn install" 
> java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder
>         at org.slf4j.LoggerFactory.bind(
>         at org.slf4j.LoggerFactory.performInitialization(
>         at org.slf4j.LoggerFactory.getILoggerFactory(
>         at org.slf4j.LoggerFactory.getLogger(
>         at org.slf4j.LoggerFactory.getLogger(
>         at org.apache.bval.MetaBeanBuilder.<clinit>(
>         at java.lang.J9VMInternals.initializeImpl(Native Method)
>         at java.lang.J9VMInternals.initialize(
>         at java.lang.J9VMInternals.initialize(
>         at org.apache.bval.xml.XMLMetaBeanManager.<init>(
>         at org.apache.bval.xml.XMLMetaBeanManagerTest.<init>(
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message