cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Google Docs integration from 2.0.7 to 3.0.0

maggiehellstrom
Champ in-the-making
Champ in-the-making
Dear all,

since Google has now stopped its service for the Google Documents List API version 3, we want to upgrade our current Alfresco Community 5.0a installation with the latest versions of the Google Docs integration module.

However, when we try to follow the instructions on the documentation page relevant to Community 5.0 (http://docs.alfresco.com/community/tasks/googledocs-amp-install.html), we found that it is apparently required to have an account with the Support Panel to get hold of the new AMP files.

Since we don't have such an account (aren't those only for users of the commercial versions?), we instead went to the Wiki page for Community 5.0d (https://wiki.alfresco.com/wiki/Community_file_list_5.0.d) and downloaded the version 3.0.0 AMPs from there. So far so good - but we did notice that the file names were not exactly the same on the doc page as on the wiki page (here the file names contained the extra substring "-48com", e.g. alfresco-googledocs-share-3.0.0-48com-5.0.amp rather than alfresco-googledocs-share-3.0.0-5.0.amp).

Now, we stopped Tomcat, uninstalled the old Repo and Share modules, and installed the newest ones - all the time using the alfresco-mmt.jar method, which we used successfully before. (As outlined on http://docs.alfresco.com/community/concepts/dev-extensions-modules-management-tool.html .) Indeed, there were no error messages and a listing of content showed that both new modules were installed OK into alfresco.war and share.war.

Tomcat was restarted, and no error messages showed up. But after logging in, we are still unable to get the Google Docs to work. Attempts to create new Google Doc files result in errors like "Failed to create a Google Docs document", and in-line editing also fails with errors like "There was an error opening the document in Google Docs."

These are exactly the same messages we saw before the upgrade, so the impression is that the integration modules we installed are not compatible with Google Drive. Or could it be that the AMPs we tried to use are incompatible with Community 5.0a, requiring us to do a complete upgrade of the Alfresco installation itself to 5.0d?

Thankful for any guidance on how to proceed with the trouble shooting!

Maggie
3 REPLIES 3

camachompi
Champ in-the-making
Champ in-the-making
I work with Alfresco version 4.2.e and I have the same problem, Where can I download new AMP for alfresco 4.2.e?

hostman
Champ in-the-making
Champ in-the-making
I think I am having similar error here.
In my case I am using Alfresco Community 4.2.f. I use Google docs integration from here: https://github.com/Alfresco/google-docs/tree/master
I deploy all required files, restart the server and I have those problems:
1. When I try to create new google docs document, I get error: "Failed to connect to Google Docs™"
2. On detailed view of the document, there is no action to edit the document in Google Docs.
During trying to create Google Docs document, I get this error in logs:


2015-05-12 13:43:15,897  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-2] Exception from executeScript - redirecting to status template error: 04120011 Wrapped Exception (with status template): Invalid bean definition with name 'googleDocsCustomResponses' defined in file [/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/googledocs/drive/google-customResponse-context.xml]: Could not resolve parent bean definition 'registerSlingshotCustomResponse'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'registerSlingshotCustomResponse' is defined
org.springframework.extensions.webscripts.WebScriptException: 04120011 Wrapped Exception (with status template): Invalid bean definition with name 'googleDocsCustomResponses' defined in file [/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/googledocs/drive/google-customResponse-context.xml]: Could not resolve parent bean definition 'registerSlingshotCustomResponse'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'registerSlingshotCustomResponse' is defined
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:429)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'googleDocsCustomResponses' defined in file [/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/googledocs/drive/google-customResponse-context.xml]: Could not resolve parent bean definition 'registerSlingshotCustomResponse'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'registerSlingshotCustomResponse' is defined
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1152)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1097)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:560)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:803)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:991)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:530)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        … 3 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'registerSlingshotCustomResponse' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:864)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:861)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1138)
        … 31 more

tino2000
Champ on-the-rise
Champ on-the-rise
I have the same problem with Alfresco 4.2.e…
Unfortunately the versione 3 of the Google Docs integration works only in Alfresco 5.

There is no way to have an amp for alfresco 4.2?