Access to default repository via WebEngine

I've been trying to upgrade our existing Nuxeo setup (5.3) to 5.6.

I have all the documents loading up in nuxeo correctly and have been trying to get our WebEngine code converted over from the old module.xml setup into the newer annotations setup.

When I try and hit the url for one of WebEngine modules, I'm getting the following error about the repository not being available and this is causing errors when it tries to access the CoreSession. We are using a PostreSQL database and I ran through the setup wizard which seems to have generated the updated default-repository-config.xml file.

Caused by: java.lang.IllegalStateException: Unable to get X-NXRepository repository



at org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider.getSessionRef(
at org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider.getSession(
at org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory.getSession(
at org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory.getSession(
at org.nuxeo.ecm.webengine.model.impl.AbstractWebContext.getCoreSession(
at org.nuxeo.ecm.webengine.model.impl.AbstractWebContext.initializeBindings(
... 70 more

Caused by: java.lang.IllegalStateException: Unable to get X-NXRepository repository

at org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider._createSession(
at org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider.createSession(
... 76 more

I'm not sure where the word X-NXRepository has come from. We've only ever used the default repository.

EDIT - When I make a request to a WebEngine url, I'm getting this warning coming up straight away :

[org.nuxeo.ecm.platform.web.common.ServletHelper] Invalid request transaction timeout: Nuxeo-Transaction-Timeout

I'm guessing that the database connection isn't working for some reason.

0 votes

1 answers




I just saw on this documentation: that you can specify your repo when accessing by JAXRS.

Maybe it could help…


Hello Vladimir, thank you for your documentation. Alexis from Solutis.

0 votes