ClassCastException when casting to the same class

前端 未结 11 947
小蘑菇
小蘑菇 2020-11-22 07:09

I have 2 different Java projects, one has 2 classes: dynamicbeans.DynamicBean2 and dynamic.Validator.

On the other project, I load both of

11条回答
  •  情深已故
    2020-11-22 07:59

    I had the same issue, and I finally found a workaround on java.net :

    Copy all org.eclipse.persistence jar files from glassfish4/glassfish/modules to WEB-INF/lib. Then go in your glassfish-web.xml, and set class-delegate to false.

    Worked for me !

提交回复
热议问题