I'm using an enum for a property called type (of type GeoType). My application works correctly on normal tomcat startup, but whenever tomcat is about to republish, the following error happens. I traced the code to the source of TopLink essentials, and to my surprise, both expected and set parameters where of type GeoPos$GeoType. I think this can be a class loader problem. Any hint?
java.lang.IllegalArgumentException: You have attempted to set a value of type class mypackage.model.GeoPos$GeoType for parameter type with expected type of class mypackage.model.GeoPos$GeoType from query string SELECT pos FROM GeoPos pos WHERE pos.type = :type .