[jboss-user] [JBoss Seam] - Re: NPE when logging inside a property getter

cyberanto do-not-reply at jboss.com
Fri Feb 1 16:39:48 EST 2008


I found out what my mistake was:

I didn't use injection to create the component which contained the SEAM Logger ...

injecting the component initializes the Logger correctly.

@In(create=true)
private CategoryDAO categoryDao;

//  	
//	CategoryDAO categoryDao = new CategoryDAO();

There used to be a class org.jboss.seam.log.LogImpl ... not any more

How do I get a Seam Logger if I want to instantiate the class "normally" ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125678#4125678

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125678



More information about the jboss-user mailing list