AnsweredAssumed Answered

SiteService not found

Question asked by nilsw on Dec 7, 2009
Latest reply on Dec 8, 2009 by nilsw
I want to use SiteService in a Java-backed web script, so I have included this reference in the Spring context:

<property name="siteService" ref="SiteService"/>

and a corresponding property in the web script class. But, on startup, the alfresco webapp won't load due to

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webscript.com.cadq.alfresco.common.slingshot.documentlibrary.action.order-print.post' defined in file [C:\Users\nils.weinander\Program\Alfresco-3.1\tomcat\shared\classes\alfresco\extension\cadq-projektnavet-alfresco-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/alfresco/service/cmr/site/SiteService
Caused by: java.lang.NoClassDefFoundError: org/alfresco/service/cmr/site/SiteService

I notice that the org/alfresco/service/cmr/site package is not present in alfresco-repository.jar, which other service packages are.

What do I need to do for my web script to find SiteService?

Alfresco version is community edition 3.1.

Outcomes