jfinal-undertow 下开发

有没有不删servlet的办法?

Starting Undertow Server localhost:80
Exception in thread "main" java.lang.ExceptionInInitializerError
at io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:960)
at io.undertow.servlet.spec.ServletContextImpl.getSessionCookieConfig(ServletContextImpl.java:676)
at io.undertow.servlet.core.DeploymentManagerImpl.handleDeploymentSessionConfig(DeploymentManagerImpl.java:640)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:178)
at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:246)
at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:146)
at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:88)
at com.sohnny.MainConfig.main(MainConfig.java:133)
Caused by: java.lang.SecurityException: class "javax.servlet.http.HttpSessionIdListener"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at io.undertow.servlet.core.ApplicationListeners.<clinit>(ApplicationListeners.java:62)
... 8 more


评论区

JFinal

2018-12-13 21:52

删掉 servlet 的那个依赖,与 jfinal undertow 自带的 servlet 依赖有冲突,不是让你删 servlet 代码

Sohnny

2018-12-13 21:59

@JFinal 嗯 ,试了下是jetty的依赖没删掉, 删了就好了...

JFinal

2018-12-13 22:03

@Sohnny 删除 Jetty 依赖,在文档中有强调

热门反馈

扫码入社