<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm trying to deploy using postgres as the database, using
instructions found here:<br>
<a class="moz-txt-link-freetext" href="http://www.apiman.io/latest/production-guide.html#_connecting_to_the_database">http://www.apiman.io/latest/production-guide.html#_connecting_to_the_database</a><br>
<br>
I think I did things correctly, but I'm getting a failure to deploy
the datasource as it can't find the postgres driver, even though it
seems to have deployed OK.<br>
Here is the apiman-ds.xml:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<datasources><br>
<datasource jndi-name="java:jboss/datasources/apiman-manager"
pool-name="apiman-manager-api" enabled="true"
use-java-context="true"><br>
<connection-url>jdbc:postgresql://192.168.59.103:5432/apiman</connection-url><br>
<driver>postgresql-9.3-1102.jdbc41.jar_org.postgresql.Driver_9_3</driver><br>
<pool><br>
<max-pool-size>30</max-pool-size><br>
</pool><br>
<security><br>
<user-name>apiman</user-name><br>
<password>secret</password><br>
</security><br>
</datasource><br>
</datasources><br>
<br>
and this is what is deployed:<br>
<br>
[jboss@5b39dce15d98 deployments]$ ls -l<br>
total 102664<br>
-rw-r--r-- 1 jboss jboss 8869 Nov 21 2014 README.txt<br>
-rw-r--r-- 1 root root 542 Oct 8 10:09 apiman-ds.xml<br>
-rw-r--r-- 1 jboss jboss 219 Oct 8 10:17 apiman-ds.xml.failed<br>
-rwxr-xr-x 1 jboss jboss 19511221 Sep 10 11:28 apiman-es.war<br>
-rw-r--r-- 1 jboss jboss 13 Sep 10 11:28
apiman-es.war.deployed<br>
-rwxr-xr-x 1 jboss jboss 23949175 Sep 10 11:28
apiman-gateway-api.war<br>
-rw-r--r-- 1 jboss jboss 22 Sep 10 11:28
apiman-gateway-api.war.deployed<br>
-rwxr-xr-x 1 jboss jboss 22778008 Sep 10 11:28 apiman-gateway.war<br>
-rw-r--r-- 1 jboss jboss 18 Sep 10 11:28
apiman-gateway.war.deployed<br>
-rwxr-xr-x 1 jboss jboss 27389167 Sep 10 11:27 apiman.war<br>
-rw-r--r-- 1 jboss jboss 10 Sep 10 11:27 apiman.war.deployed<br>
-rwxr-xr-x 1 jboss jboss 10850509 Sep 10 11:27 apimanui.war<br>
-rw-r--r-- 1 jboss jboss 12 Sep 10 11:27 apimanui.war.deployed<br>
-rw-r--r-- 1 root root 592322 Oct 8 09:38
postgresql-9.3-1102-jdbc41.jar<br>
-rw-r--r-- 1 jboss jboss 30 Oct 8 09:38
postgresql-9.3-1102-jdbc41.jar.deployed<br>
[jboss@5b39dce15d98 deployments]$ head apiman-ds.xml.failed<br>
"{\"JBAS014771: Services with missing/unavailable dependencies\"
=> [\"jboss.data-source.java:jboss/datasources/apiman-manager is
missing
[jboss.jdbc-driver.postgresql-9_3-1102_jdbc41_jar_org_postgresql_Driver_9_3]\"]}"[jboss@5b39dce15d98
deployments]$ <br>
<br>
<br>
In the example found here:<br>
<a class="moz-txt-link-freetext" href="https://github.com/apiman/apiman/blob/master/distro/wildfly8/src/main/resources/overlay/apiman/sample-configs/apiman-ds_postgresql.xml">https://github.com/apiman/apiman/blob/master/distro/wildfly8/src/main/resources/overlay/apiman/sample-configs/apiman-ds_postgresql.xml</a><br>
the syntax is like this:<br>
<meta charset="utf-8">
<br>
postgresql-9.3-1102.jdbc41.jar_org.postgresql.Driver_9_3<br>
I think the . before jdbc41 should be a dash, like this:<br>
postgresql-9.3-1102-jdbc41.jar_org.postgresql.Driver_9_3<br>
but that doesn't work. And there is no class named Driver_9_3 in the
org.postgresql package, so I thought it could need to be:<br>
postgresql-9.3-1102-jdbc41.jar_org.postgresql.Driver<br>
but that doesn't work either.<br>
<br>
Any suggestions for what is needed here?<br>
<br>
<br>
Tim<br>
<br>
</body>
</html>