使用的jfinal版本 3.1,jdk为1.8,在controller层注入services实例的代码如下:
private IAuthService adminService = Aop.get(AuthServiceImpl.class);
在windows的tomcat下运行没问题,但放服务器linux下的tomcat运行的时候,项目可以正常启动,但是访问就会报异常,信息如下:
02-Dec-2019 15:46:33.932 INFO [Finalizer] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [net.sf.cglib.proxy.MethodProxy$FastClassInfo]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [net.sf.cglib.proxy.MethodProxy$FastClassInfo]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1354) at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1340) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1205) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166) at net.sf.cglib.proxy.MethodProxy.init(MethodProxy.java:73) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:226) at com.jfinal.aop.Callback.intercept(Callback.java:74) at com.qlm.service.impl.AuthServiceImpl$$EnhancerByCGLIB$$3c9b83af.finalize(<generated>) at java.lang.System$2.invokeFinalize(System.java:1270) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98) at java.lang.ref.Finalizer.access$100(Finalizer.java:34) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
@JFinal,波哥,这是什么原因呢
项目:JFinal