max wrote:
it works like any other classpath....
if the console needs to resolve "org/your/path/to/res.hbm.xml" then that must be reachable from the root of the classpath - like with any normal classpath, no magic here.
Well, the 'root of the classpath' then seems to be pretty much all of Eclipse's workspace because I have access to just about any folder under there to add to the Classpath, when I click "Add..."
I wanted to clarify whether 'at the root of the classpath' meant simply the same as 'in the classpath'.
The mapping file says
<mapping resource="folder1/folder2/ThisMap.hbm.xml" />
The classpath contains "/<project_name>/folder1/folder2/". positive.
There is no way to add the XML file itself; so I believe having the folder there is enough.
Or is the wizard being confused by the fact that there's no "/project_name/" part in the mapping file ?
After all, if I am allowed to add "/project1/folder1/" and "/project2/folder1" to the classpath, how would the wizard resolve the following:
<mapping resource="folder1/senior.hbm.xml"> ?
And why is the wizard unable to parse the XML file when I comment out the <mapping> element that it is so allergic to?
I've double-checked that the XML is valid, well-formed... some adjectives like that...
Rico.