On Mon, Jun 29, 2020 at 6:34 PM Andy Seaborne <[email protected]> wrote:
>
>
>
> On 29/06/2020 14:47, Martynas Jusevičius wrote:
> > Hi,
> >
> > I've got a class that is initialized with Jena's registered languages:
>
> And how/when is that called?
>
> I presume you don't use Jena initialization mechanism.
>
> https://jena.apache.org/documentation/notes/system-initialization

You're right, I've missed that. JenaSystem.init() wasn't being called.

> One thing as a general measure: call "JenaSystem.init()" early in statup
> before requests come in.

Yes. I was wondering where that could be in a webapp. But then I found
the FusekiServerEnvironmentInit (ServletContextListener) and
implemented the same and now it looks like the problem went away.
https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-webapp/src/main/java/org/apache/jena/fuseki/webapp/FusekiServerEnvironmentInit.java

Reply via email to