What'd the db_class of com.h2Engine

54 views
Skip to first unread message

Elena Aralla

unread,
Apr 21, 2022, 3:28:01 AM4/21/22
to H2 Database
Hello,

I've this error when I try to configure migration from CommandBox with cfmigration:

----
ERROR (5.4.2+00453)

lucee.commons.lang.ClassException: In the OSGi Bundle with the name [com.h2database] and the version [2.1.212] was no class with name [org.h2] found. org.h2

  caused by: java.lang.RuntimeException

    caused by: lucee.commons.lang.ClassException

---

It seems that 'org.h2' was not found, so, whats the db_class name in com.h2database bundle? 

I searched the documentation, but to no avail :(

This are my configuration in .env file

# Database Information
DB_BUNDLENAME=com.h2database
DB_CLASS=org.h2
DB_DRIVER=org.h2.Driver
DB_BUNDLEVERSION=2.1.212
DB_CONNECTIONSTRING=jdbc:h2:file:/Users/elena/ColdBox/baseApp/database/baseAppDB;MODE=MySQL;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE;
DB_SCHEMA=INFORMATION_SCHEMA
DB_DATABASE=baseAppDB
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=

thank you, 

elena



Evgenij Ryazanov

unread,
Apr 21, 2022, 3:42:05 AM4/21/22
to H2 Database
Hello!

It should be
DB_CLASS=org.h2.Driver

And I think you shouldn't specify INFORMATION_SCHEMA in DB_SCHEMA parameter, this is a system schema, it isn't suitable to create your own objects in it.

Elena Aralla

unread,
Apr 21, 2022, 4:28:45 AM4/21/22
to H2 Database
I've tried... no success :(

ERROR (5.4.2+00453)

lucee.commons.lang.ClassException: In the OSGi Bundle with the name [com.h2database] and the version [2.1.212] was no class with name [org.h2.Driver] found. org.h2.Driver

  caused by: java.lang.RuntimeException

  lucee.commons.lang.ClassException: In the OSGi Bundle with the name [com.h2database] and the version [2.1.212] was no class with name [org.h2.Driver] found. org.h2.Driver

    caused by: lucee.commons.lang.ClassException

    In the OSGi Bundle with the name [com.h2database] and the version [2.1.212] was no class with name [org.h2.Driver] found. org.h2.Driver


# Database Information
DB_BUNDLENAME=com.h2database
DB_CLASS=org.h2.Driver


DB_DRIVER=org.h2.Driver
DB_BUNDLEVERSION=2.1.212
DB_CONNECTIONSTRING=jdbc:h2:file:/Users/elena/ColdBox/baseApp/database/baseAppDB;MODE=MySQL;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE;

DB_SCHEMA=baseApp_SHEMA


DB_DATABASE=baseAppDB
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=

tahnk you!

Reply all
Reply to author
Forward
0 new messages