Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0 Beta 9
-
None
-
Windows
Description
if into %MIGRATION_HOME%/lib there are more then one jar, the script migration.cmd raise this exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ibatis/migration/Migrator
Caused by: java.lang.ClassNotFoundException: org.apache.ibatis.migration.Migrator
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.apache.ibatis.migration.Migrator. Program will exit.
The problem is that the loop into migrate.cmd script do not collects all jar into the 'lib' folder.