Did you run the annotation processor to built the logger impl for your project?

Sent from my iPhone

On Aug 3, 2011, at 6:36, Ove Ranheim <oranheim@gmail.com> wrote:

Hi,

The logging configuration with AS7 confuses me. Due a dependency of hibernate-search, I have upgraded to latest snapshot of it. And it works fine. I experienced that hibernate-search is unable to build the persistence-unit unless SLF4J is included, so I added an WEB-INF/jboss-deployment-structure.xml:

<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.dom4j" />
            <module name="org.apache.log4j"/>     
            <module name="org.slf4j"/>
            <module name="org.apache.commons.logging"/>
        </dependencies>
    </deployment>
</jboss-deployment-structure>

This solves all my former issues of logging dependencies and JBoss Logging works just fine and hibernate-search gets the logger instance it needs. I have experimented with including and excluding slf4j 1.5.10 and commons-logging 1.1.1, but it fails, unless I do the above.

Anyhow, Solder's TypeSafe Message log seems broken with AS7 and I get the following exception:

14:20:49,876 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) java.lang.IllegalArgumentException: Invalid logger interface com.musific.log.MusificLog (implementation not found)
14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254)
14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)
14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.seam.solder.logging.TypedMessageLoggerProducer.produceTypedLogger(TypedMessageLoggerProducer.java:66)

Full log: http://pastebin.com/WQt11T47

When I deploy seam-booking example, it works perfect.

I suspect that hibernate-search (that is lucene) requires a conflicting version of slf4j, since that is a dependency causing PU not to be built unless it's there.

What's is the correct configuration for JBoss and Seam Solder logging in AS7? 

What would be the right exclude (in jboss-deployment-structure.xml:) and logger jars to include.

Ove

_______________________________________________
seam-dev mailing list
seam-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev