<html><body bgcolor="#FFFFFF"><div>Did you run the annotation processor to built the logger impl for your project?<br><br>Sent from my iPhone</div><div><br>On Aug 3, 2011, at 6:36, Ove Ranheim <<a href="mailto:oranheim@gmail.com">oranheim@gmail.com</a>> wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>Hi,<div><br></div><div>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:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #508e92"><</span>jboss-deployment-structure<span style="color: #508e92">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #000000"> </span><span style="color: #508e92"><</span>deployment<span style="color: #508e92">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #000000"> </span><span style="color: #508e92"><</span>dependencies<span style="color: #508e92">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #508e92"><</span><span style="color: #678e91">module</span> <span style="color: #7f3191">name</span>=<span style="color: #393ffd">"org.dom4j"</span> <span style="color: #508e92">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #508e92"><</span><span style="color: #678e91">module</span> <span style="color: #7f3191">name</span>=<span style="color: #393ffd">"org.apache.log4j"</span><span style="color: #508e92">/></span> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #508e92"><</span><span style="color: #678e91">module</span> <span style="color: #7f3191">name</span>=<span style="color: #393ffd">"org.slf4j"</span><span style="color: #508e92">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(57, 63, 253); "><span style="color: #000000"> </span><span style="color: #508e92"><</span><span style="color: #678e91">module</span><span style="color: #000000"> </span><span style="color: #7f3191">name</span><span style="color: #000000">=</span>"org.apache.commons.logging"<span style="color: #508e92">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #000000"> </span><span style="color: #508e92"></</span>dependencies<span style="color: #508e92">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #000000"> </span><span style="color: #508e92"></</span>deployment<span style="color: #508e92">></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(103, 142, 145); "><span style="color: #508e92"></</span>jboss-deployment-structure<span style="color: #508e92">></span></div></div><div><span style="color: #508e92"><br></span></div><div>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.</div><div><br></div><div>Anyhow, Solder's TypeSafe Message log seems broken with AS7 and I get the following exception:</div><div><br></div><div><div>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)</div><div>14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) <span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254)</div><div>14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) <span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)</div><div>14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) <span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.seam.solder.logging.TypedMessageLoggerProducer.produceTypedLogger(TypedMessageLoggerProducer.java:66)</div></div><div><br></div><div>Full log: <a href="http://pastebin.com/WQt11T47"><a href="http://pastebin.com/WQt11T47">http://pastebin.com/WQt11T47</a></a></div><div><br></div><div>When I deploy seam-booking example, it works perfect.</div><div><br></div><div>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.</div><div><br></div><div><div>What's is the correct configuration for JBoss and Seam Solder logging in AS7? </div><div><br></div><div>What would be the right exclude (in jboss-deployment-structure.xml:) and logger jars to include.</div><div><br></div><div>Ove</div></div><div><br></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>seam-dev mailing list</span><br><span><a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/seam-dev">https://lists.jboss.org/mailman/listinfo/seam-dev</a></span><br></div></blockquote></body></html>