Originally posted by Paul Sturrock:
Is Skill.hbm.xml on the classpath? Is it configured in hibernate.cfg.xml?
Originally posted by Paul Sturrock:
Hmm. If both these things are true you won't see this error. Best to double check I think. Look for spelling mistakes in your mapping files, make sure the hbm.xml files are in the packages you expect them to be and they are packaged with your classes correctly.
Also remember, your SessionFactory must be configured somewhere. If you are using hibernate.cfg.xml to do this every mapping file must by included. If your mapping files (and classes) are in the default package the two lines your posted should be fine.
Do I need anything in Skill.hbm to match this. I want it to be unidirectional.
Manju Viswam
SEVERE: Error parsing XML: XML InputStream(5) Element type "hibernate-mapping"
s not declared
Manju Viswam
Alongside,this new javarancher, apologise for replying to Mr.Kazza's post.I thought this is a conversation thread
Originally posted by kumari Jain:
...if you look ...few lines below this exception there is another exception being thrown basically NoClassDefFoundError,this could be that hibernate3.jar is not accessible.
regards,
kumari
Originally posted by Rich Youngkin:
Another cause of the NoClassDefFoundError/ClassNotFoundException is that the class that is referenced by the <class name=Foo ...> attribute in the hbm file can't be found in the classpath. The class name could be misspelled (e.g., foo vs. Foo) or missing altogether (which was the cause in my case).
Cheers,
Rich
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |