Classes in linked folders are not found

Description

"Hibernate Configurations" widget shows class not found for classes that are linked to an external directory.
By External directory I mean a directory that is set as build location by using the "Link to folder in the file system" under Project Properties->"Java Build Path">"Default output folder">"Browse">"Create new folder">"Advanced"

I can pick this path in the "Hibernate Console Configuration"->"Add JAR/Dir", but the class is not picked up.

When I move the build directory to a directory that is physically located inside the Eclipse project tree it works.

MARK

Environment

Eclipse 3.1.1, JDK 1.4

Activity

Show:

Koen AersDecember 5, 2024 at 1:25 PM

I am closing this issue as the last relevant update was in 2008. Please feel free to reopen if you feel that this is still relevant.

Dmitry GeraskovMarch 4, 2008 at 4:28 PM

Mark, I tried to do the same things you spoke about.

1) Create 2 projects: consoleProject, classesProject.

2) in classesProject create class mapping\A.java and mapping\A.hbm.xml (with mapping)
3) for classesProject : Project Properties->"Java Build Path">"Default output folder">"Browse">"Create new folder">"Advanced"
4) type d:\temp and press OK while Properties wizard not closed.
=> if project not builded automatically build it
=> observe that mapping\A.java and mapping\A.hbm.xml in "d:\temp" folder.
(I didn't see nothing there at first time and repeated step 2 and 3 with other folder names.)

5) for consoleProject: create new Console Configuration "configForConsoleProject"
6) add your DB driver to classpath
7) add <mapping resource ="mapping\A.hbm.xml"> to hibernate.cfg.xml (or as mapping when create console configuration)
8) edit "configForConsoleProject": >Classpath>Advanced-> 'add external folder" and add "d:\temp " to classpath.
9) rebuild "configForConsoleProject"
==> now it should work without mapping exception.

BTW I didn't understand why you have error there, so please answer if you still have it.

Dmitry.

Max Rydahl AndersenNovember 27, 2007 at 7:32 PM

slip

Max Rydahl AndersenAugust 3, 2007 at 4:01 PM

slip to next

Won't Fix

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Dmitry Geraskov
Koen Aers
Mark
Max Rydahl Andersen

Components

Fix versions

Affects versions

Priority

Created May 16, 2006 at 6:45 AM
Updated December 5, 2024 at 1:25 PM
Resolved December 5, 2024 at 1:25 PM