4 Replies Latest reply on Feb 7, 2014 5:06 PM by rbadrawi

    Quick Questions

    rbadrawi Newbie

      Quick newbie questions:

       

      1) Starting JBoss/Teiid server from the command line generates an exception although it seems to be working fine, and I can access the admin page. The exception is:

      16:24:36,596 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/odata]] (ServerService Thread Pool -- 50)  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_51]

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

      ......

      16:24:36,997 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 50)  JBWEB001103: Error detected during context /odata start, will stop it

      16:24:37,158 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50)  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_51]

      ...

      15:28:22,490 INFO  [org.jboss.as] (Controller Boot Thread)  JBAS015951: Admin console listening on http://0.0.0.0:9990

      15:28:22,491 ERROR [org.jboss.as] (Controller Boot Thread)  JBAS015875: JBoss EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1-redhat-4) started (with errors) in 13912ms - Started 311 of 391 services (2 services failed or missing dependencies, 76 services are passive or on-demand)

       

      2) Running the simpleclient example against the dynamicvdb example generates an error:

      :/usr/local/jboss-eap-6.1/teiid-quickstarts-master/simpleclient# mvn3 install -Dvdb="../dynamicvdb-datafederation/src/vdb/portfolio-vdb.xml" -Dsql="select * from product"

      [INFO] Scanning for projects...

      [ERROR] The build could not read 1 project -> [Help 1]

      [ERROR]  

      [ERROR]   The project org.jboss.teiid.quickstart:simpleclient:2.0.0 (/usr/local/jboss-eap-6.1/teiid-quickstarts-master/simpleclient/pom.xml) has 1 error

      [ERROR]     Non-resolvable parent POM for org.jboss.teiid.quickstart:teiid-quickstart-parent:2.0.0: Failure to find org.jboss.teiid:teiid-parent:pom:8.6.0.Final in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ org.jboss.teiid.quickstart:teiid-quickstart-parent:2.0.0, /usr/local/jboss-eap-6.1/teiid-quickstarts-master/pom.xml, line 4, column 10 -> [Help 2]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

      root@biomart:/usr/local/jboss-eap-6.1/teiid-quickstarts-master/simpleclient#

       

      3) I am having some problems in getting the JBoss/Teiid server working from within Teiid Designer. Is it possible to use Teiid outside the designer for a start?

       

      Thanks.

        • 1. Re: Quick Questions
          Ramesh Reddy Master

          1) install the RestEasy JAXRS  Patchas defined here Downloads - JBoss Community

           

          2) Not sure what that about. If you want you can simply use a JDBC tool like SquirreL.

           

          3) Yes, you can have Teiid server outside the Teiid Designer. When you create the server profile in Designer, set that it is externally managed and use the standalone-teiid.xml file as the configuration file.

           

          Ramesh..

          1 of 1 people found this helpful
          • 2. Re: Quick Questions
            Van Halbert Master

            For running the simple client,   try adding    -s ../settings.xml  (i.e, mvn3 -s ../settings.xml ....)

            1 of 1 people found this helpful
            • 3. Re: Quick Questions
              Tom Arnold Novice

              As an alternative to the patch mentioned by Ramesh (also, it is on the download page as a note), you can try using a slightly newer JBoss. I am running EAP 6.1.0 Final and have not seen this error because the JAX-RS version is new enough. If you do not care about using OData to interface with Teiid (ie. you just want to use JDBC/SQL), then I think you can safely ignore this error.

               

              I have been successfully using Squirrel to test my VDB/translator. You will need to add the Teiid JDBC driver to the lib folder and register it as a driver in the GUI (org.teiid.jdbc.TeiidDriver). More info on this is here: Driver Connection - Teiid 8.7 (draft) - Project Documentation Editor. It might be nice to have a Squirrel package configured with the Teiid JDBC driver on the download page, unless there is another common way that people are using to connect. I was able to connect with Netbeans but the browser doesn't seem to show more than one schema.

              • 4. Re: Quick Questions
                rbadrawi Newbie

                Thanks all for the responses. I will follow up on the leads provided.