Red Hat Bugzilla – Bug 814214
Camel SQL gateway can't lookup for DataSource in Camel Context
Last modified: 2014-01-12 19:20:39 EST
Created attachment 578613 [details]
When you try use camel-sql component, the deployment of application fails because Camel can't lookup for DataSource in Camel Context and fails with:
Caused by: java.lang.IllegalArgumentException: registry entry called java:/DefaultDS of type javax.sql.DataSource must be specified
There is possibility that this bug is related to JBESB-3471 issue.
Full log of failed deployment is attached.
I'm also attaching sample project, which tries to connect to database through DefaultDS DataSource but it fails.
Table which is example trying to query doesn't exist but it's not relevant for this bug.
1. Start server
2. Unzip reproducer to quickstarts directory
3. Configure quickstarts.properties to target your server profile
4. from camel_sql directory run: ant deploy
Created attachment 578614 [details]
Camel SQL reporoducer
The problem here looks to me like you're using a datasource in the java: namespace, which Camel can't see. If you use a datasource in the global namespace (you need to set <use-java-context/>, you shouldn't have this issue :
<?xml version="1.0" encoding="UTF-8"?>
I still see the space issue, which I believe is represented by https://bugzilla.redhat.com/show_bug.cgi?id=814297 but I don't believe this to be an issue.
Yes, you are right. Good work Tom.
So I'm closing this issue as a NOTABUG.