Menu

Sum of All Errors

Help
Matthew Ho
2003-08-02
2003-09-11
  • Matthew Ho

    Matthew Ho - 2003-08-02

    Hi all,

          Following the movie "Sum of All Fears", and here I am producing "Sum of All Errors" of hibernator0.9.x.  Having spent singificant amount of time to figure out the "connection" problem and the "ClassNotFound" problem.  here is my summary:

    First, If you are connecting to MSSQL 2000.
    One thing you MUST do manually is to combine the three jdbc driver jars into one jar. 

    Secondly, one concept to grasp is that Hibernator does not look at your Eclipse Project's classpath. 
    Remove any Hibernate and Hibernator related jars and place them under 
    <ECLIPSE-INSTALLDIR>\plugins\net.sf.hibernator\ And since it is using common-logging.jar, it also requires you to place the log4j-1.2.8.jar there.

    If you do all of the above, you should at least be able to get a connection.

    And now, here is how the barter system work.
    I have a question need to be answer as well...
    When I click "Connect" on the "Connection View', I get the following errors in the "Log View" ...
    org.dom4j.DocumentException: Validation not supported for XMLReader: org.dom4j.io.aelfred.SAXDriver@1e5cf0 Nested exception: http://xml.org/sax/features/validation Nested exception: Validation not supported for XMLReader: org.dom4j.io.aelfred.SAXDriver@1e5cf0 Nested exception: http://xml.org/sax/features/validation
        at org.dom4j.io.SAXReader.read(SAXReader.java:342)
        at org.dom4j.io.SAXReader.read(SAXReader.java:236)
        at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:152)
        at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:155)

    What could went wrong?  Please advice.

    Thanks!

     
    • Daniel Bradby

      Daniel Bradby - 2003-09-11

      Hibernator does (or is meant to) look in your projects classpath for depedants jars and other projects. Maybe we are missing something.

      Hibernator also comes in a full version with the libs already.

      Your XML validation problem I have seen before and I think the answer is somewhere in the Hibernate FAQ.

      Are you using WSAD or Eclipse? Because I think WSAD puts some confusing XML files on the classpath

      Daniel

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.