Login problem after adding custom plugin

I have inherited a custom plugin that creates a couple extra document types, with fields and widgets. It also defines a directory that attaches to a MySQL database that we use for some of those fields.

Using a clean nuxeo-tomcat-5.5-sdk install, I can log in as Administrator. As soon as I add the plugin and restart I can no longer log in as Administrator, and in the server log I see:

ERROR [org.nuxeo.ecm.platform.login.NuxeoLoginModule] org.nuxeo.ecm.directory.DirectoryException: no directory registered with name 'userDirectory'

I have found this 'userDirectory' is defined in nxserver/config/default-sql-directories-bundle.xml, and is still present there even when this error occurs. My plugin does supply a directories-contrib.xml, but my understanding is that these two should complement each other.

Any suggestions as to what I'm doing wrong are greatly appreciated.


0 votes

2 answers



My contributed directories referenced a MySQL database, and I was missing the MySQL JDBC driver, found here: http://dev.mysql.com/downloads/connector/j/

And placed in

0 votes

What is your Nuxeo version?
Maybe your contribution in directories-contrib.xml is overriding the one in default-sql-directories-bundle.xml. Did you give it the same name “org.nuxeo.ecm.directory.sql.storage”?
Isn't there any warning or error in the logs? Setting the log level to DEBUG, you should see the contributions loading details at startup and better understand what happens.

0 votes