AnsweredAssumed Answered

Alfresco runs fine unless I run as a Windows Service

Question asked by dfarrow on Mar 1, 2010
Latest reply on Mar 6, 2010 by sselvan
I set up Alfresco Community Edition 3.2r2 on our Windows Server 2003 machine.  The Alfresco and Share apps run fine when I manually start the server (using the "Start Alfresco Server" shortcut in the "Start" menu).

Next, I installed Alfresco as a Windows Service using the command:


service.bat install Alfresco tomcat6 //US//Tomcat6 –JvmMs=128 –JvmMx=512 –JvmSs=96 ++JvmOptions "-XX:MaxPermSize=128m"


When I start this service, however, I can't see the Alfresco and Share apps.  When I go to the "Alfresco" app (http://myserver:8090/alfresco/), I see:


HTTP Status 404 -

type Status report
message
description The requested resource () is not available.



And when I go to the Share app (http://myserver:8090/share/page/site-index), I see:

exception

javax.servlet.ServletException: org.alfresco.error.AlfrescoRuntimeException: 02010002 Unable to retrieve object: site-index of type: page
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:146)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

org.alfresco.error.AlfrescoRuntimeException: 02010002 Unable to retrieve object: site-index of type: page
   org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:140)
   org.alfresco.web.site.Model.getObject(Model.java:513)
   org.alfresco.web.site.Model.getPage(Model.java:165)
   org.alfresco.web.site.SlingshotPageMapper.executeMapper(SlingshotPageMapper.java:188)
   org.alfresco.web.site.AbstractPageMapper.execute(AbstractPageMapper.java:62)
   org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:109)
   org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Please advise.

Outcomes