AnsweredAssumed Answered

I don t find the error

Question asked by joksy on Apr 7, 2009
Hi guys,

I m not able to find the error in my jsp

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ page import="javax.faces.context.FacesContext" %>
<%@ page import="org.alfresco.service.cmr.dictionary.DictionaryService" %>
<%@ page import="org.alfresco.web.bean.repository.Repository" %>
<%@ page import="java.util.Collection" %>
<%@ page import="org.alfresco.service.namespace.QName" %>



<%
   FacesContext mycontext = FacesContext.getCurrentInstance();

   DictionaryService dictionaryService = Repository.getServiceRegistry(mycontext).getDictionaryService();
   
   Collection<QName> properties = dictionaryService.getProperties(QName.createQName("{http://www.alfresco.org/model/content/1.0}content"));

%>

the error is
Stacktrace:
caused by:
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/extension/select-aspect.jsp at line 42

39:
40: DictionaryService dictionaryService = Repository.getServiceRegistry(mycontext).getDictionaryService();
41:
42: Collection<QName> properties = dictionaryService.getProperties(QName.createQName("{http://www.alfresco.org/model/content/1.0}content"));
43:
44: %>
45:


Stacktrace:
caused by:
org.alfresco.service.cmr.dictionary.DictionaryException: Model '{http://www.alfresco.org/model/content/1.0}content' does not exist


Obviusly i try with a well know models and it doesn t work, as well as the mine custom model

Best Regards

Outcomes