Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:56:03+00:00 2026-06-15T05:56:03+00:00

I run a Grails app successfully on Windows localhost. Then I deploy the war

  • 0

I run a Grails app successfully on Windows localhost. Then I deploy the war onto Linux. The whole app works correctly except Hibernate (I believe) has no wish for creating any table there:

org.springframework.dao.InvalidDataAccessResourceUsageException:
   could not execute query;
   ...
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
   Table 'xxx.yyy' doesn't exist
   ...
(no other errors noticed)

Once I manually create all tables, the app works fine.

The question is how to make the tables auto created? Just as it should be.

Local MySQL:

MySQL Ver 14.14 Distrib 5.5.28, for Win64 (x86)

The server’s MySQL:

mysql  Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2

File /etc/tomcat7/context.xml:

    <Resource name="jdbc/XXX" auth="Container"
          type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
          url="jdbc:mysql://localhost:3306/xxx"
          username="xxx" password="xxx" maxActive="20" maxIdle="10"
          removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
          maxWait="-1"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:56:04+00:00Added an answer on June 15, 2026 at 5:56 am

    Set the hibernate property hbm2ddl.auto to ‘create’ in you’re hibernate configuration file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I generate the war in my grails app via right-click / run grails
I'm testing my application as grails run-app. I have read How to remove app
My grails app will not decode request parameters correctly. In config.groovy: grails.views.gsp.encoding = UTF-8
when I tried to run grails -Dgrails.env=local run-app , I got the below error
When I deploy my grails generated war file to jetty I get the following
When I 'grails run-app' each edit of a controller seems to give me a
So running grails run-app and my app runs as intended, but when I grails
When I run my Grails app from my IDE, I want the output to
I am trying to run grails on google app engine using JDO, but I
I am trying to run a Grails app at cloudfoundry.com, but it is returning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.