1 Reply Latest reply on Jan 26, 2018 7:29 PM by Van Halbert

    Teiid Quickstarts HELP! simpleclient

    Shiloh Jordan Novice

      Hi all,

      I am going through the quick starts and the simple client quickstart is what I need clarification on (teiid-quickstarts/simpleclient at master · teiid/teiid-quickstarts · GitHub )

       

      Before starting with the simple client quickstart, I went through Maven install and getting started guide.

      So, in simpleclient quickstart, there is pom.xml and JDBC Client.java but there is no parent pom.xml given.  Am I supposed to create this? Would it be this

      <project xmlns="http://maven.apache.org/POM/4.0.0"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

                            http://maven.apache.org/xsd/maven-4.0.0.xsd">

        <modelVersion>4.0.0</modelVersion>

       

        <groupId>org.teiid.quickstart</groupId>

        <artifactId>teiid-quickstart-parent</artifactId>

        <version>1.0-SNAPSHOT</version>

        <packaging>pom</packaging>

       

        <modules>

          <module>simpleclient</module>

        </modules>

      </project>

       

      I keep getting this error as well:

       

       

       

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-c

      ompile) on project simpleclient: Compilation failure: Compilation failure:

      [ERROR] /C:/Users/Administrator/Maven Projects/test/simpleclient/src/main/java/org/teiid/quickstart/

      JDBCClient.java:[26,22] package org.teiid.jdbc does not exist

      [ERROR] /C:/Users/Administrator/Maven Projects/test/simpleclient/src/main/java/org/teiid/quickstart/

      JDBCClient.java:[27,22] package org.teiid.jdbc does not exist

      [ERROR] /C:/Users/Administrator/Maven Projects/test/simpleclient/src/main/java/org/teiid/quickstart/

      JDBCClient.java:[71,17] cannot find symbol

      [ERROR]   symbol:   class TeiidDataSource

      [ERROR]   location: class org.teiid.quickstart.JDBCClient

      [ERROR] /C:/Users/Administrator/Maven Projects/test/simpleclient/src/main/java/org/teiid/quickstart/

      JDBCClient.java:[71,42] cannot find symbol

      [ERROR]   symbol:   class TeiidDataSource

      [ERROR]   location: class org.teiid.quickstart.JDBCClient

      [ERROR] /C:/Users/Administrator/Maven Projects/test/simpleclient/src/main/java/org/teiid/quickstart/

      JDBCClient.java:[140,57] cannot find symbol

      [ERROR]   symbol:   class TeiidStatement

      [ERROR]   location: class org.teiid.quickstart.JDBCClient

      [ERROR] -> [Help 1]

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

      cles:

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

       

      All help is much appreciated

       

      Thanks,
      Shiloh

        • 1. Re: Teiid Quickstarts HELP! simpleclient
          Van Halbert Master

          Hi Shiloh,

           

          I use the link to the quickstart pom for simple client and I get:

           

          <parent>

                  <artifactId>teiid-quickstart-parent</artifactId>

                  <groupId>org.teiid.quickstart</groupId>

                  <version>4.0.0</version>

              </parent>

           

              <modelVersion>4.0.0</modelVersion>

              <artifactId>simpleclient</artifactId>

           

              <name>SimpleClient</name>

              <description>The simpleclient demonstrates making connections to Teiid through both, a Driver and a DataSource</description>

           

          It appears to have a parent reference to the pom.xml that is located in the root of quickstart.

           

          Not sure why you are seeing something different.

           

          Van