cancel
Showing results for 
Search instead for 
Did you mean: 

installing from SVN. cant get it working ?

clubbing80s
Champ in-the-making
Champ in-the-making
Hi
I'm new to working with  java and tomcat, so before asking alot of questions,
I'm looking for a clear document that explains all the requirements, including environment variables, list of configurations files and settings to set  so that all the features can be configured..

I have trawled through the wiki piecing stuff together and I can't get it to work yet.

please advise
System configuration -
Fedora 12 i386
tomcat6.noarch
tomcat6-admin-webapps.noarch
tomcat6-docs-webapp.noarch 
tomcat6-javadoc.noarch     
tomcat6-jsp-2.1-api.noarch 
tomcat6-lib.noarch         
tomcat6-servlet-2.5-api.noarch
tomcat6-webapps.noarch     
ant.i686                                  
ant-antlr.i686
ant-apache-bcel.i686
ant-apache-log4j.i686                            
ant-apache-oro.i686
ant-apache-regexp.i686                     
ant-apache-resolver.i686                   
ant-commons-logging.i686                   
ant-commons-net.i686                       
ant-contrib.noarch                         
ant-contrib-javadoc.noarch                 
ant-javadoc.i686                           
ant-javamail.i686                          
ant-jdepend.i686                           
ant-jmf.i686 
ant-jsch.i686
ant-junit.i686
ant-manual.i686                            
ant-nodeps.i686                            
ant-scala.noarch                           
ant-scripts.i686                           
ant-swing.i686
ant-trax.i686
mysql.i686                                 
mysql-connector-odbc.i686
mysql-devel.i686                      
mysql-embedded.i686                      
mysql-libs.i686                           
mysql-server.i686   

environment variables

export JAVA_OPTS="-Xmx1024M -XX:MaxPermSize=128M -Dcom.sun.management.jmxremote -Dalfresco.home=."
export JAVA_HOME="/opt/jre1.6.0_18"
export ANT_HOME="/usr/share/ant"
export MVN_HOME="/opt/apache-maven-2.2.1"
export CATALINA_HOME="/usr/share/tomcat6"
export VIRTUAL_TOMCAT_HOME="/opt/alfresco/HEAD/root/virt-tom"
export TOMCAT_HOME=$CATALINA_HOME
export APP_TOMCAT_HOME=$CATALINA_HOME
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$MVN_HOME/bin:$ANT_HOME/bin:$PATH

configuration

/usr/share/tomcat6/shared/classes/alfresco-global.properties

###############################
## Common Alfresco Properties #
###############################
#
# Sample custom content and index data location
#————-
dir.root=/opt/alfresco/alf_data
#
# Sample database connection properties
#————-
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306
#
# External locations
#————-
#ooo.exe=soffice
#ooo.enabled=false
#img.root=./ImageMagick
#swf.exe=./bin/pdf2swf

#ooo.exe=/usr/lib/openoffice/program/soffice
ooo.exe=/usr/lib/openoffice.org3/program/soffice.bin
ooo.enabled=true
img.root=/usr
swf.exe=/usr/bin/pdf2swf

#
# CIFS Support
#————————
cifs.enabled=true
cifs.serverName=dms
cifs.ipv6.enabled=false
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139

##
## Sharepoint
##————-
#vti.server.port=7070
#vti.alfresco.deployment.context=/alfresco
#vti.alfresco.alfresoHostWithPort=http://192.168.1.1:8080
#vti.share.shareHostWithPort=http://192.168.1.1:8080

Hardware
CPU Intel(R) Pentium(R) 4 CPU 3.00GHz Dual core
Memory 1 Gig

Regards

Greg
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
It would be useful if you could say what you've already tried and how far you got before hitting problems… and what those problems are.

Please help others to help you.

Thanks,
Mike

clubbing80s
Champ in-the-making
Champ in-the-making
Hi Mike .
I was just hopping there was more information out there before I started asking questions …

here is whats in my log -  /var/log/tomcat6/catalina.out

Welcome input.

Errors

23:11:48,843  ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
23:11:48,843  ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
23:11:49,025  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
23:11:49,026  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
23:11:49,021  ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Permission denied
23:11:49,107  ERROR [org.alfresco.fileserver] java.net.BindException: Permission denied
23:11:49,107  ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.socketBind(Native Method)
23:11:49,107  ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.bind(Unknown Source)
23:11:49,107  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.bind(Unknown Source)
23:11:49,107  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(Unknown Source)
23:11:49,107  ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(Unknown Source)
23:11:49,107  ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:555)
23:11:49,108  ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Unknown Source)

23:11:50,433  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
23:11:50,434  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]


Jul 23, 2010 11:12:21 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
   at java.io.ObjectInputStream.<init>(Unknown Source)
   at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
   at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)
   at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
   at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
   at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4358)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 23, 2010 11:12:21 PM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.io.EOFException
   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
   at java.io.ObjectInputStream.<init>(Unknown Source)
   at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
   at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:362)
   at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
   at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
   at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4358)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
