You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Carlos Vara (JIRA)" <ji...@apache.org> on 2010/10/26 01:26:19 UTC

[jira] Commented: (BVAL-84) CNFEX org.slf4j.impl.StaticLoggerBinder building xstream and guice

    [ https://issues.apache.org/jira/browse/BVAL-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924779#action_12924779 ] 

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 http://www.slf4j.org/codes.html#StaticLoggerBinder 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: https://issues.apache.org/jira/browse/BVAL-84
>             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(LoggerFactory.java:121)
>         at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
>         at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
>         at org.apache.bval.MetaBeanBuilder.<clinit>(MetaBeanBuilder.java:32)
>         at java.lang.J9VMInternals.initializeImpl(Native Method)
>         at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
>         at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
>         at org.apache.bval.xml.XMLMetaBeanManager.<init>(XMLMetaBeanManager.java:42)
>         at org.apache.bval.xml.XMLMetaBeanManagerTest.<init>(XMLMetaBeanManagerTest.java:35)
>         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.