cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo 6.0 does not start after applying latest hotfix -- FreeMarker exception

Steven_Huwig1
Star Contributor
Star Contributor

The message after sudo service nuxeo start:

 Expression nuxeo.server.declare_datasources is undefined on line 51, column 21 in server.xml.nxftl.
 The problematic instruction:
 ----------
 ==> if !isWizard && nuxeo.server.declare_datasources == "true" [on line 51, column 3 in server.xml.nxftl]
Java backtrace for programmers:
 ----------
 freemarker.core.InvalidReferenceException: Expression nuxeo.server.declare_datasources is undefined on line 51, column 21 in server.xml.nxftl.
 	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

What do I need to do to troubleshoot/repair this problem?

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

You must have a custom overloaded server.xml.nxftl. There is no nuxeo.server.declare_datasources anymore in Nuxeo 6.0, it's been changed (with opposite meaning) to nuxeo.db.embeddedDatasources in NXP-14728.

Take the server.xml.nxftl from the standard distribution (templates/common-base/conf/server.xml.nxftl) and re-apply your custom changes to it.

View answer in original post

5 REPLIES 5

Florent_Guillau
World-Class Innovator
World-Class Innovator

You must have a custom overloaded server.xml.nxftl. There is no nuxeo.server.declare_datasources anymore in Nuxeo 6.0, it's been changed (with opposite meaning) to nuxeo.db.embeddedDatasources in NXP-14728.

Take the server.xml.nxftl from the standard distribution (templates/common-base/conf/server.xml.nxftl) and re-apply your custom changes to it.

Thank you, this is exactly what was wrong. Of course there is a secondary error after this is cleared.

Seems as though my local configuration also has a web.xml.nxftl in its conf/ folder -- perhaps this is a similar issue? (We used it to conditionally deploy a servlet filter for request logging)

I left out the bottom of the stack trace that was checking for the runtime's initialization status

You should carefully review the changes you made in your customized templates. Start with the standard Nuxeo ones and add your customizations one by one to see which one breaks.