You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shiro.apache.org by "whikloj (via GitHub)" <gi...@apache.org> on 2024/03/03 20:27:56 UTC

[I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

whikloj opened a new issue, #1339:
URL: https://github.com/apache/shiro/issues/1339

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Question
   
   I am trying to update code for [Fedora Commons](https://github.com/fcrepo/fcrepo/tree/feature/fcrepo7) from Java 11 to Java 17 and make the switch to Jakarta EE at the same time. I am mostly there (I think) but have struck against an issue when loading the Shiro Filter we run in front of our Jersey system. 
   
   Ours is a little odd in that we do not integrate Shiro to the application, the authz is separate.
   
   When loading a ShiroFilter in our integration tests I had to first include `javax.servlet-api` or I hit `java.lang.NoClassDefFoundError` errors looking for `javax.servlet.Filter`. 
   
   After adding that dependency I now hit this error constructing the bean.
   
   ```
   java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter': FactoryBean threw exception on object creation
   	at org.glassfish.grizzly.servlet.WebappContext.initFilters(WebappContext.java:1835)
   	at org.glassfish.grizzly.servlet.WebappContext.deploy(WebappContext.java:279)
   	at org.fcrepo.http.commons.test.util.ContainerWrapper.start(ContainerWrapper.java:138)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457)
   	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:401)
   	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:219)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:422)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
   	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
   	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
   	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:959)
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
   	at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:221)
   	at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:110)
   	at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:212)
   	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:225)
   	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:152)
   	at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130)
   	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:142)
   	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:98)
   	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
   	at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:163)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$10(ClassBasedTestDescriptor.java:378)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:383)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$11(ClassBasedTestDescriptor.java:378)
   	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
   	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
   	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
   	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
   	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
   	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
   	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
   	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
   	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:377)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$6(ClassBasedTestDescriptor.java:290)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:289)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$4(ClassBasedTestDescriptor.java:279)
   	at java.base/java.util.Optional.orElseGet(Optional.java:364)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$5(ClassBasedTestDescriptor.java:278)
   	at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:106)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:105)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:69)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$2(NodeTestTask.java:123)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:123)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:90)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
   	at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)
   	at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter': FactoryBean threw exception on object creation
   	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:188)
   	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:124)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1818)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1276)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:258)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
   	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1237)
   	at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:332)
   	at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:240)
   	at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:237)
   	at org.glassfish.grizzly.servlet.WebappContext.initFilters(WebappContext.java:1829)
   	... 98 more
   Caused by: java.lang.ClassCastException: class org.apache.shiro.web.filter.authc.AnonymousFilter cannot be cast to class jakarta.servlet.Filter (org.apache.shiro.web.filter.authc.AnonymousFilter and jakarta.servlet.Filter are in unnamed module of loader 'app')
   	at org.apache.shiro.spring.web.ShiroFilterFactoryBean.createFilterChainManager(ShiroFilterFactoryBean.java:414)
   	at org.apache.shiro.spring.web.ShiroFilterFactoryBean.createInstance(ShiroFilterFactoryBean.java:487)
   	at org.apache.shiro.spring.web.ShiroFilterFactoryBean.getObject(ShiroFilterFactoryBean.java:386)
   	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:182)
   	... 108 more
   ```
   
   I am not well versed in the masking done with the jakarta classifier, but even with the jakarta classifier it still seems like I am creating a `javax.servlet.Filter` because the AnonymousFilter eventually extends the AbstractFilter which extends `javax.servlet.Filter`.
   
   I apologize as this was setup by someone else so it is possible there is a simple solution, and if so I would appreciate the help switching it over.
   
   The beans are loaded from [here](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/fcrepo-auth-common/src/test/resources/spring-test/fcrepo-config.xml) for the integration tests.
   
   I have looked at other jakarta issues in here, most solutions are just to ensure you are using the `<classifier>jakarta</classifier>`. Which I am doing. 
   
   Am I missing something obvious here or are we using Shiro in a non-standard way or are we needing to continue using `javax.servlet.Filter` to use Shiro?
   
   cheers!
   


-- 
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: issues-unsubscribe@shiro.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1978263114

   > Hey @lprimak
   > 
   > Sorry that I didn't push up my changes. I have updated the working branch.
   > 
   > I use the `<dependencyManagement>` in my root pom to define the versions of [`shiro-spring`, `shiro-core`, `shiro-web` and `shiro-bom`](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/pom.xml#L604-L628), then in the authz module (`fcrepo-auth-common`) I define [those as dependencies](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/fcrepo-auth-common/pom.xml#L45-L59) but also define [`shiro-bom`](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/fcrepo-auth-common/pom.xml#L220-L230) in a `<dependencyManagement>` element?
   > 
   > Does that seem correct, because I am still hitting dependency convergence errors within shiro.
   > 
   > ```
   > Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   > +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
   >   +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
   >     +-javax.servlet.jsp:jsp-api:jar:2.2:provided
   >       +-javax.el:el-api:jar:2.2:provided
   > and
   > +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
   >   +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
   >     +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
   >       +-javax.el:el-api:jar:1.0:provided
   > and
   > +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
   >   +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
   >     +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
   >       +-javax.el:el-api:jar:1.0:provided
   > ```
   
   The problem is the different version of javax.el:el-api:jar 2.2 vs 1.0 between the jsp api and the taglibs-standard.
   
   I will try to fix it.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975404502

   Looks like you are not using the BOM as @fpapon already said. You need to use the BOM to fix your issue:
   As describer here: https://shiro.apache.org/jakarta-ee.html
   ```
   <dependencyManagement>
       <dependencies>
           <dependency>
               <groupId>org.apache.shiro</groupId>
               <artifactId>shiro-bom</artifactId>
               <version>2.0.0</version>
               <scope>import</scope>
               <type>pom</type>
           </dependency>
       </dependencies>
   </dependencyManagement>
   ```


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975589527

   Can you print out output of `mvn dependency:tree`?
   You should not have any `javax.*` dependencies at all


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1981624653

   Glad it worked out!


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975323965

   @whikloj I think that you need to import the Shiro bom to auto manage the non jakarta Shiro modules exclusion.
   You can find an example here:
   https://github.com/apache/shiro/blob/main/samples/web-jakarta/pom.xml
   
   To be sure that you don't have non jakarta module, you can check your generated artifacts.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1977582668

   Also you may want to try with the latest maven and with all up-to-date plugins as yours are out of date 


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1976967359

   Hi @lprimak and @fpapon,
   
   First I just wanted to thank you for the support.
   
   @fpapon my working branch is here https://github.com/fcrepo/fcrepo/tree/feature/fcrepo7
   
   I tried to reduce my dependencies to defining `shiro-bom` in the `<dependencyManagement>` of the root pom as well as both authz modules. Then I added a dependency on `shiro-spring` in the two authz modules.
   
   Here is the dependency tree and you are correct that I don't see a javax dependency there.
   ```
   > mvn dependency:tree -pl fcrepo-auth-common  
   [INFO] Scanning for projects...
   [INFO] 
   [INFO] -------------------< org.fcrepo:fcrepo-auth-common >--------------------
   [INFO] Building Fedora Repository Authorization Commons Module 6.5.0-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] -------------------------------[ bundle ]-------------------------------
   [INFO] 
   [INFO] --- dependency:3.2.0:tree (default-cli) @ fcrepo-auth-common ---
   [INFO] org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
   [INFO] +- org.fcrepo:fcrepo-kernel-api:jar:6.5.0-SNAPSHOT:compile
   [INFO] |  +- com.google.guava:guava:jar:32.0.0-jre:compile
   [INFO] |  |  +- com.google.guava:failureaccess:jar:1.0.1:compile
   [INFO] |  |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
   [INFO] |  |  +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
   [INFO] |  |  \- com.google.j2objc:j2objc-annotations:jar:2.8:compile
   [INFO] |  +- org.apache.jena:jena-core:jar:4.2.0:compile
   [INFO] |  |  +- org.apache.jena:jena-base:jar:4.2.0:compile
   [INFO] |  |  |  +- org.apache.jena:jena-shaded-guava:jar:4.2.0:compile
   [INFO] |  |  |  +- org.apache.commons:commons-csv:jar:1.9.0:compile
   [INFO] |  |  |  +- org.apache.commons:commons-compress:jar:1.21:compile
   [INFO] |  |  |  \- com.github.andrewoma.dexx:collection:jar:0.7:compile
   [INFO] |  |  +- org.apache.jena:jena-iri:jar:4.2.0:compile
   [INFO] |  |  \- commons-cli:commons-cli:jar:1.6.0:compile
   [INFO] |  +- org.apache.jena:jena-arq:jar:4.2.0:compile
   [INFO] |  |  +- com.github.jsonld-java:jsonld-java:jar:0.13.3:compile
   [INFO] |  |  +- com.apicatalog:titanium-json-ld:jar:1.1.0:compile
   [INFO] |  |  +- org.glassfish:jakarta.json:jar:2.0.1:compile
   [INFO] |  |  +- org.apache.httpcomponents:httpclient-cache:jar:4.5.13:compile
   [INFO] |  |  +- org.apache.thrift:libthrift:jar:0.14.2:compile
   [INFO] |  |  |  \- javax.annotation:javax.annotation-api:jar:1.3.2:compile
   [INFO] |  |  \- org.slf4j:jcl-over-slf4j:jar:1.7.32:runtime
   [INFO] |  +- commons-codec:commons-codec:jar:1.15:compile
   [INFO] |  \- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.15.0:compile
   [INFO] |     \- org.yaml:snakeyaml:jar:2.0:compile
   [INFO] +- org.fcrepo:fcrepo-http-commons:jar:6.5.0-SNAPSHOT:compile
   [INFO] |  +- org.fcrepo:fcrepo-persistence-api:jar:6.5.0-SNAPSHOT:compile
   [INFO] |  +- org.fcrepo:fcrepo-search-api:jar:6.5.0-SNAPSHOT:compile
   [INFO] |  +- org.apache.commons:commons-lang3:jar:3.12.0:compile
   [INFO] |  +- org.apache.jena:apache-jena-libs:pom:4.2.0:compile
   [INFO] |  |  +- org.apache.jena:jena-shacl:jar:4.2.0:compile
   [INFO] |  |  +- org.apache.jena:jena-shex:jar:4.2.0:compile
   [INFO] |  |  |  \- org.apache.jena:jena-arq:jar:tests:4.2.0:compile
   [INFO] |  |  +- org.apache.jena:jena-tdb:jar:4.2.0:compile
   [INFO] |  |  +- org.apache.jena:jena-tdb2:jar:4.2.0:compile
   [INFO] |  |  |  \- org.apache.jena:jena-dboe-storage:jar:4.2.0:compile
   [INFO] |  |  |     \- org.apache.jena:jena-dboe-trans-data:jar:4.2.0:compile
   [INFO] |  |  |        +- org.apache.jena:jena-dboe-transaction:jar:4.2.0:compile
   [INFO] |  |  |        |  \- org.apache.jena:jena-dboe-base:jar:4.2.0:compile
   [INFO] |  |  |        \- org.apache.jena:jena-dboe-index:jar:4.2.0:compile
   [INFO] |  |  \- org.apache.jena:jena-rdfconnection:jar:4.2.0:compile
   [INFO] |  +- org.glassfish.jersey.core:jersey-server:jar:3.1.5:compile
   [INFO] |  |  +- org.glassfish.jersey.core:jersey-client:jar:3.1.5:compile
   [INFO] |  |  \- jakarta.validation:jakarta.validation-api:jar:3.0.2:compile
   [INFO] |  +- org.slf4j:slf4j-api:jar:1.7.32:compile
   [INFO] |  +- org.glassfish.hk2:hk2-api:jar:3.0.5:compile
   [INFO] |  |  +- org.glassfish.hk2:hk2-utils:jar:3.0.5:compile
   [INFO] |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:3.0.5:compile
   [INFO] |  +- org.glassfish.jersey.media:jersey-media-json-jackson:jar:3.1.5:compile
   [INFO] |  |  +- org.glassfish.jersey.ext:jersey-entity-filtering:jar:3.1.5:compile
   [INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:jar:2.15.3:compile
   [INFO] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.15.0:compile
   [INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.15.0:compile
   [INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.0:compile
   [INFO] |  +- org.apache.velocity.tools:velocity-tools-generic:jar:3.0:compile
   [INFO] |  |  +- org.apache.commons:commons-digester3:jar:3.2:compile
   [INFO] |  |  |  \- cglib:cglib:jar:2.2.2:compile
   [INFO] |  |  |     \- asm:asm:jar:3.3.1:compile
   [INFO] |  |  \- com.github.cliftonlabs:json-simple:jar:3.0.2:compile
   [INFO] |  +- io.micrometer:micrometer-core:jar:1.12.3:compile
   [INFO] |  |  +- io.micrometer:micrometer-commons:jar:1.12.3:compile
   [INFO] |  |  +- org.hdrhistogram:HdrHistogram:jar:2.1.12:runtime
   [INFO] |  |  \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
   [INFO] |  +- io.prometheus:simpleclient_servlet_jakarta:jar:0.16.0:compile
   [INFO] |  |  +- io.prometheus:simpleclient:jar:0.16.0:compile
   [INFO] |  |  |  +- io.prometheus:simpleclient_tracer_otel:jar:0.16.0:compile
   [INFO] |  |  |  |  \- io.prometheus:simpleclient_tracer_common:jar:0.16.0:compile
   [INFO] |  |  |  \- io.prometheus:simpleclient_tracer_otel_agent:jar:0.16.0:compile
   [INFO] |  |  +- io.prometheus:simpleclient_common:jar:0.16.0:compile
   [INFO] |  |  \- io.prometheus:simpleclient_servlet_common:jar:0.16.0:compile
   [INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.1:compile
   [INFO] |  \- com.sun.xml.bind:jaxb-core:jar:4.0.4:compile
   [INFO] |     \- org.eclipse.angus:angus-activation:jar:2.0.1:runtime
   [INFO] +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:test
   [INFO] +- org.springframework:spring-context:jar:6.1.4:compile
   [INFO] |  +- org.springframework:spring-aop:jar:6.1.4:compile
   [INFO] |  +- org.springframework:spring-beans:jar:6.1.4:compile
   [INFO] |  +- org.springframework:spring-expression:jar:6.1.4:compile
   [INFO] |  \- io.micrometer:micrometer-observation:jar:1.12.3:compile
   [INFO] +- org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
   [INFO] |  +- org.apache.shiro:shiro-core:jar:2.0.0:compile
   [INFO] |  |  +- org.apache.shiro:shiro-lang:jar:2.0.0:compile
   [INFO] |  |  +- org.apache.shiro:shiro-cache:jar:2.0.0:compile
   [INFO] |  |  +- org.apache.shiro:shiro-crypto-hash:jar:2.0.0:compile
   [INFO] |  |  |  +- org.apache.shiro:shiro-crypto-core:jar:2.0.0:compile
   [INFO] |  |  |  \- org.bouncycastle:bcprov-jdk18on:jar:1.77:compile
   [INFO] |  |  +- org.apache.shiro.crypto:shiro-hashes-argon2:jar:2.0.0:runtime
   [INFO] |  |  +- org.apache.shiro.crypto:shiro-hashes-bcrypt:jar:2.0.0:runtime
   [INFO] |  |  +- org.apache.shiro:shiro-crypto-cipher:jar:2.0.0:compile
   [INFO] |  |  +- org.apache.shiro:shiro-config-core:jar:2.0.0:compile
   [INFO] |  |  +- org.apache.shiro:shiro-config-ogdl:jar:2.0.0:compile
   [INFO] |  |  |  \- commons-beanutils:commons-beanutils:jar:1.9.4:compile
   [INFO] |  |  |     \- commons-collections:commons-collections:jar:3.2.2:compile
   [INFO] |  |  +- org.apache.shiro:shiro-event:jar:2.0.0:compile
   [INFO] |  |  \- org.apache.commons:commons-configuration2:jar:2.9.0:compile
   [INFO] |  |     \- org.apache.commons:commons-text:jar:1.10.0:compile
   [INFO] |  \- org.apache.shiro:shiro-web:jar:2.0.0:compile
   [INFO] |     \- org.owasp.encoder:encoder:jar:1.2.3:compile
   [INFO] +- org.apache.velocity:velocity-engine-core:jar:2.3:compile
   [INFO] +- org.apache.commons:commons-collections4:jar:4.4:compile
   [INFO] +- org.junit.jupiter:junit-jupiter:jar:5.10.0:test
   [INFO] |  +- org.junit.jupiter:junit-jupiter-api:jar:5.10.2:test
   [INFO] |  |  +- org.opentest4j:opentest4j:jar:1.3.0:test
   [INFO] |  |  +- org.junit.platform:junit-platform-commons:jar:1.10.2:test
   [INFO] |  |  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
   [INFO] |  +- org.junit.jupiter:junit-jupiter-params:jar:5.10.2:test
   [INFO] |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.10.2:test
   [INFO] |     \- org.junit.platform:junit-platform-engine:jar:1.10.2:test
   [INFO] +- org.mockito:mockito-junit-jupiter:jar:5.4.0:test
   [INFO] +- org.fcrepo:fcrepo-http-commons:test-jar:tests:6.5.0-SNAPSHOT:test
   [INFO] +- org.fcrepo:fcrepo-kernel-impl:jar:6.5.0-SNAPSHOT:test
   [INFO] |  +- org.fcrepo:fcrepo-common:jar:6.5.0-SNAPSHOT:test
   [INFO] |  |  \- org.springframework:spring-tx:jar:6.1.4:test
   [INFO] |  +- org.fcrepo:fcrepo-persistence-common:jar:6.5.0-SNAPSHOT:test
   [INFO] |  |  \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.15.0:test
   [INFO] |  +- org.springframework:spring-jdbc:jar:6.1.4:test
   [INFO] |  +- com.github.ben-manes.caffeine:caffeine:jar:3.0.4:test
   [INFO] |  |  +- org.checkerframework:checker-qual:jar:3.18.0:test
   [INFO] |  |  \- com.google.errorprone:error_prone_annotations:jar:2.9.0:test
   [INFO] |  +- net.jodah:failsafe:jar:2.4.4:test
   [INFO] |  +- org.flywaydb:flyway-core:jar:10.7.1:test
   [INFO] |  |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-toml:jar:2.15.2:test
   [INFO] |  |  \- com.google.code.gson:gson:jar:2.10.1:test
   [INFO] |  \- org.flywaydb:flyway-mysql:jar:10.7.1:test
   [INFO] +- org.fcrepo:fcrepo-search-impl:jar:6.5.0-SNAPSHOT:test
   [INFO] |  \- org.fcrepo:fcrepo-stats-api:jar:6.5.0-SNAPSHOT:test
   [INFO] +- org.fcrepo:fcrepo-persistence-ocfl:jar:6.5.0-SNAPSHOT:test
   [INFO] |  +- org.fcrepo:fcrepo-storage-ocfl:jar:6.4.0-SNAPSHOT:test
   [INFO] |  |  +- edu.wisc.library.ocfl:ocfl-java-core:jar:1.5.0:test
   [INFO] |  |  |  \- edu.wisc.library.ocfl:ocfl-java-api:jar:1.5.0:test
   [INFO] |  |  \- commons-io:commons-io:jar:2.11.0:compile
   [INFO] |  +- edu.wisc.library.ocfl:ocfl-java-aws:jar:1.5.0:test
   [INFO] |  |  +- org.codehaus.woodstox:stax2-api:jar:4.2.1:test
   [INFO] |  |  \- at.favre.lib:bytes:jar:1.5.0:test
   [INFO] |  +- software.amazon.awssdk:s3:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:aws-xml-protocol:jar:2.17.50:test
   [INFO] |  |  |  \- software.amazon.awssdk:aws-query-protocol:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:protocol-core:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:arns:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:profiles:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:sdk-core:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:auth:jar:2.17.50:test
   [INFO] |  |  |  +- software.amazon.awssdk:json-utils:jar:2.17.50:test
   [INFO] |  |  |  |  \- software.amazon.awssdk:third-party-jackson-core:jar:2.17.50:test
   [INFO] |  |  |  \- software.amazon.eventstream:eventstream:jar:1.0.1:test
   [INFO] |  |  +- software.amazon.awssdk:http-client-spi:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:regions:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:annotations:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:utils:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:aws-core:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:metrics-spi:jar:2.17.50:test
   [INFO] |  |  +- software.amazon.awssdk:apache-client:jar:2.17.50:test
   [INFO] |  |  \- software.amazon.awssdk:netty-nio-client:jar:2.17.50:test
   [INFO] |  |     +- io.netty:netty-codec-http2:jar:4.1.68.Final:test
   [INFO] |  |     +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.68.Final:test
   [INFO] |  |     |  \- io.netty:netty-transport-native-unix-common:jar:4.1.68.Final:test
   [INFO] |  |     \- com.typesafe.netty:netty-reactive-streams-http:jar:2.0.5:test
   [INFO] |  |        \- com.typesafe.netty:netty-reactive-streams:jar:2.0.5:test
   [INFO] |  +- io.netty:netty-handler:jar:4.1.68.Final:test
   [INFO] |  |  +- io.netty:netty-common:jar:4.1.68.Final:test
   [INFO] |  |  +- io.netty:netty-resolver:jar:4.1.68.Final:test
   [INFO] |  |  +- io.netty:netty-buffer:jar:4.1.68.Final:test
   [INFO] |  |  +- io.netty:netty-transport:jar:4.1.68.Final:test
   [INFO] |  |  \- io.netty:netty-codec:jar:4.1.68.Final:test
   [INFO] |  +- io.netty:netty-codec-http:jar:4.1.68.Final:test
   [INFO] |  \- org.reactivestreams:reactive-streams:jar:1.0.3:test
   [INFO] +- com.h2database:h2:jar:2.2.220:test
   [INFO] +- org.glassfish.grizzly:grizzly-http-server:jar:4.0.2:test
   [INFO] |  \- org.glassfish.grizzly:grizzly-http:jar:4.0.2:test
   [INFO] |     \- org.glassfish.grizzly:grizzly-framework:jar:4.0.2:test
   [INFO] +- org.glassfish.grizzly:grizzly-http-servlet:jar:4.0.2:test
   [INFO] +- org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:jar:3.1.5:test
   [INFO] |  +- org.glassfish.jersey.test-framework:jersey-test-framework-core:jar:3.1.5:test
   [INFO] |  |  +- org.glassfish.jersey.media:jersey-media-jaxb:jar:3.1.5:test
   [INFO] |  |  \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:3.1.5:test
   [INFO] |  +- org.glassfish.jersey.containers:jersey-container-grizzly2-http:jar:3.1.5:test
   [INFO] |  +- org.glassfish.jersey.containers:jersey-container-grizzly2-servlet:jar:3.1.5:test
   [INFO] |  |  \- org.glassfish.jersey.containers:jersey-container-servlet:jar:3.1.5:test
   [INFO] |  \- org.hamcrest:hamcrest:jar:2.2:test
   [INFO] +- org.springframework:spring-core:jar:6.1.4:compile
   [INFO] |  \- org.springframework:spring-jcl:jar:6.1.4:compile
   [INFO] +- org.springframework:spring-web:jar:6.1.4:compile
   [INFO] +- org.glassfish.jersey.core:jersey-common:jar:3.1.5:test
   [INFO] |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:3.1.0:compile
   [INFO] |  +- jakarta.inject:jakarta.inject-api:jar:2.0.1:provided
   [INFO] |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:test
   [INFO] +- org.glassfish.jersey.media:jersey-media-multipart:jar:3.1.5:compile
   [INFO] |  \- org.jvnet.mimepull:mimepull:jar:1.9.15:compile
   [INFO] +- com.sun.xml.bind:jaxb-impl:jar:4.0.4:test
   [INFO] +- org.fcrepo:fcrepo-configs:jar:6.5.0-SNAPSHOT:test
   [INFO] |  +- com.zaxxer:HikariCP:jar:5.0.0:test
   [INFO] |  \- io.micrometer:micrometer-registry-prometheus:jar:1.12.3:test
   [INFO] +- org.springframework:spring-test:jar:6.1.4:test
   [INFO] +- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:provided
   [INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
   [INFO] |  \- org.apache.httpcomponents:httpcore:jar:4.4.14:compile
   [INFO] +- jakarta.platform:jakarta.jakartaee-api:jar:10.0.0:provided
   [INFO] |  +- jakarta.platform:jakarta.jakartaee-web-api:jar:10.0.0:provided
   [INFO] |  |  +- jakarta.servlet.jsp:jakarta.servlet.jsp-api:jar:3.1.1:provided
   [INFO] |  |  +- jakarta.el:jakarta.el-api:jar:5.0.1:provided
   [INFO] |  |  +- jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:jar:3.0.0:provided
   [INFO] |  |  +- jakarta.faces:jakarta.faces-api:jar:4.0.1:provided
   [INFO] |  |  +- jakarta.websocket:jakarta.websocket-api:jar:2.1.0:provided
   [INFO] |  |  +- jakarta.websocket:jakarta.websocket-client-api:jar:2.1.0:provided
   [INFO] |  |  +- jakarta.json:jakarta.json-api:jar:2.1.0:provided
   [INFO] |  |  +- jakarta.json.bind:jakarta.json.bind-api:jar:3.0.0:provided
   [INFO] |  |  +- jakarta.ejb:jakarta.ejb-api:jar:4.0.1:provided
   [INFO] |  |  +- jakarta.transaction:jakarta.transaction-api:jar:2.0.1:provided
   [INFO] |  |  +- jakarta.persistence:jakarta.persistence-api:jar:3.1.0:provided
   [INFO] |  |  +- jakarta.interceptor:jakarta.interceptor-api:jar:2.1.0:provided
   [INFO] |  |  +- jakarta.enterprise:jakarta.enterprise.cdi-api:jar:4.0.1:provided
   [INFO] |  |  +- jakarta.enterprise:jakarta.enterprise.lang-model:jar:4.0.1:provided
   [INFO] |  |  +- jakarta.authentication:jakarta.authentication-api:jar:3.0.0:provided
   [INFO] |  |  \- jakarta.security.enterprise:jakarta.security.enterprise-api:jar:3.0.0:provided
   [INFO] |  +- jakarta.jms:jakarta.jms-api:jar:3.1.0:provided
   [INFO] |  +- jakarta.activation:jakarta.activation-api:jar:2.1.0:provided
   [INFO] |  +- jakarta.mail:jakarta.mail-api:jar:2.1.0:provided
   [INFO] |  +- jakarta.resource:jakarta.resource-api:jar:2.1.0:provided
   [INFO] |  +- jakarta.authorization:jakarta.authorization-api:jar:2.1.0:provided
   [INFO] |  \- jakarta.batch:jakarta.batch-api:jar:2.1.1:provided
   [INFO] +- org.mockito:mockito-core:jar:3.12.4:test
   [INFO] |  +- net.bytebuddy:byte-buddy:jar:1.14.12:test
   [INFO] |  +- net.bytebuddy:byte-buddy-agent:jar:1.14.12:test
   [INFO] |  \- org.objenesis:objenesis:jar:3.2:test
   [INFO] +- org.mariadb.jdbc:mariadb-java-client:jar:2.7.4:test
   [INFO] +- mysql:mysql-connector-java:jar:8.0.28:test
   [INFO] |  \- com.google.protobuf:protobuf-java:jar:3.11.4:test
   [INFO] \- org.postgresql:postgresql:jar:42.4.3:test
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  2.378 s
   [INFO] Finished at: 2024-03-04T09:49:27-06:00
   [INFO] ------------------------------------------------------------------------
   ```
   
   But when I attempt to compile it I am still hitting this error
   ```
   > mvn clean install -rf fcrepo-auth-common
   [INFO] Scanning for projects...
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Build Order:
   [INFO] 
   [INFO] Fedora Repository Authorization Commons Module                  [bundle]
   [INFO] Fedora Repository Stats Impl                                       [jar]
   [INFO] Fedora Repository HTTP API Module                               [bundle]
   [INFO] Fedora Repository WebAC Authorization Module                    [bundle]
   [INFO] Fedora Repository Deployable Web Application                       [war]
   [INFO] Fedora Repository LDP integration tests Module                     [jar]
   [INFO] Fedora Repository RDF integration tests Module                     [jar]
   [INFO] 
   [INFO] -------------------< org.fcrepo:fcrepo-auth-common >--------------------
   [INFO] Building Fedora Repository Authorization Commons Module 6.5.0-SNAPSHOT [1/7]
   [INFO]   from pom.xml
   [INFO] -------------------------------[ bundle ]-------------------------------
   [INFO] 
   [INFO] --- clean:3.1.0:clean (default-clean) @ fcrepo-auth-common ---
   [INFO] 
   [INFO] --- enforcer:3.0.0:enforce (default) @ fcrepo-auth-common ---
   [WARNING] 
   Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-javax.servlet.jsp:jsp-api:jar:2.2:provided
           +-javax.el:el-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
           +-javax.el:el-api:jar:1.0:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
           +-javax.el:el-api:jar:1.0:provided
   
   [WARNING] Rule 2: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
   Failed while enforcing releasability. See above detailed error message.
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary for Fedora Repository Authorization Commons Module 6.5.0-SNAPSHOT:
   [INFO] 
   [INFO] Fedora Repository Authorization Commons Module ..... FAILURE [  2.672 s]
   [INFO] Fedora Repository Stats Impl ....................... SKIPPED
   [INFO] Fedora Repository HTTP API Module .................. SKIPPED
   [INFO] Fedora Repository WebAC Authorization Module ....... SKIPPED
   [INFO] Fedora Repository Deployable Web Application ....... SKIPPED
   [INFO] Fedora Repository LDP integration tests Module ..... SKIPPED
   [INFO] Fedora Repository RDF integration tests Module ..... SKIPPED
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  4.223 s
   [INFO] Finished at: 2024-03-04T10:19:38-06:00
   [INFO] ------------------------------------------------------------------------
   [WARNING] 
   [WARNING] Plugin validation issues were detected in 3 plugin(s)
   [WARNING] 
   [WARNING]  * org.apache.maven.plugins:maven-clean-plugin:3.1.0
   [WARNING]  * org.apache.maven.plugins:maven-enforcer-plugin:3.0.0
   [WARNING]  * org.apache.felix:maven-bundle-plugin:5.1.2
   [WARNING] 
   [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
   [WARNING] 
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce (default) on project fcrepo-auth-common: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   ```
   


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj closed issue #1339: [Question] Having trouble with Jakarta EE and Shiro
URL: https://github.com/apache/shiro/issues/1339


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1981613753

   I updated most of the plugins and am still working my way through some issues from that, but I am not seeing the original problem. So I guess it was an issue with the maven-enforcer-plugin or perhaps the maven-compiler-plugin. 
   
   Either way, thank you for your help. I think this is closed.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1977581384

   Can you try disabling enforcer plugin and see if that works?


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975584635

   Hey @lprimak 
   
   Sorry that I didn't push up my changes. I have updated the working branch. 
   
   I use the `<dependencyManagement>` in my root pom to define the versions of [`shiro-spring`, `shiro-core`, `shiro-web` and `shiro-bom`](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/pom.xml#L604-L628), then in the authz module (`fcrepo-auth-common`) I define [those as dependencies](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/fcrepo-auth-common/pom.xml#L45-L59) but also define [`shiro-bom`](https://github.com/fcrepo/fcrepo/blob/feature/fcrepo7/fcrepo-auth-common/pom.xml#L220-L230) in a `<dependencyManagement>` element?
   
   Does that seem correct, because I am still hitting dependency convergence errors within shiro.
   ```
   Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-javax.servlet.jsp:jsp-api:jar:2.2:provided
         +-javax.el:el-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   ```


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1977547898

   I've played around but I'm not really making any head way. I have removed all dependencies from the root pom.xml _except_ the `shiro-bom`. 
   ```xml
   <dependencyManagement>
     <dependency>
       <groupId>org.apache.shiro</groupId>
       <artifactId>shiro-bom</artifactId>
       <version>${shiro.version}</version>
       <scope>import</scope>
       <type>pom</type>
     </dependency>
   </dependencyManagement>
   ```
   
   Then in the `fcrepo-auth-common` I have gone back to the original dependencies of
   ```xml
   <dependency>
     <groupId>org.apache.shiro</groupId>
     <artifactId>shiro-core</artifactId>
     <classifier>jakarta</classifier>
   </dependency>
   <dependency>
     <groupId>org.apache.shiro</groupId>
     <artifactId>shiro-web</artifactId>
     <classifier>jakarta</classifier>
   </dependency>
   ```
   
   But it stills seems to have some transitive dependency.
   ```
   [INFO] -------------------< org.fcrepo:fcrepo-auth-common >--------------------
   [INFO] Building Fedora Repository Authorization Commons Module 6.5.0-SNAPSHOT [16/22]
   [INFO]   from fcrepo-auth-common/pom.xml
   [INFO] -------------------------------[ bundle ]-------------------------------
   [INFO] 
   [INFO] --- clean:3.1.0:clean (default-clean) @ fcrepo-auth-common ---
   [INFO] 
   [INFO] --- enforcer:3.0.0:enforce (default) @ fcrepo-auth-common ---
   [WARNING] 
   Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-javax.servlet.jsp:jsp-api:jar:2.2:provided
         +-javax.el:el-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   
   [WARNING] Rule 2: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
   Failed while enforcing releasability. See above detailed error message.
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary for Fedora Commons 6.5.0-SNAPSHOT:
   [INFO] 
   [INFO] Fedora Commons :: Parent POM ....................... SUCCESS [  0.512 s]
   [INFO] Fedora Commons ..................................... SUCCESS [  3.861 s]
   [INFO] Fedora Repository Common Module .................... SUCCESS [  2.701 s]
   [INFO] Fedora Repository Configurations Module ............ SUCCESS [  2.273 s]
   [INFO] Fedora Repository Kernel API ....................... SUCCESS [  7.252 s]
   [INFO] Fedora Repository Persistence API Module ........... SUCCESS [  1.214 s]
   [INFO] Fedora Repository Persistence Common Module ........ SUCCESS [  2.719 s]
   [INFO] Fedora Repository Search API ....................... SUCCESS [  1.289 s]
   [INFO] Fedora Repository Kernel Implementation ............ SUCCESS [ 20.730 s]
   [INFO] Fedora Repository OCFL Persistence Impl ............ SUCCESS [ 15.147 s]
   [INFO] Fedora Repository Statistics API ................... SUCCESS [  1.197 s]
   [INFO] Fedora Repository Search Impl ...................... SUCCESS [  2.720 s]
   [INFO] Fedora Repository HTTP Commons Module .............. SUCCESS [  8.214 s]
   [INFO] Fedora Event Serialization ......................... SUCCESS [  5.814 s]
   [INFO] Fedora Repository JMS Module ....................... SUCCESS [ 51.959 s]
   [INFO] Fedora Repository Authorization Commons Module ..... FAILURE [  0.227 s]
   [INFO] Fedora Repository Stats Impl ....................... SKIPPED
   [INFO] Fedora Repository HTTP API Module .................. SKIPPED
   [INFO] Fedora Repository WebAC Authorization Module ....... SKIPPED
   [INFO] Fedora Repository Deployable Web Application ....... SKIPPED
   [INFO] Fedora Repository LDP integration tests Module ..... SKIPPED
   [INFO] Fedora Repository RDF integration tests Module ..... SKIPPED
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  02:09 min
   [INFO] Finished at: 2024-03-04T16:02:47-06:00
   [INFO] ------------------------------------------------------------------------
   ```
   
   Could it be our `enforcer` plugin configuration? I looked at it but I couldn't really see why this would occur. 🤷 
   
   
   


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1978289732

   @whikloj it works by just excluding javax.el dep in shiro-web dependency as it's a provided dep.
   ```
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-spring</artifactId>
         <classifier>jakarta</classifier>
       </dependency>
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-core</artifactId>
         <classifier>jakarta</classifier>
       </dependency>
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-web</artifactId>
         <classifier>jakarta</classifier>
         <exclusions>
           <exclusion>
             <groupId>javax.el</groupId>
             <artifactId>el-api</artifactId>
           </exclusion>
         </exclusions>
       </dependency>
   ```
   I tested it from your branch and it's ok.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "whikloj (via GitHub)" <gi...@apache.org>.
whikloj commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975402756

   Hi @fpapon,
   
   I'm not sure I am understanding the use of the bom. 
   
   If in my main project pom I define (where `${shiro.version}` ==`2.0.0`):
   ```xml
   <dependencyManagement>
         <dependency>
           <groupId>org.apache.shiro</groupId>
           <artifactId>shiro-core</artifactId>
           <version>${shiro.version}</version>
           <classifier>jakarta</classifier>
         </dependency>
         <dependency>
           <groupId>org.apache.shiro</groupId>
           <artifactId>shiro-spring</artifactId>
           <version>${shiro.version}</version>
           <classifier>jakarta</classifier>
         </dependency>
         <dependency>
           <groupId>org.apache.shiro</groupId>
           <artifactId>shiro-web</artifactId>
           <version>${shiro.version}</version>
           <classifier>jakarta</classifier>
         </dependency>
         <dependency>
           <groupId>org.apache.shiro</groupId>
           <artifactId>shiro-bom</artifactId>
           <version>${shiro.version}</version>
           <type>pom</type>
         </dependency>
   </dependencyManagement>
   ```
   and in the actual auth module I add dependencies on:
   ```xml
      <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-spring</artifactId>
         <classifier>jakarta</classifier>
       </dependency>
       <dependency>
         <groupId>org.apache.shiro</groupId>
         <artifactId>shiro-web</artifactId>
         <classifier>jakarta</classifier>
       </dependency>
   ```
   
   Building the auth module, I end up with
   ```
   Dependency convergence error for javax.servlet.jsp:jsp-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-javax.servlet.jsp:jsp-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-javax.servlet.jsp:jsp-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
         +-javax.servlet.jsp:jsp-api:jar:2.1:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
         +-javax.servlet.jsp:jsp-api:jar:2.1:provided
   
   [WARNING] 
   Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-javax.servlet.jsp:jsp-api:jar:2.2:provided
         +-javax.el:el-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-web:jar:jakarta:2.0.0:compile
       +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
         +-javax.el:el-api:jar:1.0:provided
   ```
   
   Previously I had `shiro-core` and `shiro-spring` as dependencies, so if I switch back to those and remove `shiro-web` I end up in the same spot via `shiro-spring`
   
   ```
   Dependency convergence error for javax.servlet.jsp:jsp-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-javax.servlet.jsp:jsp-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
           +-javax.servlet.jsp:jsp-api:jar:2.1:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
           +-javax.servlet.jsp:jsp-api:jar:2.1:provided
   
   [WARNING] 
   Dependency convergence error for javax.el:el-api:jar:2.2:provided paths to dependency are:
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-javax.servlet.jsp:jsp-api:jar:2.2:provided
           +-javax.el:el-api:jar:2.2:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:provided
           +-javax.el:el-api:jar:1.0:provided
   and
   +-org.fcrepo:fcrepo-auth-common:bundle:6.5.0-SNAPSHOT
     +-org.apache.shiro:shiro-spring:jar:jakarta:2.0.0:compile
       +-org.apache.shiro:shiro-web:jar:2.0.0:compile
         +-org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:provided
           +-javax.el:el-api:jar:1.0:provided
   ```
   
   Which seems to say that the library has a dependency convergence error with itself. So I am sure I am missing something.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] [Question] Having trouble with Jakarta EE and Shiro [shiro]

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon commented on issue #1339:
URL: https://github.com/apache/shiro/issues/1339#issuecomment-1975823742

   @whikloj If you share a git branch may be I can try to fix it.
   Side note about the bom, you need to set the dependency scope to `import`.


-- 
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: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org