While upgrading from hibernate2 to 3.6. I removed hibernate2 version jars but while starting server getting below exception.
Env : Java 1.7, Jboss, EJB3
Code : Class I18NDescriptionType implements CompositeUserType{ @Override public Type[] getPropertyTypes() { return new Type[]{Hibernate.STRING}; } }
java.lang.NoSuchFieldError: STRING at com.jda.portfolio.infrastructure.server.database.types.I18NDescriptionType.getPropertyTypes(I18NDescriptionType.java:43) at org.hibernate.type.CompositeCustomType.getColumnSpan(CompositeCustomType.java:160) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at org.hibernate.mapping.Collection.validate(Collection.java:278) at org.hibernate.mapping.IndexedCollection.validate(IndexedCollection.java:67) at org.hibernate.cfg.Configuration.validate(Configuration.java:1106) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
|