I have an application uses JPA , it runs on localhost but when i uploaded it rented host it generates an error:
javax.persistence.PersistenceException: java.lang.NullPointerException
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:258)
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
com.enuygun.DAO.DAOHelper.createEntityManagerFactory(DAOHelper.java:11)
com.enuygun.livesearch.Admin.doInit(Admin.java:158)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
bsh.Reflect.invokeMethod(Unknown Source)
bsh.Reflect.invokeObjectMethod(Unknown Source)
bsh.Name.invokeMethod(Unknown Source)
bsh.BSHMethodInvocation.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:80)
org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:205)
org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:694)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:424)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:462)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:401)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:449)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:401)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:318)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:259)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:174)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:124)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
on DAOHelper line 11, i am creating entity manager(Persistence.createEntityManagerFactory(UnitName))
I am using mysql dialect, and all needed libs are on host. I cant understand problem.
|