AnsweredAssumed Answered

Unable to retrieve License information from Alfresco: 404

Question asked by jamessweeney on Mar 16, 2015
Hi,

I am having problems getting Alfresco share to connect to an Alfresco repository on a separate server. I get the following error:

2015-03-16 21:48:36,318  INFO  [web.site.EditionInterceptor] [http-bio-8080-exec-1] Unable to retrieve License information from Alfresco: 404


To begin with I installed Alfresco 5.0.c on Tomcat 7 on Ubuntu server 14.04. Catalina.out showed no errors. Installing solr.war and share.war on this Tomcat instance works great. I can log into server1:8080/share with admin/admin and all is good.

I then separated share out onto its own server. So I start a second server again on Ubuntu 14.04 with Tomcat7 and install share.war on this second instance. I then update alfresco-global.properties on the first alfresco.war server with the IP of my Alfresco share server and update share-config-custom.xml with the IP of my first Alfresco (alfresco.war) server. However I then  get the following in catalina.out.

Mar 16, 2015 9:47:50 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/share] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@557d1434]) and a value of type [org.alfresco.web.scripts.SlingshotRemoteClient] (value [org.alfresco.web.scripts.SlingshotRemoteClient@30c349b3]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Mar 16, 2015 9:47:50 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Mar 16, 2015 9:47:50 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Mar 16, 2015 9:47:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 16, 2015 9:47:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 893 ms
Mar 16, 2015 9:47:52 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 16, 2015 9:47:52 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Mar 16, 2015 9:47:52 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/docs.xml
Mar 16, 2015 9:47:53 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host-manager.xml
Mar 16, 2015 9:47:53 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/examples.xml
Mar 16, 2015 9:47:53 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
Mar 16, 2015 9:47:54 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/share.war
Mar 16, 2015 9:48:02 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Mar 16, 2015 9:48:02 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2015-03-16 21:48:13,945  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2015-03-16 21:48:13,954  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2015-03-16 21:48:13,962  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2015-03-16 21:48:13,965  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2015-03-16 21:48:17,910  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 368 Web Scripts (+0 failed), 382 URLs
2015-03-16 21:48:17,916  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
2015-03-16 21:48:17,916  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
2015-03-16 21:48:18,395  INFO  [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Spring Surf Container Web Script Container (in 4421.933ms)
2015-03-16 21:48:18,405  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2015-03-16 21:48:18,409  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
Mar 16, 2015 9:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
Mar 16, 2015 9:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'Spring Surf Dispatcher Servlet'
Mar 16, 2015 9:48:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Mar 16, 2015 9:48:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 16, 2015 9:48:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26493 ms
2015-03-16 21:48:36,318  INFO  [web.site.EditionInterceptor] [http-bio-8080-exec-1] Unable to retrieve License information from Alfresco: 404


From my share server I can run the following:
curl -I 10.0.0.44:8080/alfresco/
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=8F63995BCFEC20058BDAE4F2ECF671E0; Path=/alfresco/; HttpOnly
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 2013
Date: Mon, 16 Mar 2015 22:14:47 GMT


Any ideas why Alfresco share is unable to retrieve License information from Alfresco?

Thanks,
James

Outcomes