AnsweredAssumed Answered

Alfresco Lab as a Windows Service

Question asked by mg0502 on Apr 23, 2009
Hello to everyone,
I have tried to configure Alfresco as a service following the guide, but I have a trouble: if I execute it using alf_start.bat it wokrs well; if I try to use the service it crashes after some minutes without giving the access to web interface.

Here the debug code:

C:\Alfresco\tomcat\bin>tomcat6.exe //TS//alfresco

23-apr-2009 14.03.15 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
23-apr-2009 14.03.15 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1056 ms
23-apr-2009 14.03.15 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
23-apr-2009 14.03.15 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
23-apr-2009 14.03.15 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
23-apr-2009 14.03.30 org.apache.catalina.core.StandardContext addApplicationList
ener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is
already configured for this context. The duplicate definition has been ignored.
14:04:07,273  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading pro
perties file from class path resource [alfresco/file-servers.properties]
14:04:24,476  INFO  [domain.schema.SchemaBootstrap] Schema managed by database d
ialect org.hibernate.dialect.MySQLInnoDBDialect.
14:04:27,008  INFO  [domain.schema.SchemaBootstrap] No changes were made to the
schema.
14:04:28,320 User:System ERROR [util.exec.RuntimeExecBootstrapBean] Bootstrap co
mmand failed:
Execution result:
   os:         Windows XP
   command:    [C:/Alfresco/OpenOffice.org/program/soffice, -accept=socket,host=
localhost,port=8100;urp;StarOffice.ServiceManager, -env:UserInstallation=file://
/C:/Alfresco/alf_data/oouser, -nologo, -headless, -nofirststartwizard, -nocrashr
ep, -norestore]
   succeeded:  false
   exit code:  2
   out:
   err:        CreateProcess: C:\Alfresco\OpenOffice.org\program\soffice -accept
=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager -env:UserInstalla
tion=file:///C:/Alfresco/alf_data/oouser -nologo -headless -nofirststartwizard -
nocrashrep -norestore err
14:04:29,742 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco ro
ot data directory ('dir.root') is: C:\Alfresco\alf_data
14:04:29,820 User:System INFO  [admin.patch.PatchExecuter] Checking for patches
to apply …
14:04:30,352 User:System INFO  [admin.patch.PatchExecuter] No patches were requi
red.
14:04:30,352 User:System INFO  [repo.module.ModuleServiceImpl] Found 0 module(s)
.
14:04:31,758 User:System WARN  [alfresco.util.OpenOfficeConnectionTester] An ini
tial OpenOffice connection could not be established.
14:04:31,774 User:System INFO  [service.descriptor.DescriptorService] Alfresco J
VM - v1.5.0_18-b02; maximum heap size 493,063MB
14:04:31,789 User:System WARN  [service.descriptor.DescriptorService] Alfresco J
VM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
14:04:31,789 User:System INFO  [service.descriptor.DescriptorService] Alfresco s
tarted (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed versi
on 3.0.0 (Stable 1526) schema 1002
23-apr-2009 14.04.53 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
14:05:05,743  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Fram
ework
23-apr-2009 14.05.06 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive studio.war
14:05:18,634  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'webscripts.container' defined in class path resource [alfresco/webscript
-framework-application-context.xml]: Cannot create inner bean 'org.alfresco.web.
scripts.atom.AtomService#147fc78' of type [org.alfresco.web.scripts.atom.AtomSer
vice] while setting bean property 'scriptObjects' with key [TypedStringValue: va
lue [atom], target type [null]]; nested exception is org.springframework.beans.f
actory.BeanCreationException: Error creating bean with name 'org.alfresco.web.sc
ripts.atom.AtomService#147fc78' defined in class path resource [alfresco/webscri
pt-framework-application-context.xml]: Cannot resolve reference to bean 'webscri
pts.abdera' while setting bean property 'abderaService'; nested exception is org
.springframework.beans.factory.BeanCreationException: Error creating bean with n
ame 'webscripts.abdera' defined in class path resource [alfresco/webscript-frame
work-application-context.xml]: Invocation of init method failed; nested exceptio
n is java.lang.OutOfMemoryError: PermGen space
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'org.alfresco.web.scripts.atom.AtomService#147fc78' defined in
class path resource [alfresco/webscript-framework-application-context.xml]: Can
not resolve reference to bean 'webscripts.abdera' while setting bean property 'a
bderaService'; nested exception is org.springframework.beans.factory.BeanCreatio
nException: Error creating bean with name 'webscripts.abdera' defined in class p
ath resource [alfresco/webscript-framework-application-context.xml]: Invocation
of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen s
pace
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'webscripts.abdera' defined in class path resource [alfresco/w
ebscript-framework-application-context.xml]: Invocation of init method failed; n
ested exception is java.lang.OutOfMemoryError: PermGen space
Caused by: java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:1847)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:890)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1354)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1233)
        at org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:22
8)
        at org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:22
2)
        at org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
        at org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
        at org.apache.abdera.util.ServiceUtil.newFactoryInstance(ServiceUtil.jav
a:97)
        at org.apache.abdera.util.AbderaConfiguration.newFactoryInstance(AbderaC
onfiguration.java:273)
        at org.apache.abdera.Abdera.newFactory(Abdera.java:210)
        at org.apache.abdera.Abdera.<init>(Abdera.java:90)
        at org.apache.abdera.Abdera.<init>(Abdera.java:81)
        at org.alfresco.web.scripts.atom.AbderaServiceImpl.afterPropertiesSet(Ab
deraServiceImpl.java:84)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:261)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:215)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveManagedMap(BeanDefinitionValueResolver.java:314)
23-apr-2009 14.05.18 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
23-apr-2009 14.05.18 org.apache.catalina.core.StandardContext start
GRAVE: Context [/studio] startup failed due to previous errors
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space

C:\Alfresco\tomcat\bin>

Outcomes