Joined: Sun Jan 23, 2005 7:59 am Posts: 1
|
|
I am using Hibernate 2.1.7 with Mysql 4.1 on Windows XP. I am using Tomcat 5.0.19 as the servlet container.
I get the following error
java.lang.MappingException: No persister found for java.lang.Boolean
Strangely I am not even using any boolean variable for persistence in my mapping files. I do not get the above error when I try and run the code without using servlet container via command line.
StackTrace:
net.sf.hibernate.MappingException: No persister for: java.lang.Boolean
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2686)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2693)
at net.sf.hibernate.impl.SessionImpl.isUnsaved(SessionImpl.java:1090)
at net.sf.hibernate.impl.SessionImpl.nullifyTransientReferences(SessionImpl.java:1036)
at net.sf.hibernate.impl.SessionImpl.nullifyTransientReferences(SessionImpl.java:1022)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:927)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:857)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(Session
I am using Sun JDK 1.4.2 for the application.
I tried to look in the previous posts, but couldn't get a suitable hint on the problem. It will be great if someone can point towards the problem.
Thanks
Regards
Sunil
|
|