Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-50

Possible bug in grid configuration stuff

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.1-incubating
    • 0.3
    • grid
    • None

    Description

      Followed Chris Mattmann's 13 steps for setting up XMLPS + grid to access a SQL Server, and ran into a problem between steps 12 and 13...I pointed grid to my JDBC jar file (jtds-1.2.5.jar), but upon trying step 13, I got no product and in checking $TOMCAT_HOME/log/catalina.out, I saw a "no suitable driver found" error:

      java.sql.SQLException: No suitable driver found for jdbc:jtds:sqlserver://[DATABASE]

      However, if i manually copy the driver jar into $TOMCAT_HOME/webapps/grid/WEB-INF/lib, works fine. Here are Chris's 13 steps, below. BTW, I'm not convinced that "assembly:assembly" is needed in step (6).

      1. svn co latest OODT from trunk
      2. mvn install from OODT/trunk top level
      3. cd grid
      4. mvn package war:war (builds target/web-grid-0.1-incubating.war)
      5. cd ../xmlps
      6. mvn package assembly:assembly (builds target/oodt-xmlps-0.1-incubating-with-dependencies.jar)
      7. create test area, e.g., /usr/local/xmlpstest and copy oodt-xmlps-0.1-incubating-with-dependencies.jar to it
      8. copy example conf files out of xmlps/src/main/conf (example.db.properties and example-ps.xml) into test area
      9. modify examples for your database (I used a local postgres instance and I created a simple mapping file with 2 fields, one dynamic and one constant that queried 1 database)
      10. copy WAR file to $TOMCAT_HOME/webapps/grid.war
      11. visit http://localhost:8080/grid/
      12. Configure web-grid after logging in to use XMLPS handler, to reference your JDBC jar file (that you copy into /usr/local/xmlpstest), and to reference XMLPS jar file in /usr/local/xmlpstest
      13. try a query at: http://localhost:8080/grid/prod?q=

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            davekale David Kale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 672h
                672h
                Remaining:
                Remaining Estimate - 672h
                672h
                Logged:
                Time Spent - Not Specified
                Not Specified