Announcement Announcement Module
Collapse
No announcement yet.
Problem with Part 4 of the Spring-MVC-step-by-step tutorial Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Part 4 of the Spring-MVC-step-by-step tutorial

    Hello every one,
    I am a newbie to spring. I was trying out tutorial that comes with the spring framework -1.2.6 and ran into trouble with the part that has to do with implementing database persistence.

    On executing tha ant tasks createTables and loadData, this is what i got

    C:\Projects\springapp2>ant createTables
    Buildfile: build.xml

    createTables:
    [echo] CREATE TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
    [sql] Executing commands
    [sql] 2 of 2 SQL statements executed successfully

    BUILD SUCCESSFUL





    C:\Projects\springapp2>ant loadData
    Buildfile: build.xml

    loadData:
    [echo] LOAD DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
    [sql] Executing commands
    [sql] Failed to execute: INSERT INTO products (id, description, price) VA
    LUES(1, 'Lamp', 5.78)
    [sql] java.sql.SQLException: Table not found in statement [ INSERT INTO pr
    oducts]
    [sql] Failed to execute: INSERT INTO products (id, description, price) VA
    LUES(2, 'Table', 75.29)
    [sql] java.sql.SQLException: Table not found in statement [ INSERT INTO pr
    oducts]
    [sql] Failed to execute: INSERT INTO products (id, description, price) VA
    LUES(3, 'Chair', 22.81)
    [sql] java.sql.SQLException: Table not found in statement [ INSERT INTO pr
    oducts]
    [sql] 2 of 5 SQL statements executed successfully

    Please what could I be doing wrong?
Working...
X