cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.0 is not starting up in windows <solved>

vijayakumar
Champ in-the-making
Champ in-the-making
Hi,

I have installed Alfresco-Enterprise- 3.0.0-Full-Setup.exe in my windows XP machine. when I restarted my Alfresco server from c:/alfresco, my alfresco server not gets started and am getting the following response.

C:\Alfresco>virtual_start
starting virtual-tomcat
Starting Tomcat…
Using CATALINA_BASE:   c:\alfresco\virtual-tomcat
Using CATALINA_HOME:   c:\alfresco\virtual-tomcat
Using CATALINA_TMPDIR: c:\alfresco\virtual-tomcat\temp
Using JRE_HOME:        C:\Program Files\Java\jre1.5.0

C:\Alfresco>


Hence am manually starting tomcat and then virtual-tomcat  but my virtual-tomcat  was not sucessful and hence am unable to preview my files in the user sandbox. The log am getting is as follows:

Nov 25, 2008 5:49:36 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@186df0f: display name [org.springframework.context.support.FileSystemXmlApplicationContext@186df0f]; startup date [Tue Nov 25 17:49:36 GMT+05:30 2008]; root of context hierarchy
Nov 25, 2008 5:49:36 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Nov 25, 2008 5:49:36 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@186df0f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@c44b88
Nov 25, 2008 5:49:36 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-shared.properties]
Nov 25, 2008 5:49:36 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
Nov 25, 2008 5:49:36 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c44b88: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Nov 25, 2008 5:50:36 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c44b88: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Nov 25, 2008 5:50:36 PM org.alfresco.catalina.host.AVMHost sleepBeforeRetryingConnection
WARNING: Retrying connection…

The above gets keep on repeating….
and finally am getting the error message as

Cjava.lang.ClassNotFoundException: org.apache.derby.impl.jdbc.EmbedSQL
Exception (no security manager: RMI class loader disabled)



In alfresco-virtserver.properties I have changed the content as follows:

alfresco.virtserver.domain=172-20-56-113.ip.alfrescodemo.net

where 172-20-56-113 is my IP (i.e. localhost) address…


I also tried to change the following in alfresco-shared.properties

from
alfresco.rmi.services.port=50500
to
alfresco.rmi.services.port=8180

Please help me in this regard
6 REPLIES 6

zmicer
Champ in-the-making
Champ in-the-making
Hello!

We at springsite.com expirienced the simular problem, but log files were without exception, just this looped message

INFO: Looking for RMI registry at port '50501'
05.12.2008 0:39:08 org.springframework.remoting.rmi.RmiRegistryFactoryBean getRegistry
INFO: Could not detect RMI registry - creating new one
05.12.2008 0:39:08 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@38d460: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
05.12.2008 0:39:08 org.alfresco.catalina.host.AVMHost sleepBeforeRetryingConnection
WARNING: Retrying connection…

We use for now Labs3c build for 24-Nov-2008

I have performed investigation, and results are as follows. May be thay would be usefull for someone.

Alfresco server contains the following files:

%Alfresco_installed_dir%\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\
1) alfresco-shared.properties with line
alfresco.rmi.services.port=50500

2) repository.properties with the following
avm.rmi.service.port=50501
avmsync.rmi.service.port=50502
attribute.rmi.service.port=50503
authentication.rmi.service.port=50504
repo.rmi.service.port=50505
action.rmi.service.port=50506

And virtual server has the file

%Alfresco_installed_dir%\virtual-tomcat\conf\alfresco-shared.properties
which has alfresco.rmi.services.port=50500 (the same port as in the server, but a name of properties is the same, so logically it ok )

and also a file

alfresco-virtserver.properties with property which was set to
alfresco.virtserver.jmxrmi.port=50501

but at the server this port is taken for AVM rmi port, but AVM is kind of Control Version System, and it doens't relate to virtualization server.

So changing  this property to another value helped me, and virtual server started properly.

avm.rmi.service.port=50509

Dzmitry Harachka,
http://www.springsite.com
http://www.zmicer.com

vijayakumar
Champ in-the-making
Champ in-the-making
Thanks its working fine for me now..

rhuffstedtler
Champ in-the-making
Champ in-the-making
I am experiencing the same problem with labs 3.0c on Fedora 10, but the suggested fix isn't working for me.  I may have misread the suggestion about which file the port number needed to be changed in.  I changed it in both <Alfresco>/virtual-tomcat/conf/alfresco-shared.properties and <Alfresco>/virtual-tomcat/alfresco-virtserver.properties.  Doing a netstat -an before starting did not show anything already bound to the port.

Here is the relevant log snippet.

