Hi Boris,
I'm glad the standalone JAR is working for you.
I completely understand not wanting to experiment on the war setup - the
point of war files is that you should be able to just drop them in.
The NoClassDefFoundError has changed so adding shiro-cdi mad a difference.
I experimented adding shiro-cdi - it does add any more dependencies
itself but does have an assumption that the environment provides
jakarta.enterprise:jakarta.enterprise.cdi-api. So, maybe, its the setup
of the webapp server.
Andy
On 6/29/24 14:13, Boris Mauricette wrote:
Hi Andy,
I'm attempting to run the war file untouched. Nevertheless, as glassfish seems
to be a pain in the neck, I'll use the standalone fuseki server, it'll be
fine.thanks a lot for the support.Best regards
Boris
ps: i'm not skilled enough to try many modif. I tried to add the shiro-cdi jar
into the war WEB-INF/lib dir. A deploy attempt then raises a
java.lang.NoClassDefFoundError: javax/faces/application/ApplicationFactory. too
tricky for me…
Le vendredi 28 juin 2024 à 20:28:58 UTC+2, Andy Seaborne <a...@apache.org>
a écrit :
Hi Boris,
I don't use glassfish so I can't reproduce this. Maybe someone els eon
this list uses fuseki.war with glassfish+jboss.
Are you just running the Jena Fuseki WAR file untouched or combingin it
with anything?
Fuseki does not need Jakarta EE CDI but maybe your setup detects Shiro
and then does expect it. Adding the artifact
org.apache.shiro:shiro-cdi:jakarta:2.0.0 might help.
Andy
On 28/06/2024 08:32, Boris Mauricette wrote:
Hi Andy,
it doesn't fix the problem. I try to join a log report (compressed).
Best regards.
Le jeudi 27 juin 2024 à 17:35:06 UTC+2, Andy Seaborne <a...@apache.org>
a écrit :
Hi Boris,
This could be related to
https://github.com/apache/jena/issues/2448
<https://github.com/apache/jena/issues/2448>
which has a workaround.
Add to web.xml:
<context-param>
<param-name>org.apache.shiro.ee.disabled</param-name>
<param-value>true</param-value>
</context-param>
if not, could you please show the stack trace?
Andy
On 27/06/2024 14:05, Boris Mauricette wrote:
> Dear all,I come here for the following:I try to deploy the
jena-fuseki war webapp on a fresh installed glassfish7 (7.0.14 EE
platform), but it fails with this error:
> Error occurred during deployment: Exception while loading the app :
CDI definition failure:null
> more precisely, in the last lines of the error stack, there is:
> java.lang.NoClassDefFoundError: org/apache/shiro/cdi/AnnotatedTypeWrapper
> …at
org.apache.shiro.ee.cdi.ShiroSessionScopeExtension.addFacesViewScoped
>
> this package org/apache/shiro/cdi doesn't seem to exist, I only see
some shiro/ee/cdi/ things. As recommanded, I've renamed the .war file
fuseki.war.
>
> Does anyone have an idea to fix the problem?Best regards,
>