Skip to content

MySQL Problem: Name [apiman-gateway] is not bound in this Context. Unable to find [apiman-gateway] #2192

Answered by msavy
KwanchaiJc asked this question in Help
Discussion options

You must be logged in to vote

The logs show that you have not bound the Apiman Gateway JDBC/SQL data source specified at line 16 of your apiman.properties called java: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 be jdbc/datasources/apiman-gateway.

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="

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by msavy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants
Converted from issue

This discussion was converted from issue #2191 on July 18, 2022 11:12.