tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Dubacher (JIRA)" <>
Subject [jira] [Created] (TOMEE-1947) Using Class within sqltool-2.3.2.jar results in ClassNotFoundException
Date Tue, 27 Sep 2016 11:41:20 GMT
Marco Dubacher created TOMEE-1947:

             Summary: Using Class within sqltool-2.3.2.jar results in ClassNotFoundException
                 Key: TOMEE-1947
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 1.7.1
            Reporter: Marco Dubacher

We want to use sqltool-2.3.2.jar which is provided by the hsqldb guys inorder to pump some
sql-scripts into the hsqldb.

Deploying the sqltool-2.3.2.jar as part of our war-file results in a ClassNotFoundException
for the Class "org.hsqldb.cmdline.SqlFile" which is stored within the sqltool-2.3.2.jar.

The ClassNotFoundException is caused by the following code-lines which are part of the shouldSkip()-Method
within the Class URLClassLoaderFirst.

if ((org.startsWith("hsqldb.")) && (SKIP_HSQLDB)) {
    return true;

The problem is that the sqltool-2.3.2.jar contains the same package hierarchy org.hsqldb...
as the hsqldb.jar.

# Remove hsqldb-2.3.2.jar from TomEE lib folder.
# Set the property org.hsqldb.lib.HsqlTimer.skip = false

This message was sent by Atlassian JIRA

View raw message