I have a question regarding HAR deployment on jboss.
I have classes in 'some.package' mapped by a hbm.xml file in the same dir.
I also have classes in 'someother.package' that are not mapped by any hbm.xml.
Methods in the mapped classes have references to classes that are not mapped. When deploying I get Exceptions like this:
Code:
java.lang.NoClassDefFoundError: someother/package/Test
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:248)
at org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:228)
The 'Test' class is only used by helper methods and are never used in any getter/setter that are mapped by the hbm.xml file.
Must all classes in the HAR by mapped? Or could it be anything else that I do wrong?
Thanks,
/Magnus