|
OK. Thanks Dan and Jason for the answer. Q and remarks about logging in Seam 3 and about your answer: - I tough that slf4j was a "logging back-end". I thought it was only another abstraction layer similar to commons-logging and JBoss-Logging. It seems over complicated that JBoss-logging (abstract layer) delegates to another abstract layer(slf4j) that delegates to a concrete implementation (log4j, JBoss-LogManager or JDK). You surely already discussed this before but it sounds strange for a newcomer in the world of Seam 3 - The Seam 3 CR2 distributes one concrete log implementation (log4j) and JDK logger is implicitly there too. Why distribute log4j.jar and not JBoss LogManager.jar? It seems not consistent here. IMHO, either distribute both (as optional libs) or none and default to jdk, the "default common log backend" to all application servers - the way slf4j configure the logger backend is great and can not be simpler. I hope JBoss-logging will be as simple as slf4j in the future (just drop a jar that contains the binder and the backend impl jar) - I don't use maven yet and assemble the booking app in RSA v8.0 by hand in a tentative to better understand what is needed to deploy. I try here to use as much as possible what is provided by WAS (JPA, JSF, CDI etc.) and so not to include "alien implementation" jars (hibernate, jsf-ri, weld, jboss-AS-loggers etc.) . That not that easy considering that WAS v8.0 is also a beta version.. Similar to what you had to live with JBoss-AS v6.. I included jboss-logmanager.jar in my app and was able to go a little further (slf4j complains about "Class path contains multiple SLF4J bindings". i will sort this out later). I then had a problem with an illegal acces to the constructor of org.jboss.seam.servlet.ServletExtension. Declaring it "public" solved the problem. I didn't investigated to know if is is a bug of seam-servlet or in WAS And now I'm stuck wit the following exception at startup also related to logging: Caused by: java.lang.IllegalArgumentException: Invalid bundle interface org.jboss.seam.servlet.messages.ServletMessages (implementation not found) at org.jboss.seam.solder.logging.Messages.getBundle(Messages.java:92) at org.jboss.seam.solder.logging.Messages.getBundle(Messages.java:54) at org.jboss.seam.servlet.ServletExtension.<init>(ServletExtension.java:70) Denis On 03/19/2011 03:38 PM, Dan Allen wrote:
|
_______________________________________________ seam-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/seam-dev
