Menu

Mapping stops at first hbm.xml file

Help
Anonymous
2003-10-09
2003-11-20
  • Anonymous

    Anonymous - 2003-10-09

    After configuring a connection to a database, the connection starts running over the hbm.xml files.  However, the mapping stops at the first xml file, and no error messages are shown in the log:

    Ignoring resources in Project output: /myproject/classes
    Adding Project Classpath file:/c:/was5repository/myproject/classes/
    Adding Mapping - c:/was5repository/myproject/DataBean.hbm.xml

    What is going wrong here?

     
    • Daniel Bradby

      Daniel Bradby - 2003-10-09

      Hmm .... anything in <workspace>/.metadatal/.log?

      Do the mapping files work if you configure them in your app?

      Does the plugin list all the mapping files when you select the project?

      Hmmm

       
    • Markus Schulze

      Markus Schulze - 2003-11-20

      Starting eclipse with "java -cp startup.jar org.eclipse.core.launcher.Main" and then trying to connect had the effect described above: the log stopped after the first hibernate-mapping file.

      In stdout I saw that some hibernate class complained about a ClassNotFound:   ..org.apache..Log4j.

      I then switched from the hibernator nolib-distribution to the lib-distribution, and then the connect worked.  Might be an issue with the log4j-jar.  I had the log4j-1.2.6.jar in the hibernator lib directory with the nolib-distrib. The lib-distrib of hibernator provides log4.jar with version 1.2.7 of log4j.

       
    • John Meredith

      John Meredith - 2003-11-20

      I'm getting the same problem with the lib-distribution.

      - The plugin lists all the mapping files on project selection
      - .metadata/.log show nothing
      - and I'm not getting the classNotFound complaint as indicated above.

        - John

       
      • Markus Schulze

        Markus Schulze - 2003-11-20

        Well, I only got the ClassNotFound Exception when
        starting eclipse in a dos-box on win 2000.

        Try to use a batch file in your eclipse install dir like this:

        set JAVA_HOME=C:\jdk1.4
        %JAVA_HOME%\bin\java -cp startup.jar org.eclipse.core.launcher.Main >eclipse_stdout.log 2>&1

        then check eclipse_stdout.log for messages.

        good luck...

        Markus

         

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.