1 2 Previous Next 18 Replies Latest reply on Nov 3, 2014 7:52 PM by Steven Hawkins Branched to a new discussion.

    using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl

    kchen007 Apprentice

      When we define a vdb that use TEIID odata translator, got the following error during startup, the Teiid runtime is 8.4 and JBOSS server is EAP 6.0.1 alpha. does the module dependencies need fix?

      thanks

      Kevin

       

       

       

      10:14:30,266 SEVERE [org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean] (teiid-async-threads - 2) java.lang.RuntimeException : java.lang.ClassNotFoundException

      : com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @561777b1 (finder: local module finder @1eb3319f (roots: C:

      \Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

      10:14:30,274 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID50036 VDB DSPM-DSRTA.1 model "DSPM" metadata failed to load. Reason:java.lang.RuntimeExcep

      tion: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @561777b1 (finder: lo

      cal module finder @1eb3319f (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\syst

      em\layers\base))]: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module

      "javax.ws.rs.api:main" from local module loader @561777b1 (finder: local module finder @1eb3319f (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\mod

      ules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

              at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:217)

              at org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:91)

              at org.teiid.resource.adapter.ws.WSConnectionImpl$HttpDispatch.<init>(WSConnectionImpl.java:121)

              at org.teiid.resource.adapter.ws.WSConnectionImpl.createDispatch(WSConnectionImpl.java:280)

              at org.teiid.translator.ws.BinaryWSProcedureExecution.execute(BinaryWSProcedureExecution.java:119)

              at org.teiid.translator.odata.BaseQueryExecution.executeDirect(BaseQueryExecution.java:216)

              at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:116)

              at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:69)

              at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:61) [teiid-engine-8.4.1.jar:8.4.1]

              at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.4.1.jar:8.4.1]

              at org.teiid.jboss.VDBService$6.run(VDBService.java:397) [teiid-jboss-integration-8.4.1.jar:8.4.1]

              at org.teiid.jboss.VDBService$7.run(VDBService.java:444) [teiid-jboss-integration-8.4.1.jar:8.4.1]

              at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)

              at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806)

              at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)

              at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:826)

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local mo

      dule loader @561777b1 (finder: local module finder @1eb3319f (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10

      .3\ApplicationServer\modules\system\layers\base))]

              at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:134)

              at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:96)

              at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:74)

              at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:87)

              at org.apache.cxf.jaxrs.client.LocalClientState.<init>(LocalClientState.java:51)

              at org.apache.cxf.jaxrs.client.AbstractClient.<init>(AbstractClient.java:99)

              at org.apache.cxf.jaxrs.client.WebClient.<init>(WebClient.java:77)

              at org.apache.cxf.jaxrs.client.WebClient.<init>(WebClient.java:73)

              at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:208)

              ... 17 more

      Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @561777b1 (finde

      r: local module finder @1eb3319f (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules

      \system\layers\base))]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

              at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_27]

              at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_27]

              at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:77)

              at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:201)

              at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:113)

              ... 25 more

        • 4. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
          kchen007 Apprentice

          I applied the patch but still got the same error. we are using JBOSS EAP 6.0.1 alpha.

          thanks

          Kevin

          • 5. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
            Ramesh Reddy Master

            JBoss EAP 6.0.1 Alpha or JBoss EAP 6.1.0 Alpha? Teiid only supports later. Make sure you correctly unzipped the modules.zip over the modules directory. Make sure the RestEasy version is 2.3.6 or later

             

            Ramesh..

            • 6. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
              Sudha Krothapally Newbie

              Follow up to Kevin's question, now we have RestEasy version 2.3.6, JBoss EAP 6.1.0 Alpha and still getting similar error for Odata translator

               

              Connection to OData source:

               

              <resource-adapter id="odata-0-1413996029976">

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

                                              http://teiid.org

                                          </config-property>

                                          <config-property name="ServiceName">

                                              teiid

                                          </config-property>

                                          <config-property name="EndPointName">

                                              teiid

                                          </config-property>

                                          <config-property name="AuthUserName">

                                              admin

                                          </config-property>

                                          <config-property name="SecurityType">

                                              None

                                          </config-property>

                                          <config-property name="EndPoint">

                                              http://services.odata.org/Northwind/Northwind.svc/

                                          </config-property>

                                          <config-property name="AuthPassword">

                                              admin

                                          </config-property>

                                          <security>

                                              <security-domain>dsrtpaSecurityDomain</security-domain>

                                          </security>

                                      </connection-definition>

                                  </connection-definitions>

                              </resource-adapter>

               

              VDB:

               

              <vdb name="dsrtpa" version="1">

                  <model name="dsrtpa">

                      <property name="importer.importKeys" value="true"/>

                      <property name="importer.importProcedures" value="true"/>

                       <source connection-jndi-name="java:/dsrtpa" name="dsrtpa" translator-name="odata"/>

                  </model>

              </vdb>

               

              Error:

               

              16:49:42,579 SEVERE [org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean] (teiid-async-threads - 5) java.lang.RuntimeException : java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @97919f6 (finder: local module finder @6d976a55 (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

              16:49:42,581 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 5) TEIID50036 VDB dsrtpa.1 model "dsrtpa" metadata failed to load. Reason:java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @97919f6 (finder: local module finder @6d976a55 (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @97919f6 (finder: local module finder @6d976a55 (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

                at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:217)

                at org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:92)

                at org.teiid.resource.adapter.ws.WSConnectionImpl$HttpDispatch.<init>(WSConnectionImpl.java:125)

                at org.teiid.resource.adapter.ws.WSConnectionImpl.createDispatch(WSConnectionImpl.java:287)

                at org.teiid.translator.ws.BinaryWSProcedureExecution.execute(BinaryWSProcedureExecution.java:119)

                at org.teiid.translator.odata.BaseQueryExecution.executeDirect(BaseQueryExecution.java:228)

                at org.teiid.translator.odata.ODataMetadataProcessor.getEds(ODataMetadataProcessor.java:76)

                at org.teiid.translator.odata.ODataMetadataProcessor.process(ODataMetadataProcessor.java:91)

                at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)

                at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:53)

                at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:73) [teiid-engine-8.7.0.Final.jar:8.7.0.Final]

                at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.7.0.Final.jar:8.7.0.Final]

                at org.teiid.jboss.VDBService$6.run(VDBService.java:395) [teiid-jboss-integration-8.7.1.Final.jar:8.7.1]

                at org.teiid.jboss.VDBService$7.run(VDBService.java:442) [teiid-jboss-integration-8.7.1.Final.jar:8.7.1]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_60]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_60]

                at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

              Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @97919f6 (finder: local module finder @6d976a55 (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

                at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:134)

                at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:96)

                at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:74)

                at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:87)

                at org.apache.cxf.jaxrs.client.LocalClientState.<init>(LocalClientState.java:50)

                at org.apache.cxf.jaxrs.client.AbstractClient.<init>(AbstractClient.java:100)

                at org.apache.cxf.jaxrs.client.WebClient.<init>(WebClient.java:78)

                at org.apache.cxf.jaxrs.client.WebClient.<init>(WebClient.java:74)

                at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:208)

                ... 17 more

              Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl from [Module "javax.ws.rs.api:main" from local module loader @97919f6 (finder: local module finder @6d976a55 (roots: C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules,C:\Landmark\DSDataServer5000.10.3\ApplicationServer\modules\system\layers\base))]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

                at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_60]

                at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_60]

                at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:77)

                at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:201)

                at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:113)

                        

              • 7. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                Ramesh Reddy Master

                Try adding

                 

                <module name="sun.jdk" />

                 

                under <dependencies> of the file

                 

                ${jboss-eap-6.1}/modules/system/layers/base/org/jboss/teiid/resource-adapter/webservice/main/module.xml

                 

                Let me know if that works.

                 

                Ramesh..

                • 8. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                  Sudha Krothapally Newbie

                  Different error now (  http://services.odata.org/Northwind/Northwind.svc/)

                   

                  14:21:28,523 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 8) TEIID50036 VDB dsrtpa.1 model "dsrtpa" metadata failed to load. Reason:org.apache.cxf.jaxrs.client.ClientWebApplicationException: org.apache.cxf.interceptor.Fault: Could not send Message.: org.apache.cxf.jaxrs.client.ClientWebApplicationException: org.apache.cxf.jaxrs.client.ClientWebApplicationException: org.apache.cxf.interceptor.Fault: Could not send Message.

                    at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:851)

                    at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:787)

                    at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:748)

                    at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:282)

                    at org.teiid.resource.adapter.ws.WSConnectionImpl$HttpDispatch.invoke(WSConnectionImpl.java:160)

                    at org.teiid.resource.adapter.ws.WSConnectionImpl$HttpDispatch.invoke(WSConnectionImpl.java:116)

                    at org.teiid.translator.ws.BinaryWSProcedureExecution.execute(BinaryWSProcedureExecution.java:147)

                    at org.teiid.translator.odata.BaseQueryExecution.executeDirect(BaseQueryExecution.java:228)

                    at org.teiid.translator.odata.ODataMetadataProcessor.getEds(ODataMetadataProcessor.java:76)

                    at org.teiid.translator.odata.ODataMetadataProcessor.process(ODataMetadataProcessor.java:91)

                    at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)

                    at org.teiid.translator.odata.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:53)

                    at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:73) [teiid-engine-8.7.0.Final.jar:8.7.0.Final]

                    at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.7.0.Final.jar:8.7.0.Final]

                    at org.teiid.jboss.VDBService$6.run(VDBService.java:395) [teiid-jboss-integration-8.7.1.Final.jar:8.7.1]

                    at org.teiid.jboss.VDBService$7.run(VDBService.java:442) [teiid-jboss-integration-8.7.1.Final.jar:8.7.1]

                    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_60]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_60]

                    at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]

                    at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                  Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: org.apache.cxf.interceptor.Fault: Could not send Message.

                    at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:498)

                    at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:484)

                    at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:844)

                    ... 19 more

                  Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.

                    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)

                    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)

                    at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:839)

                    ... 19 more

                  Caused by: java.net.ConnectException: ConnectException invoking http://services.odata.org/Northwind/Northwind.svc//$metadata: Connection refused: connect

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_60]

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.7.0_60]

                    at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.7.0_60]

                    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1469)

                    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1454)

                    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)

                    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:659)

                    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)

                    ... 21 more

                  Caused by: java.net.ConnectException: Connection refused: connect

                    at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) [rt.jar:1.7.0_60]

                    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.PlainSocketImpl.connect(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.SocksSocketImpl.connect(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.Socket.connect(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.NetworkClient.doConnect(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.http.HttpClient.openServer(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.http.HttpClient.openServer(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.http.HttpClient.<init>(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.http.HttpClient.New(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.http.HttpClient.New(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) [rt.jar:1.7.0_60]

                    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [rt.jar:1.7.0_60]

                    at java.net.HttpURLConnection.getResponseCode(Unknown Source) [rt.jar:1.7.0_60]

                    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1606)

                    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1532)

                    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1440)

                    ... 24 more

                   

                  Changed endpoint to an in-house OData URL (http://vc1cgr01rt01003:8081/odata/DSRTPA/odata.svc/)

                   

                  14:26:02,946 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 9) TEIID50036 VDB dsrtpa.1 model "dsrtpa" metadata failed to load. Reason:Bad error response: <error> not found

                  14:26:02,946 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 9) TEIID50036 VDB dsrtpa.1 model "dsrtpa" metadata failed to load. Reason:Bad error response: <error> not found

                  • 11. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                    Ramesh Reddy Master

                    Show your configuration for the resource adapter for odata web service? Are you still getting the same error?

                    • 12. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                      Sudha Krothapally Newbie

                      Yes, still same errors (connection refused for NorthWind svc, and bad error response for in-house odata url)

                       

                      <resource-adapter id="odata">

                            <module slot="main" id="org.jboss.teiid.resource-adapter.webservice"/>

                             <transaction-support>NoTransaction</transaction-support>

                      </resource-adapter>

                       

                      <resource-adapter id="odata-0-1414419014924">

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

                                                      define

                                                  </config-property>

                                                  <config-property name="AuthUserName">

                                                      admin

                                                  </config-property>

                                                  <config-property name="EndPoint">

                                                      http://services.odata.org/Northwind/Northwind.svc/

                                                  </config-property>

                                                  <config-property name="EndPointName">

                                                      teiid

                                                  </config-property>

                                                  <config-property name="NamespaceUri">

                                                      http://teiid.org

                                                  </config-property>

                                                  <config-property name="SecurityType">

                                                      None

                                                  </config-property>

                                                  <config-property name="ServiceName">

                                                      teiid

                                                  </config-property>

                                                  <security>

                                                      <security-domain>dsrtpaSecurityDomain</security-domain>

                                                  </security>

                                              </connection-definition>

                                          </connection-definitions>

                                      </resource-adapter>

                      • 13. Re: Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                        Ramesh Reddy Master

                        Do yo know why you are using properties like "AuthUserName" and "AuthPassword", "EndPointName", "NameSpaceUri" etc? The only relevant property with HTTP in there is Endpoint.  Read about then here Web Service Data Sources - Teiid 8.9 (draft) - Project Documentation Editor

                         

                        Try something like

                         

                        <resource-adapter id="odata-0-1414419014924">
                            <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>
                        

                         

                        Ramesh..

                        • 14. Re: using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
                          Sudha Krothapally Newbie

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

                           

                          After the above changes, got a different error

                           

                          14:47:54,088 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 6) TEIID50036 VDB dsrtpa.1 model "dsrtpa" metadata failed to load. Reason:The use of a relative endpoint in a procedure call requires a a default endpoint on the datasource.

                           

                          Thanks,

                          Sudha

                          1 2 Previous Next