- This topic has 3 replies, 3 voices, and was last updated 18 years, 11 months ago by
vamsi_t.
-
AuthorPosts
-
vamsi_tMemberThe following error occured while executing the jsp page.
Actually i am coding and compiling it on windows on hostng it on linux server.
—————————————————————————————–type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /dbjsp.jsp:123
120: Session sess1=FirstSessionFactory.currentSession();
121: String hql=”from Employee order by Ename”;
122: Query qry=sess1.createQuery(hql);
123: List emplist=qry.list();
124: Object emparray[]=emplist.toArray();
125: if( emparray.length>0 )
126: for(int i=0;i<emparray.length;i++){Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root cause
org.hibernate.exception.GenericJDBCException: Cannot open connection
org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301)
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)
org.hibernate.loader.Loader.doQuery(Loader.java:390)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
org.hibernate.loader.Loader.doList(Loader.java:1593)
org.hibernate.loader.Loader.list(Loader.java:1577)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
org.apache.jsp.dbjsp_jsp._jspService(dbjsp_jsp.java:174)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Somebody help me please
thanks
vamsi
August 8, 2006 at 10:57 pm #256414
Riyad KallaMemberMoving to OT > Soft Dev
August 9, 2006 at 5:10 am #256427
Haris PecoMemberVamsi,
It looks that your hibernate cfg.xml file haven’t good jdbc connection information
Please check your cfg.xml settings and try if it work in db explorerThanks
PecoAugust 10, 2006 at 8:03 am #256501
vamsi_tMemberThanks . It is working now
-
AuthorPosts