خرید بک لینک

Vote count: 0

I have web - app, where I using spring like a base project configure, Hibeate - persistance provider, JPA - to acces the db. I can not uderstand why I have java.lang.NoClassDefFoundError exception. I have all libraries in war - archive.

More clearly: There is listener class in which I have exception:

public class AppContextListener implements ServletContextListener {
private GenericXmlApplicationContext ctx;

public void contextInitialized(ServletContextEvent event) {
    ServletContext context = event.getServletContext();
    String springFileConfig = context.getInitParameter("spring-file-config");

    ctx = new GenericXmlApplicationContext();
    ctx.load(springFileConfig);
    ctx.refresh();
}
public void contextDestroyed(ServletContextEvent event) {

}
public static GenericXmlApplicationContext getGenericXmlApplicationContext() {  
    retu new AppContextListener().ctx;
}
}  

There is war archive in intellij:

screen

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 24 خرداد 1395 ساعت: 1:24

صفحه بندی