You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running jruby on rails application and using glassfish server and postgresql database. i have created connection pool in glassfish server and i am able to ping that connection using glassfish admin tool.
Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.
I am running jruby on rails application and using glassfish server and postgresql database. i have created connection pool in glassfish server and i am able to ping that connection using glassfish admin tool.
Below is my database.yml file.
whenever i start my webrick server i am getting below error.
what could be the reason for this error.
Below is the bash file which i have used to create connection pool in glassfish server
!/bin/bash
DB=harbinger
DB_USER=railsdevelopertutorial
DB_PASSWORD=2893ourj8923urjl
DB_HOST=localhost
JDBC_POOL=railsdevelopertutorialPOOL
JDBC_RESOURCE=jdbc/railsdevelopertutorial
cd /opt/glassfish4/bin
./asadmin login
if [ $? != 0 ]; then
echo "Must login to continue"
exit
fi
./asadmin create-jdbc-connection-pool
--datasourceclassname=org.postgresql.ds.PGConnectionPoolDataSource
--restype=javax.sql.ConnectionPoolDataSource
--property user=${DB_USER}:password=${DB_PASSWORD}:databaseName=${DB}:serverName=${DB_HOST}
${JDBC_POOL}
./asadmin create-jdbc-resource
--connectionpoolid ${JDBC_POOL}
${JDBC_RESOURCE}
why i am getting ActiveRecord::ConnectionNotEstablished : jdbc adapter requires :driver and :url (got :driver = ) .. please help
The text was updated successfully, but these errors were encountered: