Constant is not a problem at all. Can you access the hierarchy manager
of DMS? I.e. does the call to MgnlContext.getHierarchyManager("dms")
return the manager or not? If you get the HM but not QM I would guess
either the indexes of DMS workspace are corrupted or you do not have
search configured in the DMS workspace at all.
HTH,
JanOn Wed, 2009-12-09 at 15:23 +0100, Klaus, Daniel wrote: > Hi John, which constant would you suggest? I can't see anything like > 'dms'. Could it be a version (3.0) problem? > The following constants exist: > > public static final String WEBSITE = "website"; > public static final String USERS = "users"; > public static final String USER_ROLES = "userroles"; > public static final String USER_GROUPS = "usergroups"; > public static final String CONFIG = "config"; > public static final String DEFAULT_WORKSPACE = "default"; > public static final String VERSION_STORE = "mgnlVersion"; > public static final String NAMESPACE_PREFIX = "mgnl"; > public static final String NAMESPACE_URI = > "http://www.magnolia.info/jcr/mgnl"; > private static Logger log; > private static final String ELEMENT_REPOSITORY = "Repository"; > private static final String ELEMENT_REPOSITORYMAPPING = > "RepositoryMapping"; > private static final String ELEMENT_PARAM = "param"; > private static final String ELEMENT_WORKSPACE = "workspace"; > private static final String ATTRIBUTE_NAME = "name"; > private static final String ATTRIBUTE_LOAD_ON_STARTUP = > "loadOnStartup"; > private static final String ATTRIBUTE_PROVIDER = "provider"; > private static final String ATTRIBUTE_VALUE = "value"; > private static final String ATTRIBUTE_REPOSITORY_NAME = > "repositoryName"; > private static final String ATTRIBUTE_WORKSPACE_NAME = > "workspaceName"; > public static final String REPOSITORY_USER = > SystemProperty.getProperty("magnolia.connection.jcr.userId"); > public static final String REPOSITORY_PSWD = > SystemProperty.getProperty("magnolia.connection.jcr.password"); > > Regards > Daniel > > > ______________________________________________________________________ > Von: [email protected] > [mailto:[email protected]] Im Auftrag von John Preston > Gesendet: Mittwoch, 9. Dezember 2009 11:54 > An: Magnolia User-List > Betreff: Re: [magnolia-user] getQueryManager("dms") returns null > > > > Try specifying the Content Repository using the constants provided by > the class info.magnolia.cms.beans.config.ContentRepository > > 2009/12/8 Klaus, Daniel <[email protected]> > I have Magnolia 3.0 running and I am trying to query the dms > in a template jsp. > > The following returns null and so makes it impossible to query > the dms. > > info.magnolia.cms.core.search.QueryManager qm = > MgnlContext.getQueryManager("dms"); > > If I replace "dms" with "website" a propriate Query Manager is > returned. > > Querying the DMS via the Magnolia Author / Tools / JCR Queries > works and it's also possible to store documents in the DMS. > > Any idea, why NULL is returned? > > Thanks > Daniel > > > > > ______________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > > > > > ______________________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
