using odata translator, cause classnotfound exception for com.sun.ws.rs.ext.RuntimeDelegateImpl
kchen007 Jul 1, 2014 11:21 AMWhen 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