Thanks. Hav tried that but still facing the same issue.
<faultstring>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.getTest_Test('<?xml version="1.0" encoding="UTF-8"?><tes:Test_Test_Input xmln' at line 1</faultstring>
The error message suggests that the datasource you are accessing is MySQL and not Teiid. You'll want to make sure that the JNDI name the WAR is using is correct.
Checked it. JNDI name in teiidsoap.properties (inside WAR file) and the JNDI name of the VDB are same.
Just to clarify what are your Teiid vdb and MySQL JNDI names and what is the JNDI name in the teiidsoap.properties?
1) teiidsoap.properties should have JNDI name that points to the Teiid as the data source with given VDB name, and the data source configuration in the standalone-teiid.xml file.
2) There should be another JNDI name for mysql used in the VDB file, with its corresponding configuration in the standalone-teiid.xml file.
we think you have (2) JNDI name in the teiidsoap.properties, which is not correct.
Thanks for your help. I was able to resolve it by redoing the entire thing again in Eclipse Juno+Teiid Designer 8.1.0.
Earlier was using JBoss studio 4.1.2 + Teiid Designer 8.2...faced problems in generating a deployable war file so switched to Eclipse Juno. After getting the mysql problem , I redid from scratch on Eclipse.
found the problem while trying to create project, somehow the data source xml generated for the VDB and the DB both had MySQL configuration.
That is the below was present in the VDB's datasource xml
It's not required, but you can improve performance by using a local connection (dropping the host/port - jdbc:teiid:abcws) if your Teiid instance is in the same VM as the WAR.
if I created "local" connection with passthrough (I had http basic turned on the web service WAR) the REST framework was failing that it needs remote connection. I have to redo example to capture the exact error, it looked like during the deployment of the WAR file, it tries to make connection and since it is passthrough, it does not have any credentials and fails. I am not sure what is need to make connection to Teiid during the deployment of WAR?
> I am not sure what is need to make connection to Teiid during the deployment of WAR
You were getting that error even with a min pool size of 0? If so then yes that does seem odd that a connection is being obtained during deployment. Can we determine why this is happening and if an anonymous connection is needed as a fall-back?
Good point, I did not pay attention to "min-pool" size, either way the exception message was saying to not to use "passthrough", which I thought was odd. It was on Van's machine I need to re-create the example on my machine.
Ok, it was my mistake on the above. I had forgotten that when the "passthough" is turned on "local" connections, the "embedded" transport must be configured with a "security-domain" (by default, it does not) thus the above suspicious error, which is correct.