MySQL Problem: Name [apiman-gateway] is not bound in this Context. Unable to find [apiman-gateway] #2192
-
Hi everyone, i found this error via apimanui when i publish new api. What i do wrong? Info
apiman.properties
/conf/web.xml
/conf/context.xml
apiman.log
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The logs show that you have not bound the Apiman Gateway JDBC/SQL data source specified at line 16 of your If you are also doing JDBC for the gateway, you need to bind that JDBC resource in the same way as for apiman-manager in It can point at the same physical database if you want, or a separate one. Whatever you prefer. Example (untested): ... existing resource ...
<Resource name="jdbc/datasources/apiman-gateway" auth="Container"
type="javax.sql.DataSource"
maxTotal="100" maxIdle="30" maxWaitMillis="10000"
username="secupi" password="secupi"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://192.168.100.56:3306/secupi"/>
<ResourceLink global="jdbc/datasources/apiman-gateway"
name="jdbc/datasources/apiman-gateway" type="javax.sql.DataSource"/> To make your life easier for debugging, I suggest you change Let us know how you get on. |
Beta Was this translation helpful? Give feedback.
-
It's worked Thanks you @msavy |
Beta Was this translation helpful? Give feedback.
The logs show that you have not bound the Apiman Gateway JDBC/SQL data source specified at line 16 of your
apiman.properties
calledjava:comp/env/jdbc/datasources/apiman-gateway
.If you are also doing JDBC for the gateway, you need to bind that JDBC resource in the same way as for apiman-manager in
context.xml
. As per Tomcat naming rules, the name of this resource will bejdbc/datasources/apiman-gateway
.It can point at the same physical database if you want, or a separate one. Whatever you prefer.
Example (untested):