Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jbuilder2005 Java Server Faces bookstore sample & Tomcat 1

Status
Not open for further replies.

micmit

Programmer
Oct 3, 2001
4
0
0
AU
Just curious why the following messages pop up when Tomcat 4.1 is run inside Jbuilder :

HostConfig[localhost]: Deploying configuration descriptor jb-bookstore.xml

log4j:WARN No appenders could be found for logger (com.sun.faces.config.ConfigureListener).
log4j:WARN Please initialize the log4j system properly.

Could they be ignored ?

Also when deployed to Tomcat 5 this sample gives the error :

ApplicationDispatcher[/bookstore]: Servlet.service() for servlet debugjsp threw exception

java.lang.RuntimeException: Unable to create parser: java.lang.ClassNotFoundException: com.sun.faces.el.impl.parser.ELParserImpl

Any clues why ?

TIA
MicMit
 
The ConfigureListener class will be using the Open Source logging API called Log4J. This expects 'appenders' to be configured which control how/where log output goes. These appenders can be assigned to the various packages within a Java application. Configuration is normally done using a log4j.properties file on the classpath.

The message you see can indeed be ignored. It's just Log4J letting you know that the com.sun.faces.config.ConfigureListener class is set up to use logging, but that no appenders have been assigned to the package it is in. JBuilder obviously doesn't set a logging configuration up for it. The worst that can happen is that the class in question can't give you logging detail when something goes wrong.

Visit if you're interested in learning more about Log4J. It's a neat tool.

Tim
 
... as for the second part of your post, I've never used Java Server Faces, but I'd say that whatever jar the ELParserImpl class is in is not on the classpath for Tomcat. If it's running inside JBuilder, you'll have to let JBuilder know about it in the Tomcat launch configuration.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top