[ http://jira.andromda.org/browse/JSF-30?page=comments#action_14542 ] 

Jorge Nunez commented on JSF-30:
--------------------------------

I found in this web page: 
http://shrubbery.mynetgear.net/wiki/Facelets_'loadImplicit'_error

One annoying thing about using Facelets with SEAM/EJB3/JBoss is that there are 
some strange 'ERROR' log messages that happen when the first page is hit. They 
look something like this:

07:38:26,843 ERROR \[STDERR\] Nov 29, 2006 7:38:26 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: 
jar:file:/C:/java/jboss-4.0.5.GA-ejb3/server/default/./tmp/deploy/tmp64384starter1.ear-contents/webapp-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml

So, I've finally figured out what this means. Basically, the Facelets compiler 
is emitting the message to System.err, which JBoss's Log4J setup interprets as 
an error level log message. I think that's a reasonable assumption to make with 
Log4J.

If java.util.logging were a pet dog I'd say: Bad logging! Bad! Nnno!

The folks at Sun should know better than to write to System.err, especially if 
the message is not an error. Perhaps the JDK logging can be tweaked to make 
this work better, but still... highly annoying.

Solution #1

Ignore the messages. They are only errors because ConsoleHandler writes log 
messages to System.err (dodgy) and the JBoss logging framework interprets them 
as errors, redirecting the messages as ERROR level (understandable).

Solution #2

Use a different logging handler by using a different java.util.logging (a.k.a. 
JULI) configuration.

Solution #3

Experimental - Use a ContextListener to reconfigure JULI to send logging 
messages to Log4J.  :) 

> Every time I load my application I get warnings and errors on the jboss 
> console
> -------------------------------------------------------------------------------
>
>          Key: JSF-30
>          URL: http://jira.andromda.org/browse/JSF-30
>      Project: JSF cartridge
>         Type: Bug

>  Environment: andromda 3.2 snapshot, jboss-4.0.4.GA, windows2000 Sp 4
>     Reporter: Babar Ansari
>     Assignee: Chad Brandon
>     Priority: Trivial

>
> when ever a deploy my application on jboss I get the following errors and 
> warnings
> 01:14:39,553 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: 
> CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 35s:30ms
> 01:15:09,095 ERROR [STDERR] Oct 15, 2006 1:15:09 AM 
> oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl 
> verifyFilterIsInstalled
> WARNING: The AdfFacesFilter has not been installed. ADF Faces requires this 
> filter for proper execution.
> 01:15:09,256 ERROR [STDERR] Oct 15, 2006 1:15:09 AM 
> oracle.adfinternal.view.faces.webapp.ConfigParser parseConfigFile
> INFO: ADF Faces is running in debug mode. Do not use in a production 
> environment. See:/WEB-INF/adf-faces-config.xml
> 01:15:10,137 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
> 01:15:10,147 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
> 01:15:10,167 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/adf-facelets.jar!/META-INF/adf-core.taglib.xml
> 01:15:10,187 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
> 01:15:10,197 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/adf-facelets.jar!/META-INF/adf-html.taglib.xml
> 01:15:10,207 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
> 01:15:10,227 ERROR [STDERR] Oct 15, 2006 1:15:10 AM 
> com.sun.facelets.compiler.TagLibraryConfig loadImplicit
> INFO: Added Library from: 
> jar:file:/C:/Program%20Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp43801autoservices-app-1.0.ear-contents/autoservices-web-1.0-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Reply via email to