且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

小门和嵌入式码头-classNotFoundException

更新时间:2023-01-07 08:13:39

1-更新为码头7或码头8,从外观上您正在使用码头6,并且在耳后变得越来越白...此时正在使用jetty-9(如果要使用servlet 2.5,请使用jetty7,如果要使用servlet 3.0,请使用jetty8)

1 - update to jetty 7 or jetty 8, your using jetty 6 by the looks of it and that is getting quite gray behind the ears...we are working on jetty-9 at this point (jetty7 if you want servlet 2.5 and jetty8 if you want servlet 3.0 support)

2-一个webapp在隔离的类加载器中执行,因此您看到的是它正常运行,您需要在要创建的webapp上下文中设置父类加载器优先级,或者使用服务器/系统机制来公开这些org.slf4j类.

2 - a webapp executes in an isolated classloader so what you are seeing is that working correctly, you need to set the parent class loader priority on the webapp context that you are creating, or use the server/system mechanism to expose just those org.slf4j classes.

请参见 http://wiki.eclipse.org/Jetty/Reference/Jetty_Classloading 以获得更多有关码头上课的信息.

See http://wiki.eclipse.org/Jetty/Reference/Jetty_Classloading for more information on classloading in jetty.