AnsweredAssumed Answered

Help in running Alfresco as a Windows Service

Question asked by msevestre on May 20, 2009
Bonjour

I just setup latest Alfresco community with MySQL 5.1

If I manually launch the Alfresco server ("Start Alfresco Server" in Start menu of XP), everything is running fine and Alfresco is available on port 8080 of the computer.

Problem: my computer is a server atht might be able to run Alfresco without nobody logged in… as far as I know, the only way is to user Windows Services (if any other option, please let me know !).

Thanks to Google, I was abel to setup the service (in <Alfresco>\tomcat\) by running:
"service.bat install alfresco"

then I run the service in console mode to test :
tomcat6.exe //TS//alfresco

runtime is stopping with the following trace:

20 mai 2009 12:02:08 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
20 mai 2009 12:02:08 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 704 ms
20 mai 2009 12:02:08 org.apache.catalina.core.StandardService start
INFO: D+marrage du service Catalina
20 mai 2009 12:02:08 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
20 mai 2009 12:02:08 org.apache.catalina.startup.HostConfig deployWAR
INFO: D+ploiement de l'archive alfresco.war de l'application web
20 mai 2009 12:02:10 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
12:02:31,406  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
12:02:44,750  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:02:45,734  INFO  [domain.schema.SchemaBootstrap] No changes were made to theschema.
12:02:47,796 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\Alfresco_AVV\alf_data
12:02:47,843 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
12:02:48,156 User:System INFO  [admin.patch.PatchExecuter] No patches were required.
12:02:48,171 User:System INFO  [repo.module.ModuleServiceImpl] Found 1 module(s)
.
12:02:48,218 User:System INFO  [repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.0.
java.lang.UnsatisfiedLinkError: no Win32NetBIOS in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at org.alfresco.jlan.netbios.win32.Win32NetBIOS.<clinit>(Win32NetBIOS.java:839)
        at org.alfresco.filesys.ServerConfigurationBean.getLocalServerName(ServerConfigurationBean.java:2936)
        at org.alfresco.filesys.ServerConfigurationBean.processCIFSServerConfig(ServerConfigurationBean.java:711)
        at org.alfresco.filesys.ServerConfigurationBean.init(ServerConfigurationBean.java:546)
        at org.alfresco.filesys.ServerConfigurationBean.onApplicationEvent(ServerConfigurationBean.java:3098)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12:02:48,531 User:System ERROR [alfresco.smb.protocol] Error accessing Win32 NetBIOS, check DLL is on the path
12:02:48,937 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_12-b04; maximum heap size 246,563MB
12:02:48,937 User:System WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 246,563MB is less than recommended 512MB
12:02:48,937 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (Stable 1526) schema 1002
2009-05-20 12:02:49.078::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-05-20 12:02:49.140::INFO:  jetty-6.1.14
2009-05-20 12:02:49.203::INFO:  Started SocketConnector@0.0.0.0:7070
20 mai 2009 12:03:06 org.apache.catalina.startup.HostConfig deployWAR
INFO: D+ploiement de l'archive share.war de l'application web
12:03:11,562  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
20 mai 2009 12:03:11 org.apache.catalina.startup.HostConfig deployWAR
INFO: D+ploiement de l'archive studio.war de l'application web
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Could somebody tell me what's going wrong ?

thanks for any help !

Regards,
Matthieu

Outcomes