Feb 10, 2009 8:03:38 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1ce1bea: display name [org.springframework.context.support.FileSystemXmlApplicationContext@1ce1bea]; startup date [Tue Feb 10 08:03:38 GMT-05:00 2009]; root of context hierarchy
Feb 10, 2009 8:03:38 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/opt/Alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Feb 10, 2009 8:03:38 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@1ce1bea]: org.springframework.beans.factory.support.DefaultListableBeanFactory@103de90
Feb 10, 2009 8:03:38 AM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/Alfresco/virtual-tomcat/conf/alfresco-shared.properties]
Feb 10, 2009 8:03:38 AM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/Alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
Feb 10, 2009 8:03:38 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@103de90: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Feb 10, 2009 8:03:38 AM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@103de90: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Feb 10, 2009 8:03:38 AM org.alfresco.catalina.host.AVMHost sleepBeforeRetryingConnection
WARNING: Retrying connection…

Here is the relevant line from alfresco-shared.properties:

# Remote RMI services
alfresco.rmi.services.port=50600
alfresco.rmi.services.host=localhost

and here is the relevant line from alfresco-virtserver.properties:

alfresco.virtserver.jmxrmi.port=50600

I feel like I'm overlooking something obvious, but I've been working on this for about an hour and it's getting less obvious by the moment.   Smiley Indifferent

rhuffstedtler
Champ in-the-making
Champ in-the-making
A little closer reading revealed my misunderstanding.  The property declaration in repository.properties was the one I needed to be modifying.

kaplan
Champ in-the-making
Champ in-the-making
Just letting folks know that I also ran into the same problem running Alfresco 3 with a clean Ubuntu 8.10 install. 

Dzmitry Harachka's suggestion of changing avm.rmi.service.port resolved the immediate problem and allowed Alfresco to eventually start.

sachinj23
Champ in-the-making
Champ in-the-making
Hello

Me too facing similar problem while starting virtual server.

I have done changes as per Dzmitry's suggestion but fail to get through.

Also I am unable to find any file with name repository.properties under any folder in  %ALFRESCO_HOME%

I am gettig following error as captured in logfile C:\Alfresco\virtual-tomcat\logs\catalina.2009-03-05
———————————————————————————————————————————–
Mar 5, 2009 4:32:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0/bin;C:\Alfresco\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jre1.6.0_03\bin
Mar 5, 2009 4:32:57 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Mar 5, 2009 4:32:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 686 ms
Mar 5, 2009 4:32:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 5, 2009 4:32:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Mar 5, 2009 4:32:57 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1617189: display name [org.springframework.context.support.FileSystemXmlApplicationContext@1617189]; startup date [Thu Mar 05 16:32:57 IST 2009]; root of context hierarchy
Mar 5, 2009 4:32:57 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Mar 5, 2009 4:32:57 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@1617189]: org.springframework.beans.factory.support.DefaultListableBeanFactory@12d15a9
Mar 5, 2009 4:32:57 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-shared.properties]
Mar 5, 2009 4:32:57 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:C:/Alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
Mar 5, 2009 4:32:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@12d15a9: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Mar 5, 2009 4:32:58 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@12d15a9: defining beans [virtserver-properties,avmReauthenticatingAdvisor,reauthenticatingAdvice,clientTicketHolder,authenticationService,avmRemote,avmRemoteTransport,avmRemoteTransportRaw,attributeService,attributeServiceTransport,attributeServiceTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of factory hierarchy
Mar 5, 2009 4:32:58 PM org.alfresco.catalina.host.AVMHost sleepBeforeRetryingConnection
WARNING: Retrying connection…
———————————————————————————————————————————–

Following are the configurations under

C:\Alfresco\virtual-tomcat\conf\alfresco-shared.properties

# Remote RMI services
alfresco.rmi.services.port=50500
alfresco.rmi.services.host=localhost

and
C:\Alfresco\virtual-tomcat\conf\alfresco-virtserver.properties

alfresco.virtserver.domain=127-0-0-1.ip.alfrescodemo.net
alfresco.virtserver.cache-control.max-age.preview=4
alfresco.virtserver.cache-control.max-age.workarea=1800
alfresco.virtserver.cache-control.max-age.staging=1800
alfresco.virtserver.cache-control.max-age.default=1800

alfresco.virtserver.http.port=8180

alfresco.virtserver.jmxrmi.port=50501

alfresco.virtserver.connection.retry.interval=5000

and file C:\Alfresco\tomcat\shared\classes\alfresco\extension\custom-repository.properties

# Select 0 to use a random unused port.
#
avm.rmi.service.port=50501
#avmsync.rmi.service.port=50502
#attribute.rmi.service.port=50503
#authentication.rmi.service.port=50504
#repo.rmi.service.port=50505
#action.rmi.service.port=50506

I would appriciate if anyone could guide me through this.

Regards
Sachinj23