The reason is that when HqlQueryExecutor.initialize() executes the call to configuration.getNamedQueries() returns an empty list of named queries.