JahiaSitesBaseService API [Our Ref:CPT60548]
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <OF95E5A2F7.7E0C5603-ON42256F00.00360548-42256F00.0036BF50@crb.apmoller.net> |
hi there,
I'm trying to use the Jahia API to create pages and then to set ACLs on
the pages.
As a starting point, I'm trying to use the JahiaService classes - like
JahiaSitesBaseService to get a handle to the site and then perhaps
JahiaPageBaseService to get a handle to a page.
When calling the static getInstance() methods from my servlet, I get an
exception (extract attached below). What is the correct way of using the
API? Should I be able to use the JahiaServices from my servlets?
756594 DEBUG org.jahia.exceptions.JahiaException.dispatchRequest:335 -
called.
org.jahia.exceptions.JahiaException: Can't access application
NCOP_Portlet_Test, Servlet Exception occured in getAppOutput dispatching
process ! Message = [javax.servlet.ServletException: Error instantiating
servlet class org.ncop.minimal.HelloServlet], root cause:Error
instantiating servlet class org.ncop.minimal.HelloServlet root
cause=javax.servlet.ServletException: Error instantiating servlet class
org.ncop.minimal.HelloServlet
at
org.jahia.services.applications.JahiaApplicationsDispatchingServletService.dispatchRequest(JahiaApplicationsDispatchingServletService.java:335)
at
org.jahia.services.applications.JahiaApplicationsDispatchingServletService.getAppOutputNoAction(JahiaApplicationsDispatchingServletService.java:653)
at
org.jahia.services.applications.JahiaApplicationsDispatchingServletService.getAppOutput(JahiaApplicationsDispatchingServletService.java:910)
at
org.jahia.services.fields.ContentApplicationField.getValue(ContentApplicationField.java:102)
at
org.jahia.services.fields.ContentField.getValue(ContentField.java:265)
at
org.jahia.data.fields.JahiaApplicationField.load(JahiaApplicationField.java:65)
at
org.jahia.services.fields.JahiaFieldBaseService.loadField(JahiaFieldBaseService.java:811)
at
org.jahia.services.fields.JahiaFieldBaseService.loadField(JahiaFieldBaseService.java:774)
at
org.jahia.services.containers.ContainerFactory.fullyLoadContainer(ContainerFactory.java:147)
at
org.jahia.services.containers.ContainerFactoryProxy.load(ContainerFactoryProxy.java:136)
at
org.jahia.data.containers.JahiaContainer.checkProxy(JahiaContainer.java:870)
at
org.jahia.data.containers.JahiaContainer.getField(JahiaContainer.java:462)
at
org.jahia.taglibs.field.AbstractFieldTag.doStartTag(AbstractFieldTag.java:142)
thanks,
Manoj
This e-mail is intended exclusively for the addressee.
If you are not the addressee you must not read, copy, use or disclose
the e-mail nor the content; please notify us immediately (by clicking "Reply") and delete this e-mail.