HibernateUtil LIKE THIS :
public class HibernateUtil {
public static SessionFactory sf = null;
public void Init(){
if(sf == null){
sf = new Configuration().configure().buildSessionFactory();
}
}
}
WEB.XML LIKE THIS:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<listener-class>sysListener.StartUpListener</listener-class>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160880#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...