[JBoss Seam] - Re: Logging using java.util.logging.*?
by seamNoobie
"seamNoobie" wrote : I had no logging from seam at the debug level.
|
| It appeared when I logged at info level.
|
| To do things properly:
| You probably already know this but you have to fiddle with the JBoss config to get logging at Debug level... either change the default logger to debug or add a log4j logger that logs your packages at the debug level).
|
| This is probably not your bug; but may help another noobie.
|
C:\Program Files\jboss-4.0.5.GA\server\default\conf\log4j.xml
Hack the below to make it DEBUG apposed to INFO or add your own appender into the file...
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="INFO"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002090#4002090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002090
19 years, 3 months
[JBoss Seam] - Testing FacesMessages with wmbedded container and injection
by dsvmacdonald@nuarch.com
When I try to test my login module using a TestNG integration test, it throws the following error:
[testng] javax.ejb.EJBException: javax.el.PropertyNotFoundException: Property 'jboss' is not found on type: org.jboss.seam.Namespace
After some debugging, I have tracked down the error message to the fact that I am injecting the FacesNessages in my LoginAction class using
@In(create=true)
private FacesMessages facesMessages;
and
facesMessages.addFromResourceBundle("some message");
in the login method.
If I rewrite the LogicAction class to use FacesMessages w/o injection, such as
FacesMessages.instance().addFromResourceBundle("some message");
it compiles fine and runs to completion. However, the assertion fails when I check the FacesMessages b/c it is null.
Any ideas on how to fix this?
Thanks,
Dan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002085#4002085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002085
19 years, 3 months