tomee.xml resources are bound with openejb:Resource/<id> (or
java:openejb/Resource) jndi name


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-08-29 10:56 GMT+02:00 Robert van Loenhout <[email protected]
>:

> Hi,
>
> I've declared a datasource resource in tomee.xml. During startup I can see
> my jdbc/ds being configured in the catalina log. However I receive an error
> in the container log file (localhost*.log)
> The web application is unable to find the datasource.
> nested exception is javax.naming.NameNotFoundException: Name [jdbc/ds] is
> not bound in this Context. Unable to find [jdbc].
>
> I have added a resource link in the context.xml file
>
> <Context>
>     ...
>     <ResourceLink global="jdbc/ds" name="jdbc/ds"
> type="javax.sql.DataSource"/>
> </Context>
>
> But this doesn't seem to do the trick. So what's the correct way to make a
> datasource resource defined in tomee.xml accessible by the web application?
>
>
>

Reply via email to