I am attempting to depoloy the Spring, JSF, Hibernate My Petstore app from the latest edition of JDJ and I get this error outlined below. When using the sql editor it is clear the table and 5 rows of data exists yet I get the error and a "bad sql grammer error. Can anyone help? :cry:
INFO: Server startup in 12102 ms
13:37:46,637 DEBUG ApplicationBean:? - ApplicationBean is created
13:37:46,684 INFO ServiceLocatorBean:? - Service locator bean is initialized
13:37:46,694 DEBUG ApplicationBean:? - service locator is set
13:37:46,696 DEBUG ApplicationBean:? - Initializes ApplicationBean
13:37:46,896 WARN JDBCExceptionReporter:38 - SQL Error: 1146, SQLState: S1000
13:37:46,897 ERROR JDBCExceptionReporter:46 - General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
13:37:46,903 WARN JDBCExceptionReporter:38 - SQL Error: 1146, SQLState: S1000
13:37:46,905 ERROR JDBCExceptionReporter:46 - General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
13:37:46,917 ERROR JDBCExceptionReporter:38 - Could not execute query
java.sql.SQLException: General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:1825)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:10 20)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :1109)
at com.mysql.jdbc.Connection.execSQL(Connection.java: 2030)
at com.mysql.jdbc.PreparedStatement.executeQuery(Prep aredStatement.java:1563)
at org.apache.commons.dbcp.DelegatingPreparedStatemen t.executeQuery(DelegatingPreparedStatement.java:20 5)
at net.sf.hibernate.impl.BatcherImpl.getResultSet(Bat cherImpl.java:83)
13:37:46,924 WARN SQLErrorCodeSQLExceptionTranslator:176 - Translating SQLException with SQLState 'S1000' and errorCode '1146' and message [General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"]; SQL was [null] for task [HibernateAccessor]
13:37:46,926 ERROR CatalogServiceImpl:? - Could not get category list org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [null] in task 'HibernateAccessor'; nested exception is java.sql.SQLException: General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [null] in task 'HibernateAccessor'; nested exception is java.sql.SQLException: General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
java.sql.SQLException: General error, message from server: "Table 'webifyit_2.CATEGORY' doesn't exist"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:1825)


Reply With Quote