-
15. Re: Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
rareddy Oct 27, 2014 4:32 PM (in response to srkrotha)Just as I have been advocating you, I tried doing the same. I added following to the "standalone-teiid.xml" file
<resource-adapter id="odata-0-1414437974354"> <module slot="main" id="org.jboss.teiid.resource-adapter.webservice"/> <transaction-support>NoTransaction</transaction-support> <connection-definitions> <connection-definition class-name="org.teiid.resource.adapter.ws.WSManagedConnectionFactory" jndi-name="java:/dsrtpa" enabled="true" pool-name="dsrtpa"> <config-property name="EndPoint"> http://services.odata.org/Northwind/Northwind.svc/ </config-property> </connection-definition> </connection-definitions> </resource-adapter>
Then I used above in simple VDB like below, see the "translator" property. I called it "nw-vdb.xml"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <vdb name="nw" version="1"> <model name="Nothwind" type="PHYSICAL" > <source name="nw" translator-name="odata" connection-jndi-name="java:/dsrtpa"/> </model> </vdb>
I deployed to the Teiid server. The I used, SquirreL and used Teiid JDBC driver to connect to the above vdb with name "nw", once connected I issued the query "select * from Categories"
So, re-trace where you are doing wrong step and correct it.
Ramesh..
-
16. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
shawkins Oct 28, 2014 3:47 PM (in response to srkrotha)It doesn't appear that the EndPoint property setting was successful. Were there any messages related to the config property being set or not?
-
17. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
srkrotha Oct 31, 2014 3:28 PM (in response to shawkins)No specific messages related to config property, is there any setting to see more detailed error messages?
I retraced the steps again, but still the same error, are there any other version issues other than JBoss 6.1.0 Apha and RestEasy 2.3.6?
\modules\system\layers\base\org\jboss\resteasy\resteasy-jaxrs\main\module.xml
-
18. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
shawkins Nov 3, 2014 7:52 PM (in response to srkrotha)Which error, the class not found or the config property not recognized?
> I retraced the steps again, but still the same error, are there any other version issues other than JBoss 6.1.0 Apha and RestEasy 2.3.6?
I don't know if it makes a difference but our initial patching was not based upon using the full module replacement for resteasy, but just replacing the two resteasy jars and making a minor modification to the module.xml - Downloads · Teiid
You can also move to Teiid 8.9 CR2, which uses EAP 6.3 Alpha and doesn't need patching.