-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Gary,
On 7/22/19 11:03, Hua, Gary - Saint Louis, MO - Contractor wrote: > All: > > I deployed a web application to the Tomcat 9.0.13 server, under the > WEB-INF/lib there are Hibernate related jar files. When I start the > server, it give me errors in many Hibernate mapping classes: > > 1991 [main] ERROR proxy.BasicLazyInitializer - CGLIB Enhancement > failed: com.usps.nom.tops.model.impl.ComputedHardCloseoutImpl > java.lang.NoClassDefFoundError: Could not initialize class > net.sf.cglib.proxy.Enhancer at > org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInit ializer.java:116) > > at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory. java:41) > > The original Cglib version is cglib-2.1.jar, and I try the latest > cglib-3.2.12.jar, the original error is gone but a different error > show up: > > 1619 [main] ERROR proxy.BasicLazyInitializer - CGLIB Enhancement > failed: com.usps.nom.tops.model.transportation.AplDispatch > java.lang.NoClassDefFoundError: > net.sf.cglib.core.AbstractClassGenerator at > org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInit ializer.java:116) > > at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory. java:41) > at > org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTup lizer.java:161) > > > > I have tried different versions of Cglib jars file: > > cglib-2.1.jar, cglib-2.1_3.jar, cglib-3.2.1.jar, cglib-3.2.12.jar, > cglib-nodep-2.1.jar, cglib-nodep-3.2.12.jar > > But they always give me one of the above errors. > > The other Hibernate related jars under WEB-INF/lib are: > ehcache-1.1.jar, ehcache-core-2.4.8.jar, hibernate3.jar(3.1.0) > > If I start the Tomcat server locally in my Eclipse project , there > is no such errors. Can anybody help? Thanks Those are lots of different arbitrary versions of the same library. Do you know which one your application actually requires? - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl02AtEACgkQHPApP6U8 pFiFNA//YwVQFO76x4PzASXTxOFNWsT8e/PgUEGPqawSPyPMjGvxgXiptILR7PlQ CfwuzUz3s7lTI7voahzH7MF4lK1jTMjVYGwgXOeOSB0YwqaY78/TW2T0hgCK1MpZ OMzKI4F8laLCjordQnv8z+wN4ckXO9eISHoPv210MtIjUuStJzBv1Vcnpcb1BcHs lXw2ilMhF1PgDf3sSnRBB6+ANBSroy4yBRo4sQV+0hdF2rnhAn/meZdze/HVPWMQ yKfNM4VcoG4EVydcs39qPAI+83ofACgQL7STF4iWKguNDJJfYk9gA9UkVXUD7YHc uWjfEyd9qThV5q6+LdFygRCzusgXSS2MuU0L43Jl9yTO88bqKJ3nhO9g95g3g247 0oEiH/DmDNK7YWIlgUA1BJWfCbwJ/9RdTdpZivoPJpPYec1cg3dj1vWqTWBhRzeX N29zhEvIcKaG+daHgkxvujfgRUWB8gCCsLU7szROM2e8A+3BWPA0XHjXm3fAsNnh KLnGT7RlXJD30UM8E3okbfu2sWWl59P0cjVvXNsgKgFriiAk2No83ROUQIBGVFsQ sVmtsjnga35QlPtAPa7yDdvZsYNlQRsr+ggbFu8aopHJ9MCFUVR9z3cU2Rne+NKH wZ4JHm2dRHxgCONWwqnGyPFGf5/6eevqkJsuIg4XKu/YDyFcxns= =5U3Y -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org