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 3991586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:38:02+00:00 2026-05-20T06:38:02+00:00

i am using tag for my hsql schema creation. my spring.xml file looks like

  • 0

i am using tag for my hsql schema creation. my spring.xml file looks like this:

<jdbc:embedded-database id="dataSource" type="HSQL">
    <jdbc:script location="classpath:schema.sql" />
    <!-- <jdbc:script location="classpath:test-data.sql" /> -->
</jdbc:embedded-database>


<bean id="adapterDataSource" class="org.apache.commons.dbcp.BasicDataSource"
    destroy-method="close" depends-on="dataSource">
    <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
    <property name="url" value="jdbc:hsqldb:file:data/db/lmex_adapter_moodle_db" />
    <property name="username" value="SA" />
    <property name="password" value="" />
</bean>

my sql schema file is

create schema lmex_adapter_moodle_db AUTHORIZATION DBA;
set schema lmex_adapter_moodle_db;

drop table moodle_login_credentials if exists;


CREATE TABLE moodle_login_credentials (
  moodle_login_credentials_id varchar(40) NOT NULL,
  moodle_username varchar(45) NOT NULL,
  moodle_password varchar(45) NOT NULL,
  host_name varchar(45) DEFAULT NULL,
  port_number varchar(45) DEFAULT NULL,
  database_name varchar(45) DEFAULT NULL
)

while i run my application it runs smoothly with no exception, but when i click submit button and action goes on controller which has a query
select * from moodle_login_credentials give me a following exception:

java.sql.SQLException: Table not found
in statement [select * from
moodle_login_credentials]

so how i can check is my schema file has been created successfully if yes then why i am getting this and how i can resolove this exception.

please help me to resolve this problem

Thank you

  • 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-05-20T06:38:02+00:00Added an answer on May 20, 2026 at 6:38 am

    Since you are using file-based HSQL, you can just take a look at the files generated:

    // this file contaions all executed DDL statements
    data/db/lmex_adapter_moodle_db.script 
    
    // this file contaions all executed queries
    data/db/lmex_adapter_moodle_db.log 
    

    (paths are relative to the execution directory)

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

Sidebar

Related Questions

how to parse HTML tag using XML parsing I am parsing XML file but
I would like to clone a tag using Javascript (without using any external frameworks
I would like to know what is the best practice between using bind tag
I have defined a GWT module that includes an external javascript file using tag.
I'm using link tag to open a pdf file. when clicking that link, the
I have configured spring security core plugin using requestmap table inside the database.. Now
We can get a view with a specific tag using viewWithTag method, like [sampleView
This is my first time using map tag in html. I assume getting the
I want to change the href of tag using jquery. This is the html
I'm trying to add some additional key/value pairs to an NSMutableDictionary, using: Tag *tag1

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.