10 Replies Latest reply on Oct 29, 2013 8:25 AM by rakeshsagar

    Odata Web Application

    rakeshsagar

      Hi,

       

      Can you let us know how the OData web application is deployed.

      We have build Teiid 8.5 from the source code and deployed the artifacts to JBoss but we don't see the Odata web application being deployed.

      We tried the same thing by downloading the artifacts from the downloads section and the Odata Web application is deployed successfully.

       

      Is there any configuration that needs to be made in order for the OData web application to be deployed and accessed?

        • 1. Re: Odata Web Application
          van.halbert

          After you built from source (mvn clean install -P release) , you should find the distribution kit in build/target (i.e., teiid-8.5.0-jboss-dist.zip).  If you deploy this kit, you would find the teiid-odata-8.5.0.war deployed under  /modules/system/layers/base/org/jboss/teiid/main/deployments.

          • 2. Re: Odata Web Application
            rakeshsagar

            Hi,

             

            The .war file is available in the location /modules/system/layers/base/org/jboss/teiid/main/deployments but the war is not getting deployed.

            The odata translator is getting loaded.

             

            Thanks

            Rakesh.

            • 3. Re: Odata Web Application
              rareddy

              Do  you see any error messages in the log?

              • 4. Re: Odata Web Application
                rakeshsagar

                No, I do not see any error message in the logs.

                • 5. Re: Odata Web Application
                  rareddy

                  Are you starting in standalone mode or domain mode?

                  • 6. Re: Odata Web Application
                    rakeshsagar

                    I am starting JBoss in standalone mode.

                    • 7. Re: Odata Web Application
                      rareddy

                      In standalone mode, Teiid startup looks in the above directory and deploy any artifacts in that directory. Unless u have changed something that is the default behavior. I suggest you run with debugger and see what is happening, or manually deploy this file.

                      • 8. Re: Odata Web Application
                        rakeshsagar

                        I copied the war file into the deployments folder and started JBoss. I am getting the following exception when its getting deployed.

                         

                        29 Oct 2013 17:05:47,935 IST INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (ServerService Thread Pool -- 69)  Deploying javax.ws.rs.core.Application: class org.teiid.odata.TeiidODataApplication

                        29 Oct 2013 17:05:48,058 IST ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/odata]] (ServerService Thread Pool -- 69)  JBWEB000287: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: java.lang.IllegalArgumentException: Illegal group reference

                          at java.util.regex.Matcher.appendReplacement(Matcher.java:808) [rt.jar:1.7.0_03]

                          at org.jboss.resteasy.util.Encode.pathParamReplacement(Encode.java:434) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.util.Encode.encodeValue(Encode.java:314) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.util.Encode.encodePath(Encode.java:167) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.specimpl.UriBuilderImpl.paths(UriBuilderImpl.java:222) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.specimpl.UriBuilderImpl.path(UriBuilderImpl.java:295) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:262) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:124) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:106) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:83) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:72) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:405) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:233) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28) [resteasy-jaxrs-2.3.5.Final.jar:]

                          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_03]

                          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_03]

                          at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_03]

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]

                          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]

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

                         

                         

                        29 Oct 2013 17:05:48,076 IST ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 69)  JBWEB001103: Error detected during context /odata start, will stop it

                        29 Oct 2013 17:05:48,110 IST ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69)  MSC00001: Failed to start service jboss.web.deployment.default-host./odata: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./odata: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)

                          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_03]

                          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_03]

                          at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_03]

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]

                          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]

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

                        Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)

                          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)

                          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)

                          ... 7 more

                         

                        Thanks

                        Rakesh

                        • 9. Re: Odata Web Application
                          rareddy

                          Apply the RestEasy fix as suggested on the Downloads page.

                          • 10. Re: Odata Web Application
                            rakeshsagar

                            Adding the resteasy fix solved the problem.

                            Earlier I added the rest easy fix and it was deployed.

                             

                            Automatic deployment did not work though, I copied the war file to the deployments folder for it to work.

                             

                            Thanks Ramesh.