cancel
Showing results for 
Search instead for 
Did you mean: 

3.5.a startup problem [Solved]

ebogaard
Champ on-the-rise
Champ on-the-rise
I've been trying to use 3.5.a, but didn't succeed. Keep on getting the following error:

Apr 20, 2011 11:29:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 20, 2011 11:29:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors

I re-used a 3.4.d install (on CentOS 5.6), even tried upgrading to Tomcat 6.0.32, but without success.
The ports Alfresco wants to use aren't in use by another application. Even tried a restart.

Is there something I have to be aware of with this release? Might 3.5.a need Tomcat 7?
Has this nightly release been tested to function?


But maybe more important: I'm only trying this nightly version to check if it resolves some of the nasty bugs in 3.4.d Share, which weren't resolved in 3.4.e. Are the fixes from 3.4.0 and 3.4.1 in 3.5.a?

How can I (and others) check in which versions the bugs are fixed? 3.4.e was released after 3.4.0 and 3.4.1, but nog of the bugfixes were in 3.4.e. At least, that's what I'm thinking.
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
You will need to post more information than "SEVERE: Error listenerStart" - exception message detail?

To clarify the bug merging process and what is in 3.4.e/3.5.a:
>Are the fixes from 3.4.0 and 3.4.1 in 3.5.a?
Yes.

>How can I (and others) check in which versions the bugs are fixed?
SVN logs. Our SVN repo is public, all merged bug fixes are detailed with ALF-XYZ numbers in the commit comments for the merges. You can use fisheye.alfresco.com or go directly to svn.

>3.4.e was released after 3.4.0 and 3.4.1, but none of the bugfixes were in 3.4.e. At least, that's what I'm thinking.
Correct. The HEAD trunk codeline was "frozen" after 3.4.d except for L10N work and Activiti integration work so that it could go ahead without impact from other merges. So 3.4.e is 3.4.d+L10N+Activiti. However since then the merges from 3.4.0, 3.4.1 and new development branches have all been pulled over, so that is what you get in 3.5.a.

Hope this helps!

Kev

ebogaard
Champ on-the-rise
Champ on-the-rise
Thanks about the update/info about merging bugfixes. I'll take a look at fisheye.

The rest of the errors in catalina.out:

Apr 20, 2011 11:29:01 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/alfresco35/java/jre/lib/i386/server:/opt/alfresco35/java/jre/lib/i386:/opt/alfresco35/java/jre/../lib/i386:/opt/alfresco35/common/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
Apr 20, 2011 11:29:01 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 20, 2011 11:29:01 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1332 ms
Apr 20, 2011 11:29:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 20, 2011 11:29:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Apr 20, 2011 11:29:02 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Apr 20, 2011 11:29:02 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Apr 20, 2011 11:29:15 AM 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.
Apr 20, 2011 11:29:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 20, 2011 11:29:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Apr 20, 2011 11:29:50 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7efaf6]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@8e683a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Apr 20, 2011 11:29:50 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@15cd6e5]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Apr 20, 2011 11:29:52 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Apr 20, 2011 11:29:52 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
Apr 20, 2011 11:30:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Apr 20, 2011 11:30:03 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 20, 2011 11:30:04 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 20, 2011 11:30:04 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/24  config=null
Apr 20, 2011 11:30:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 62122 ms

This is all I have in catalina.out.

mrogers
Star Contributor
Star Contributor
You need your alfresco.log file.   There's no useful information above.

ebogaard
Champ on-the-rise
Champ on-the-rise
Sorry for that. There are lots or errors about hibernate (thought Alfresco didn't use that anymore?):

12:02:18,600 WARN  [org.hibernate.cfg.SettingsFactory] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
        at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        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)
…etc


This same error is repeated quite a lot of times.

Then the following error:

12:02:38,694 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RepoServerMgmt' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'transactionService' while sett
ing bean property 'transactionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionService' defined in class path resource [alfresco/core-services-context.xml]:
Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defin
ed in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Erro
r creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' whi
le setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invoc
ation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

So againt about Hibernate.
Checked the new repository.properties for entries about hibernate and setting the MySQL dialect, but can't find anything that's not in my alfresco-global.properties form 3.4.d which I re-used (but I might be missing something:

db.driver=org.gjt.mm.mysql.Driver
db.name=alfresco35
db.username=<USER>
db.password=<PASS>
db.host=localhost
db.port=3306
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}

The db 'alfresco35' exists and MySQL is running.

ebogaard
Champ on-the-rise
Champ on-the-rise
Sorry guys, my mistake.

I copied my old 3.4.d test-installation, which has a lot of customizations and extra's. When I removed those and cleared the db and alf_data, all was well.