house0128 commented on issue #891:
URL: https://github.com/apache/shiro/issues/891#issuecomment-1586884119

   @lprimak  Does shiro only support Jakarta 9+ but not 10?
   I use  tomcat-migraion-tool to rebuild shiro 
jar(https://tomcat.apache.org/download-migration.cgi),
   solved the compilation problem of my project, but there is a runtime error.
   
   ```
   2023-06-12 
16:01:51.512[][ERROR][http-nio-8081-exec-9][org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]:175]Servlet.service()
 for servlet [dispatcherServlet] in context with path [] threw exception 
[Servlet execution threw an exception] with root 
causejava.lang.ClassNotFoundException: jakarta.servlet.http.HttpSessionContext
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at 
org.apache.shiro.web.servlet.ShiroHttpServletRequest.getSession(ShiroHttpServletRequest.java:159)
        at org.springframework.web.util.WebUtils.getSessionId(WebUtils.java:360)
        at 
org.springframework.web.servlet.FrameworkServlet.publishRequestHandledEvent(FrameworkServlet.java:1149)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1028)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:914)
   ```
   
   I check the code. HttpSessionContext has been removed by Jakarta Servlet6.0 
(jakarta ee10), so an error is reported.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to