Thank you for answer.
Yes, I use JDK 7.
First time I tried to use the code from github
BroadleafCommerce :
https://github.com/BroadleafCommerce/Br ... mmerce.gitand DemoSite
https://github.com/BroadleafCommerce/DemoSite.gitI built the engine jars (BroadleafCommerce) by maven.
After that I built the demosite by maven and used the jars from first build.
After that I tried to deploy to Tomcat-7 and connect to Postgresql 9.1.
I changed applicationContext-datasource.xml and instead of
Code: Select all
<jee:jndi-lookup id="webDS" jndi-name="jdbc/web"/>
added
Code: Select all
<bean id="webDS" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass" value="org.postgresql.Driver"/>
<property name="jdbcUrl" value="jdbc:postgresql://localhost:5432/broadleaf"/>
<property name="user" value="sa"/>
<property name="password" value="sa"/>
</bean>
Exception appears
Code: Select all
java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
Why hsqldb still trying to connect? What and where the changes I have to made to use postgresgl?
And in general, please advise
-where I have to take proper source for kernel BroadleafCommerce?
-how to start investigation? Should I use DemoSite and make changes for my purposes?
-from where should I download proper DemoSite?
Thanks in advance?