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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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
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.
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
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