Hello Alex,

You need to use the jakarta classifier in the dependency definition:

        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-core</artifactId>
            <classifier>jakarta</classifier>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-web</artifactId>
            <classifier>jakarta</classifier>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
<groupId>org.apache.shiro</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

The shiro-all artifact should not be used anymore as it's deprecated and not contains jakarta.

You can find a sample in the project source code:

https://github.com/apache/shiro/tree/main/samples/web-jakarta

regards,

François

On 01/02/2023 10:51, Alex Orlov via user wrote:
Hello,
As I understand it is possible to use Shiro 1.11.0 with jakarta.servlet.
To use Shiro (with JPMS!) I have to the following maven dependency:
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-all</artifactId>
                <version>1.11.0</version>
<dependency>
However, it seems to use javax.servlet namespace. Could anyone say how I can use Shiro with jakarta.sevlet?
--
Best regards, Alex Orlov

Reply via email to