#4 Access import step 7/9: Create derby db in '<DB>/Database'.

v0.38
closed-fixed
7
2009-07-17
2009-07-15
Anonymous
No

Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:151)
at gamebase.db.Db.init(Db.java:68)
at gamebase.db.Db.createDb(Db.java:927)
at gamebase.ToolBox.importAccessToDatabase(ToolBox.java:135)
at gamebase.ToolBox.main(ToolBox.java:77)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 5 more

*** DEBUG INFORMATION START ***
OS: Linux on i386
JAVA: Sun Microsystems Inc. Version 1.6.0_0 Class-Version 50.0
PROGRAM: jGameBase 0.38DEV2009-06-27_07:30
ERROR: java.lang.ExceptionInInitializerError
at gamebase.db.Db.init(Db.java:97)
at gamebase.db.Db.createDb(Db.java:927)
at gamebase.ToolBox.importAccessToDatabase(ToolBox.java:135)
at gamebase.ToolBox.main(ToolBox.java:77)
*** DEBUG INFORMATION END ***

No problems with the previous release!

Discussion

  • F. Gerbig

    F. Gerbig - 2009-07-17
    • labels: --> database import
    • milestone: --> v0.38
    • priority: 5 --> 7
    • assigned_to: nobody --> fgerbig
    • status: open --> closed-fixed
     
  • F. Gerbig

    F. Gerbig - 2009-07-17

    I forgot to update the classpath in "jgbToolbox.sh" ;-(, simply copy the classpath from "jGamebase.sh". You should get a new "jgbToolbox.sh" which looks like this (sorry for the inconvenience):

    #!/bin/bash

    # start programm and pass any parameters
    java -classpath .:gamebase:lib/antlr-2.7.6.jar:lib/commons-collections-3.1.jar:lib/commons-logging-1.0.4.jar:lib/derby.jar:lib/dom4j-1.6.1.jar:lib/hibernate3.jar:lib/javassist-3.4.GA.jar:lib/jta-1.1.jar:lib/log4j-1.2.15.jar:lib/slf4j-api-1.5.2.jar:lib/slf4j-log4j12-1.5.2.jar "gamebase.ToolBox" $*

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks