<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FAIL - Application at context path [/alfresco] could not be started in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92331#M27384</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialect': FactoryBean threw exception on object creation; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It seems the database connection properties in your alfresco-global.properties did not work ,alfresco is still using its'default database connection properties.&lt;/P&gt;&lt;P&gt;it seems /home/user/apache-tomcat-9.0.37/shared/classes is not in the classpath,please check you configured shared.loader correctly&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 03:06:53 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-08-11T03:06:53Z</dc:date>
    <item>
      <title>FAIL - Application at context path [/alfresco] could not be started</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92328#M27381</link>
      <description>&lt;P&gt;Hello, I'm having trouble starting alfresco.war in tomcat server. I'm following the guide at&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.0/concepts/ch-install.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.0/concepts/ch-install.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I click start for /alfresco in the tomcat server i get the error&amp;nbsp;&lt;SPAN&gt;FAIL - Application at context path [/alfresco] could not be started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here's what I did.&lt;/P&gt;&lt;P&gt;1. I set up Apache Tomcat Server&lt;BR /&gt;2. I created the Postgres database(using the guide found at &lt;A href="https://docs.alfresco.com/6.0/tasks/prep-filesys-db.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.0/tasks/prep-filesys-db.html&lt;/A&gt;)&lt;BR /&gt;3. I create &amp;lt;Tomcat home&amp;gt;/shared&lt;BR /&gt;4. I create &amp;lt;Tomcat home&amp;gt;/shared/classes&lt;BR /&gt;5. I create &amp;lt;Tomcat home&amp;gt;/shared/lib&lt;BR /&gt;6. I then added "shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar"&lt;BR /&gt;to &amp;lt;TOMCAT_HOME&amp;gt;/conf/catalina.properties&lt;/P&gt;&lt;P&gt;7. I copied the postgres JDBC jar file from /home/user/alfresco-content-services-community-distribution-6.2.0-ga/web-server/lib to /home/user/apache-tomcat-9.0.37/shared/lib&lt;/P&gt;&lt;P&gt;8 I then configured the mutual TLS for solr communition(number 7 at &lt;A href="https://docs.alfresco.com/6.0/tasks/configfiles-change-path.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.0/tasks/configfiles-change-path.html&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;9. I copied the war files from /home/user/alfresco-content-services-community-distribution-6.2.0-ga/web-server to /home/user/apache-tomcat-9.0.37/webapps&lt;/P&gt;&lt;P&gt;10. I copied alfresco.xml and share.xml from /home/user/alfresco-content-services-community-distribution-6.2.0-ga/web-server/conf/Catalina/localhost to /home/user/apache-tomcat-9.0.37/conf/Catalina/localhost&lt;/P&gt;&lt;P&gt;11. I copied the postgres JDBC jar file from /home/user/alfresco-content-services-community-distribution-6.2.0-ga/web-server/lib to /home/user/apache-tomcat-9.0.37/lib&lt;/P&gt;&lt;P&gt;12. I added alfresco-global.properties to /home/user/apache-tomcat-9.0.37/shared/classes&lt;/P&gt;&lt;P&gt;alfresco.log output:&lt;/P&gt;&lt;P&gt;2020-08-05 13:27:01,236 WARN [org.springframework.web.context.support.XmlWebApplicationContext] [Catalina-utility-2] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.CustomEditorConfigurer#0' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'customPropertyEditorRegistrar' while setting bean property 'propertyEditorRegistrars' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customPropertyEditorRegistrar' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'NamespaceService' while setting bean property 'namespaceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'tenantService' while setting bean property 'tenantService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantService' defined in URL [jar:file:/home/user/apache-tomcat-9.0.37/webapps/alfresco/WEB-INF/lib/alfresco-repository-7.134.1.jar!/alfresco/mt/mt-context.xml]: Cannot resolve reference to bean 'tenantAdminDAO' while setting bean property 'tenantAdminDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantAdminDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'repoSqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionTemplate' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'repoSqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionFactory' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'dialectResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectResourceLoader' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot create inner bean 'org.springframework.beans.factory.config.PropertyPathFactoryBean#bbd3974' of type [org.springframework.beans.factory.config.PropertyPathFactoryBean] while setting bean property 'dialectClass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPathFactoryBean#bbd3974' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialect': FactoryBean threw exception on object creation; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'&lt;/P&gt;&lt;P&gt;os: ubuntu 16.04&lt;/P&gt;&lt;P&gt;JDK 14&lt;/P&gt;&lt;P&gt;tomcat 9&lt;/P&gt;&lt;P&gt;distribution.zip&lt;/P&gt;&lt;P&gt;any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:07:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92328#M27381</guid>
      <dc:creator>cranejimmy3</dc:creator>
      <dc:date>2020-08-05T18:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: FAIL - Application at context path [/alfresco] could not be started</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92329#M27382</link>
      <description>&lt;P&gt;You did not specify what exactly you set in alfresco-global.properties or what documentation you followed with regards to those settings (in other points you explicitly linked to the documentation pages used for reference). It looks to me like you might not have set the db.driver property (&lt;A href="https://docs.alfresco.com/6.2/tasks/postgresql-config.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.2/tasks/postgresql-config.html&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:26:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92329#M27382</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-08-06T07:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: FAIL - Application at context path [/alfresco] could not be started</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92330#M27383</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;Heres my alfresco-global properties&amp;nbsp; and i followed this guide&amp;nbsp;&lt;A href="https://docs.alfresco.com/community/tasks/configfiles-change-path.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/tasks/configfiles-change-path.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.0/tasks/alf-war-install.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.0/tasks/alf-war-install.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Set this property unless you have explicitly chosen to expose some repository APIs without authentication&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;solr.secureComms=https&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Custom content and index data location&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dir.root=/home/user/alfresco-content-services-community-distribution-6.2.0-ga/alf_data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dir.keystore=${dir.root}/keystore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Sample database connection properties&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;db.username=alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;db.password=alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# Choose DB connection properties for your database, e.g. for PostgreSQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;db.driver=org.postgresql.Driver&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;db.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://localhost:5432/alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# URL Generation Parameters (The ${localname} token is replaced by the local server name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#-------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alfresco.context=alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alfresco.host=localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alfresco.port=8080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alfresco.protocol=http&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;share.context=share&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;share.host=localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;share.port=8080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;share.protocol=http&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:57:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92330#M27383</guid>
      <dc:creator>cranejimmy3</dc:creator>
      <dc:date>2020-08-10T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: FAIL - Application at context path [/alfresco] could not be started</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92331#M27384</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialect': FactoryBean threw exception on object creation; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It seems the database connection properties in your alfresco-global.properties did not work ,alfresco is still using its'default database connection properties.&lt;/P&gt;&lt;P&gt;it seems /home/user/apache-tomcat-9.0.37/shared/classes is not in the classpath,please check you configured shared.loader correctly&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 03:06:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fail-application-at-context-path-alfresco-could-not-be-started/m-p/92331#M27384</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-08-11T03:06:53Z</dc:date>
    </item>
  </channel>
</rss>