23:12:23,272  ERROR [impl.fsr.ValidateCommand] Unable to validate
java.lang.NullPointerException
   at org.alfresco.deployment.impl.server.Target.validateMetaData(Target.java:145)
   at org.alfresco.deployment.impl.server.Target.validateMetaData(Target.java:123)
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.validate(FileSystemDeploymentTarget.java:864)
   at org.alfresco.deployment.impl.fsr.ValidateCommand.run(ValidateCommand.java:53)
   at org.alfresco.deployment.impl.server.DeploymentCommandQueueHousekeeper.poll(DeploymentCommandQueueHousekeeper.java:42)
   at org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl.run(DeploymentReceiverEngineImpl.java:192)
   at java.lang.Thread.run(Unknown Source)

error - alfresco.log (Permission denied) - I have set the path to /var/log/tomcat6/alfresco.log

40 -rw-r–r– 1 tomcat tomcat 341270 2010-07-23 23:12 /var/log/tomcat6/alfresco.log

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: alfresco.log (Permission denied)
   at java.io.FileOutputStream.openAppend(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
   at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
   at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:216)
   at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
   at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
   at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
   at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
   at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
   at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
   at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
   at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
   at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
   at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
   at org.apache.log4j.Logger.getLogger(Logger.java:105)
   at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283)
   at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1040)
   at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:838)
   at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
   at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
   at org.apache.myfaces.webapp.StartupServletContextListener.<clinit>(StartupServletContextListener.java:44)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3878)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

log4j error - DatePattern options are not set for appender - I have tried changing the config, but with no results, 

log4j:ERROR Either File or DatePattern options are not set for appender [File].
23:12:34,640  ERROR [extensions.config.BaseConfigService] Input stream invalid - skipped for source: classpath:alfresco/form-config.xml'
org.springframework.extensions.config.ConfigException: 06230000 Failed to parse config stream
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:198)
   at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:253)
   at org.springframework.extensions.config.BaseConfigService.parse(BaseConfigService.java:283)
   at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:131)
   at org.springframework.extensions.config.BaseConfigService.init(BaseConfigService.java:94)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

I get alot of these errors : OutOfMemoryError: PermGen

Caused by: java.lang.OutOfMemoryError: PermGen space
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(Unknown Source)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
   at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
   at org.alfresco.web.config.forms.FormsElementReader.parse(FormsElementReader.java:61)
   at org.springframework.extensions.config.xml.XMLConfigService.parseConfigElement(XMLConfigService.java:374)
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:187)
   at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:253)
   at org.springframework.extensions.config.BaseConfigService.parse(BaseConfigService.java:283)
   at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:131)
   at org.springframework.extensions.config.BaseConfigService.init(BaseConfigService.java:94)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
23:12:37,947  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webscripts.abdera' defined in URL [jar:file:/var/lib/tomcat6/webapps/share/WEB-INF/lib/spring-webscripts-1.0.0.CI-SNAPSHOT.jar!/org/springframework/extensions/webscripts/spring-webscripts-application-context.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   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
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(Unknown Source)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
   at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
   at org.apache.abdera.i18n.iri.IRI.preinit(IRI.java:659)
   at org.apache.abdera.Abdera.<init>(Abdera.java:96)
   at org.apache.abdera.Abdera.<init>(Abdera.java:81)
   at org.springframework.extensions.webscripts.atom.AbderaServiceImpl.afterPropertiesSet(AbderaServiceImpl.java:78)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
Jul 23, 2010 11:12:50 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 23, 2010 11:12:50 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/share] startup failed due to previous errors
Jul 23, 2010 11:12:57 PM org.apache.catalina.session.StandardManager stop
SEVERE: Exception unloading sessions to persistent storage
java.lang.OutOfMemoryError: PermGen space
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
   at java.lang.Class.getDeclaredMethod(Unknown Source)
   at java.io.ObjectStreamClass.getPrivateMethod(Unknown Source)
   at java.io.ObjectStreamClass.access$1700(Unknown Source)
   at java.io.ObjectStreamClass$2.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.io.ObjectStreamClass.<init>(Unknown Source)
   at java.io.ObjectStreamClass.lookup(Unknown Source)
   at java.io.ObjectOutputStream.writeObject0(Unknown Source)
   at java.io.ObjectOutputStream.writeObject(Unknown Source)
   at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:510)
   at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
   at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4573)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4474)
   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:526)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
   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:583)

and more memory errors and my cpu it sitting at 100% utalisation

Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50504]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50502]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50501]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50506]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50505]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:39795]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50508]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[10.0.0.250:50507]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AlfrescoJbpmJobExecutor:10.0.0.250:1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "MessageDispatcher" java.lang.OutOfMemoryError: PermGen space

mrogers
Star Contributor
Star Contributor
First increase the size of your PermGen space.   That's well documented (in these forums) and the installation guide.
Second.   Allow write permission to the log file directory for the user that is running alfresco.
Third.  If you run as an unprivileged user you will need to either use tcp ports outside the reserved range.     And possibly map them with the portmapper.

I suggest you run as root first and once you are familiar with alfresco then run it with its own account.

And I see from your first positing you only have 1GB of memory.  That's going to be a problem.     While you could de-tune alfresco (reduce the number of threads etc) to get it to run in a smaller memory space a trip to the shops is far easier.

clubbing80s
Champ in-the-making
Champ in-the-making
Ok I have given up on working from the svn for now . I installed from Alfresco-Community-3.3g-Linux-x86-Install

My question is , what is the difference between 

/opt/Alfresco/tomcat/shared/classes

and

/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/

configuration files ?

mrogers
Star Contributor
Star Contributor
The files under WEB-INF are private to alfresco.   The files in shared\classes are yours.