MappingException « HBM « JPA Q&A

2. org.hibernate.MappingException: Resource: *.hbm.xml

org.hibernate.MappingException: Resource: FileToSave.hbm.xml not found at org.hibernate.cfg.Configuration.addResource( at org.hibernate.cfg.Configuration.parseMappingElement( at org.hibernate.cfg.Configuration.parseSessionFactory( at org.hibernate.cfg.Configuration.doConfigure( at org.hibernate.cfg.Configuration.doConfigure( at org.hibernate.cfg.Configuration.configure( at org.hibernate.console.ConsoleConfiguration$1.execute( at org.hibernate.console.execution.DefaultExecutionContext.execute( at org.hibernate.console.ConsoleConfiguration.buildWith( at at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren( at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren( at org.eclipse.ui.progress.DeferredTreeContentManager$ at ------- I am using Hibernate Configuration of Eclipse plugin and this is the error I received. This is my hibernate file:

3. org.hibernate.MappingException: Resource: .hbm.xml not found

No, sorry that was some test code, there should be no .\ in the front. Basically when I use my created .jar file in a test application and I include the Hibernate.cfg.xml in the source folder of the test app then the test app can find my classes in the jar file and hibernate can find its Hibernate.cfg.xml but Hibernate can ...