When trying to use a postgres database with EJBCA CE 6.0.3, I get the message from ant deploy that Driver named "org.postgresql.Driver" is not installed. Over in my JBoss AS 7.1.1.Final terminal, I can see when jboss starts that it has deployed the postgres driver. I had all this working 6 months ago but am trying to start fresh with the latest versions of ejbca, jboss and postgress driver. I hope one of you can see my problem please.
Test system: Virtualbox VM guest, 3 vcpus, 2gb ram, 10gb disk
OS: Ubuntu 12.04 x64 server, minimum install
JBoss: JBoss AS 7.1.1.Final
EJBCA: EJBCA CE 6.0.3
postgresql-9.3-1100.jdbc41.jar installed to $HOME/jboss-as-7.1.1.Final/standalone/deployments/
I've followed the Ubuntu quick start guide: http://www.ejbca.org/installation.html#Ubuntu%20quick%20start
After step 5 I followed the HOWTO-database.txt for a postgres database. Created a database, user and password. Installed the postgres jdbc driver into jboss as above.
Thanks for the replies. The link I was using is stale: (http://www.ejbca.org/installation.html)
I got it all going like this:
apt-get install libpostgresql-jdbc-java
cd jboss-as-7.1.1.Final/
jboss-as-7.1.1.Final$ mkdir -p modules/org/postgresql/main
jboss-as-7.1.1.Final$ cd modules/org/postgresql/main
jboss-as-7.1.1.Final/modules/org/postgresql/main$ ln -s /usr/share/java/postgresql-jdbc4.jar postgresql-jdbc4.jar
i am having same problem during ejbca upgrade with oracle drive is not installed. i have created datasource and module.xml file for oracle database. please adive me i was missing some steps during ant deploy.
jee:deployDSJBoss7: [exec] Result: 1 [exec] Result: 1 [echo] data-source add --name=ejbcads --driver-name="oracle.jdbc.driver.OracleDriver" --connection-url="jdbc:oracle:thin:@qdb-cluster.i.echoworx.com:1521:echo" --jndi-name="java:/EjbcaDS" --use-ccm=true --user-name="ejbca_new" --password="ejbca_new" --validate-on-match=true --background-validation=false --prepared-statements-cache-size=50 --share-prepared-statements=true --min-pool-size=5 --max-pool-size=150 --pool-prefill=true --transaction-isolation=TRANSACTION_READ_COMMITTED --check-valid-connection-sql="select 1 from dual" [exec] JBAS010468: Driver named "oracle.jdbc.driver.OracleDriver" is not installed.
BUILD FAILED
/opt/ejbca_ce_6_3_2_6/build.xml:696: The following error occurred while executing this line:
/opt/ejbca_ce_6_3_2_6/bin/jboss.xml:308: The following error occurred while executing this line:
/opt/ejbca_ce_6_3_2_6/bin/jboss.xml:577: exec returned: 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When trying to use a postgres database with EJBCA CE 6.0.3, I get the message from
ant deploy
thatDriver named "org.postgresql.Driver" is not installed.
Over in my JBoss AS 7.1.1.Final terminal, I can see when jboss starts that it has deployed the postgres driver. I had all this working 6 months ago but am trying to start fresh with the latest versions of ejbca, jboss and postgress driver. I hope one of you can see my problem please.Test system: Virtualbox VM guest, 3 vcpus, 2gb ram, 10gb disk
OS: Ubuntu 12.04 x64 server, minimum install
JBoss: JBoss AS 7.1.1.Final
EJBCA: EJBCA CE 6.0.3
postgresql-9.3-1100.jdbc41.jar installed to $HOME/jboss-as-7.1.1.Final/standalone/deployments/
I've followed the Ubuntu quick start guide: http://www.ejbca.org/installation.html#Ubuntu%20quick%20start
After step 5 I followed the HOWTO-database.txt for a postgres database. Created a database, user and password. Installed the postgres jdbc driver into jboss as above.
/ejbca_ce_6_0_3/conf/ejbca.properties:
/ejbca_ce_6_0_3/conf/database.properties:
And then continue onto step 6 of the quick start guide:
cd jboss-as-7.1.1.Final
bin/standalone.sh
Jboss output:
In another shell I continue with ejbca deployment:
cd ejbca_ce_6_0_3
ant deploy
EJBCA output:
As jboss seems to be deploying the postgres driver, does anyone know why ejbca can't find it?
Cheers
Josh
Check the installation guide, jboss section, for information how to install database driver in jboss 7.
Cheers,
Tomas
where did you place your postgres driver in jboss.
you should place the drivers like this in your jboss
jboss/modules/org/postgresql/main/postgresql-9.1-903.jdbc4.jar
and also create a module.xml
cat jboss/modules/org/postgresql/main/module.xml
<module xmlns="urn:jboss:module:1.0" name="org.postgresql"> <resources> <resource-root path="postgresql-9.1-903.jdbc4.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>after this you should start jboss and add the the driver using following command
/subsystem=datasources/jdbc-driver=org.postgresql.Driver:add(driver-name=org.postgresql.Driver,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
follow this installation guide
http://www.ejbca.org/docs/installation.html
Thanks for the replies. The link I was using is stale: (http://www.ejbca.org/installation.html)
I got it all going like this:
apt-get install libpostgresql-jdbc-java
cd jboss-as-7.1.1.Final/
jboss-as-7.1.1.Final$ mkdir -p modules/org/postgresql/main
jboss-as-7.1.1.Final$ cd modules/org/postgresql/main
jboss-as-7.1.1.Final/modules/org/postgresql/main$ ln -s /usr/share/java/postgresql-jdbc4.jar postgresql-jdbc4.jar
jboss-as-7.1.1.Final/modules/org/postgresql/main$ cat module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.postgresql">
<resources>
<resource-root path="postgresql-jdbc4.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
Last edit: harmscon 2014-02-25
is it working ? or still having issues?
It is working. Thank you for your help.
Hi Guys,
i am having same problem during ejbca upgrade with oracle drive is not installed. i have created datasource and module.xml file for oracle database. please adive me i was missing some steps during ant deploy.
module.xml
<module xmlns="urn:jboss:module:1.0" name="com.oracle.ojdbc6">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
jee:deployDSJBoss7:
[exec] Result: 1
[exec] Result: 1
[echo] data-source add --name=ejbcads --driver-name="oracle.jdbc.driver.OracleDriver" --connection-url="jdbc:oracle:thin:@qdb-cluster.i.echoworx.com:1521:echo" --jndi-name="java:/EjbcaDS" --use-ccm=true --user-name="ejbca_new" --password="ejbca_new" --validate-on-match=true --background-validation=false --prepared-statements-cache-size=50 --share-prepared-statements=true --min-pool-size=5 --max-pool-size=150 --pool-prefill=true --transaction-isolation=TRANSACTION_READ_COMMITTED --check-valid-connection-sql="select 1 from dual"
[exec] JBAS010468: Driver named "oracle.jdbc.driver.OracleDriver" is not installed.
BUILD FAILED
/opt/ejbca_ce_6_3_2_6/build.xml:696: The following error occurred while executing this line:
/opt/ejbca_ce_6_3_2_6/bin/jboss.xml:308: The following error occurred while executing this line:
/opt/ejbca_ce_6_3_2_6/bin/jboss.xml:577: exec returned: 1