JNDI « Glassfish « JPA Q&A





1. Configuring Hibernate to use a Glassfish ConnectionPool    stackoverflow.com

After googleing for a whole day, I've seen a lot of discussion on this issue, even a guide which supposedly solves the problem[1], but until now I didn't get to a ...

2. glassfish vs. Hibernate: JNDI configuration    coderanch.com

Hi, I just tried your proposal, still getting java.lang.ExceptionInInitializerError at model.HibernateUtil.(HibernateUtil.java:17) at model.dao.NameHome.getSessionFactory(NameHome.java:32) at model.dao.NameHome.(NameHome.java:28) at controller.NameService.(NameService.java:11) at controller.action.PersistAction.(PersistAction.java:16) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.struts.chain.commands.util.ClassUtils.getApplicationInstance(ClassUtils.java:71) at org.apache.struts.chain.commands.servlet.CreateAction.createAction(CreateAction.java:98) at org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:68) at org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:90) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at ...