Tim Holloway wrote:There's no bug. I've run JSF 1.1 in Tomcat 5.5, although I recommend Tomcat6.
Memory is hazy, but I think you have to copy the el.jar into TOMCAT_HOME/lib. In any event, don't put a copy in both Tomcat and the WAR - that's a sure guarantee of trouble. This stuff gets accessed from several different classpaths, and you'll end up with a great big jumble. Which is, in fact, what I think did happen.
Misha Ver wrote:
where exactly you keep jar files in WAR file?
JSF needs EL to function, but EL is not included as part of the basic library jarset in the Tomcat 5.5 server. It's in Tomcat6, but not Tomcat 5.5. For Tomcat 5.5, you'll need to explicitly include the el.jar file.
6/06/2010 04:04:02 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Error configurando escuchador de aplicación de clase com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/FacesException
public class HibernateSessionFactoryUtil
{
private static final SessionFactory sessionFactory;
static
{
try
{
sessionFactory = new Configuration().configure().buildSessionFactory();
}
catch (Throwable ex)
{
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public static SessionFactory getSessionFactory()
{
return sessionFactory;
}
}