MyEclipse: Cannot open connection mati_varini - Mar 30, 2011 - 06:58 PM Post subject: Cannot open connection
hi i am new at this...
i was following the tutorial for scaffolding, the thing that i changed was that I use a SQLServer as my database
I got this error message
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
causa raíz
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Users\mvarini\AppData\Local\Genuitec\MyEclipse for Spring 8.6\myeclipseforspring.exe
-name
Myeclipseforspring
--launcher.library
C:\Users\mvarini\AppData\Local\Genuitec\MyEclipse for Spring 8.6\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\Users\mvarini\AppData\Local\Genuitec\MyEclipse for Spring 8.6\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:\Users\mvarini\AppData\Local\Genuitec\MyEclipse for Spring 8.6
-configuration
C:\Users\mvarini\AppData\Local\Genuitec\MyEclipse for Spring 8.6\configuration
-vm
C:\Users\mvarini\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
thanksgihrig - Mar 30, 2011 - 07:30 PM Post subject: RE: Cannot open connection
Hi mati_varini,
Try placing a copy of your SQLServer db driver in your WEB-INF/lib folder.
There seems to be a problem with the MyEclipse Tomcat sandbox server not finding the established db connection.
There is probably a better solution, but this worked for me.
When you get to the point of deploying to production you will probably want to remove this copy of the db driver, if your production tomcat has it already installed.