I opened the jPetStore example application.
ran "ant all". This seemed to go fine.
copied the dist/jpetstore.war file to Tomcat's webapps directory.
ran "db/hsqldb>server".
started the app in my browser and the main screen comes up.
When I try and go to any specific pet, I get the following error.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.jdbc.CannotGetJdbcConnectionEx ception: Could not get JDBC connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection is broken: Connection refused: connect)
org.springframework.jdbc.datasource.DataSourceUtil s.getConnection(DataSourceUtils.java:147)
org.springframework.jdbc.datasource.DataSourceTran sactionManager.doBegin(DataSourceTransactionManage r.java:155)
org.springframework.transaction.support.AbstractPl atformTransactionManager.getTransaction(AbstractPl atformTransactionManager.java:269)
org.springframework.transaction.interceptor.Transa ctionAspectSupport.createTransactionIfNecessary(Tr ansactionAspectSupport.java:200)
org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:49)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :138)
org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
$Proxy0.getCategory(Unknown Source)
org.springframework.samples.jpetstore.web.spring.V iewCategoryController.handleRequest(ViewCategoryCo ntroller.java:31)
org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:495)
org.springframework.web.servlet.FrameworkServlet.s ervice(FrameworkServlet.java:321)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
I am assuming that HSQLDB did not start properly. How do I determine this and am I running the start up command incorrectly?


Reply With Quote