Project: talendesb
Issue TESB-2047: SAM connection does not work for H2 database
Testing SAM Server and TAC with H2 database. When configuring the the SAM Server to run against the TAC H2 database I get exception: message: "Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection is broken: "Connection refused" [90067-142])" Regarding Configuration I did the following: 0. copied h2-1.2.142.jar to /opt/Talend/apache-tomcat-5.5.12/webapps/sam-server-war/WEB-INF/lib 1. Open http://sop-td52.servicebackbone.org:8080/org.talend.administrator/h2console 2. From this screen directly created a new database by changing JDBC URL: from jdbc:h2:~/test to jdbc:h2:~/testSAM with new User testSAM/testSAM 3. Stopped the TAV/SAM Tomcat 3. Configured logserver.properties with: #for H2 db.driver=org.h2.Driver db.url=jdbc:h2:tcp://localhost/~/testSAM db.username=testSAM db.password=testSAM db.dialect=h2Dialect db.recreate=false db.createsql=create_h2.sql db.pool.initsize=5 db.pool.maxactive=20 db.pool.maxwait=-1 4. started the tomcat, and checked http://sop-td52.servicebackbone.org:8080/sam-server-war/api/v1.0/list -> get the error 5. Stop Tomcat 6. Change logserver.properties to: #for H2 db.driver=org.h2.Driver db.url=jdbc:h2:tcp://localhost/~/test db.username=tisadmin db.password=tisadmin 7. Start Tomcat and check http://sop-td52.servicebackbone.org:8080/sam-server-war/api/v1.0/list -> same error 8. Stop Tomcat 9. Change logserver.properties to default values delivered: #for H2 db.driver=org.h2.Driver db.url=jdbc:h2:tcp://localhost/~/test db.username=sa db.password= 10. Start Tomcat and check http://sop-td52.servicebackbone.org:8080/sam-server-war/api/v1.0/list -> still same error Catalina attached. As- H2 is delivered together with TAC I would consider this as a blocker.
Story points: 1