Hola, tenemos una serie de aplicaciones que almacenan contenidos en Alfresco a través de
http://IP_ALFRESCO:8080/alfresco/api
Queremos hacer algunos cambios en esta misma arquitectura, se ha instalado una nueva versión de alfresco en otro servidor, pero cuando se redirigen las aplicaciones a este nuevo alfresco a través de la API se obtiene el error
=================
2019-02-06 08:06:07,249 DEBUG [org.springframework.extensions.config.BaseConfigService] [http-apr-8080-exec-1] Retrieving configuration for 'Server'
2019-02-06 08:06:07,249 DEBUG [org.springframework.extensions.config.BaseConfigService] [http-apr-8080-exec-1] Created initial config results using global section
2019-02-06 08:06:07,250 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-1] Initialised Web Script Servlet (authenticat or='publicapi.authenticator')
2019-02-06 08:06:07,250 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] [http-apr-8080-exec-1] Returning cached instance of singleton be an 'publicapi.container'
2019-02-06 08:06:07,250 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] [http-apr-8080-exec-1] Returning cached instance of singleton be an 'apiAssistant'
2019-02-06 08:06:07,251 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] [http-apr-8080-exec-1] Returning cached instance of singleton be an 'globalAuthenticationFilter'
2019-02-06 08:06:07,261 DEBUG [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] (Runtime=PublicApiTenantServletRuntime, Container=Pu blic Api) Processing script url (POST) network
2019-02-06 08:06:07,262 DEBUG [org.springframework.extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-1] Web Script index lookup for uri network took 0.1 93844ms
2019-02-06 08:06:07,263 DEBUG [org.springframework.extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-1] WebScript uriIndexCache size: 1
2019-02-06 08:06:07,283 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Exception from executeScript: 01060000 No se ha enco ntrado network
org.alfresco.rest.framework.core.exceptions.NotFoundException: 01060000 No se ha encontrado network
at org.alfresco.rest.api.PublicApiDeclarativeRegistry.findWebScript(PublicApiDeclarativeRegistry.java:250)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:165)
at org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:82)
at org.alfresco.rest.api.PublicApiWebScriptServlet.service(PublicApiWebScriptServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:132)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy229.doFilter(Unknown Source)
at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2486)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
2019-02-06 08:06:07,286 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-1] Content Type: text/xml; charset=utf- 8
2019-02-06 08:06:07,287 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-1] Cache - set response header Cache-C ontrol: no-cache
2019-02-06 08:06:07,287 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-1] Cache - set response header Pragma: no-cache
2019-02-06 08:06:07,306 ERROR [org.alfresco.rest.api.PublicApiTenantWebScriptServletRuntime] [http-apr-8080-exec-1] 730df46c-a82b-4712-8713-1f1c77913c9c : [org.alfre sco.rest.api.PublicApiDeclarativeRegistry.findWebScript(PublicApiDeclarativeRegistry.java:250), org.springframework.extensions.webscripts.AbstractRuntime.executeScri pt(AbstractRuntime.java:165), org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:82), org.alfresco.rest.api.PublicApiWebScriptS ervlet.service(PublicApiWebScriptServlet.java:62), javax.servlet.http.HttpServlet.service(HttpServlet.java:731), org.apache.catalina.core.ApplicationFilterChain.inte rnalDoFilter(ApplicationFilterChain.java:303), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.apache.tomcat.websocket .server.WsFilter.doFilter(WsFilter.java:52), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.c ore.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:75), sun.reflect.NativeM ethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.inv oke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1. invoke(ChainingSubsystemProxyFactory.java:132), org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185), org.spring framework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212), com.sun.proxy.$Proxy229.doFilter(Unknown Source), org.alfresco.repo.web.filter.beans. BeanProxyFilter.doFilter(BeanProxyFilter.java:89), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.cata lina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.j ava:68), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:208), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218), org.apache.catalina.core.StandardContextValve. invoke(StandardContextValve.java:110), org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506), org.apache.catalina.core.StandardHostV alve.invoke(StandardHostValve.java:169), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103), org.apache.catalina.valves.AccessLogValve.inv oke(AccessLogValve.java:962), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116), org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:445), org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115), org.apache.coyote.AbstractProtocol$AbstractConn ectionHandler.process(AbstractProtocol.java:637), org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2486), java.util.concurrent. ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), org.apache.tomcat.util.t hreads.TaskThread$WrappingRunnable.run(TaskThread.java:61), java.lang.Thread.run(Thread.java:748)]
2019-02-06 08:06:07,519 DEBUG [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Processed script url (POST) network in 258.4892ms
Qué URL es la que devuelve el error?
Es la misma versión de Alfresco en ambos entornos?
No entiendo la pregunta sobre el URL, la app que almacena en alfresco tiene configurado:
<Environment name="Alfresco.default.URL_SERVIDOR_ALFRESCO"
value="http://tompru57clon.cji.junta-andalucia.es:8080/alfresco/api"
description="Directorio base del repositorio de documentos basado en sistema de ficheros local del servido
override="false" type="java.lang.String" />
<Environment name="Alfresco.default.USERNAME" value="aupa-pru.alfresco"
description="Usuario del repositorio de documentos" override="false"
type="java.lang.String" />
<Environment name="Alfresco.default.PASSWORD" value="********"
description="Password del repositorio de documentos" override="false"
type="java.lang.String" />
No es la misma version de Alfresco:
·) la original es --> Versión: Enterprise - v3.4.7 (572)
·) la que estamos probando es --> Community (Build: 201707)
================================================
- Alfresco Platform: 5.2.g
- Alfresco Share: 5.2.f
Estoy pensando que quizá la URL que se configura en la app que almacena en alfresco ouede no ser ésta que estoy poniendo.
Si en vez de
http://tompru57clon.cji.junta-andalucia.es:8080/alfresco/api
configuro:
http://tompru57clon.cji.junta-andalucia.es:8080/alfresco/service/api
El error ya no se muestra en el alfresco.login
Esto es lo que muestra:
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-10] Processing request (POST) http://tompru57clon.cji.junta-andalucia.es:8080/alfresco/service/api/AuthenticationService
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] (Runtime=ServletRuntime, Container=Repository) Processing script url (POST) /api/AuthenticationService
2019-02-06 14:31:15,106 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction] [http-bio-8443-exec-2] Began user transaction: UserTransaction[object=org.alfresco.util.transaction.SpringAwareUserTransaction@36196e23, status=0]
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Script url /api/AuthenticationService does not map to a Web Script.
2019-02-06 14:31:15,107 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction] [http-bio-8443-exec-8] Began user transaction: UserTransaction[object=org.alfresco.util.transaction.SpringAwareUserTransaction@63a5f073, status=0]
2019-02-06 14:31:15,107 DEBUG [org.springframework.aop.framework.JdkDynamicAopProxy] [http-bio-8443-exec-8] Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [org.alfresco.util.transaction.SpringAwareUserTransaction@63a5f073]
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Webscript did not execute. (NOT FOUND): 01060038 Script url /api/AuthenticationService does not map to a Web Script.
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-10] Content Type: text/xml; charset=utf-8
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-10] Cache - set response header Cache-Control: no-cache
2019-02-06 14:31:15,107 DEBUG [org.springframework.extensions.webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-10] Cache - set response header Pragma: no-cache
2019-02-06 14:31:15,107 DEBUG [org.springframework.jdbc.datasource.DataSourceTransactionManager] [http-apr-8080-exec-10] Creating new transaction with name [http-apr-8080-exec-10-55400f5d-0257-4dcb-b8cc-b7e9fa75ffa0]: UserTransaction[object=org.alfresco.util.transaction.SpringAwareUserTransaction@299f4a87, status=6]
2019-02-06 14:31:15,108 DEBUG [org.alfresco.util.transaction.SpringAwareUserTransaction] [JobLockService1] Committed user transaction: UserTransaction[object=org.alfresco.util.transaction.SpringAwareUserTransaction@3e1aa3f3, status=3]
2019-02-06 14:31:15,107 DEBUG [freemarker.cache] [http-bio-8443-exec-10] Updating source, info for cause: sourceEquals=false, newlyFoundSource="org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource@323e6771", cachedTemplate.source="org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource@3c6d0633"
2019-02-06 14:31:15,108 DEBUG [freemarker.cache] [http-bio-8443-exec-10] Compiling FreeMarker template "org/alfresco/repository/solr/aclChangeSets.get.json.ftl"["es_ES",UTF-8,parsed] from "org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource@323e6771"
2019-02-06 14:31:15,107 DEBUG [org.alfresco.util.transaction.TransactionSupportUtil] [http-bio-8443-exec-8] Bound txn synch: TransactionSychronizationImpl[ txnId=a1f5c442-e481-4401-ad53-3e992d5134b4] with txn name: http-bio-8443-exec-8-2fcc2f6d-1c78-471a-b4fb-214ac1193a42
2019-02-06 14:31:15,108 DEBUG [org.alfresco.util.transaction.TransactionSupportUtil] [http-bio-8443-exec-8] Bind Listener listener: org.alfresco.cache.immutableEntityTransactionalCache, priority: 4
Por otro lado, si en el navegador ejecuto:
http://tompru57clon.cji.junta-andalucia.es:8080/alfresco/service/api/login?u=aupa-pru.alfresco&pw=*******
Alfresco devuelve
<ticket>TICKET_67ef2939c7163d806839061851ab0c78e40c409f</ticket>
Estás intentando atacar a la API SOAP. Esta API fue eliminada del producto en 5.0
A partir de esa versión solo está disponible la API REST.
Hola, entiendo que debo configurar en la app externa:
Si pido el recuro a través del navegador me devuelve 401:
"01070045 Authentication failed for Web Script org/alfresco/api/ResourceWebScript.get"
Como decía arriba: tu cliente es SOAP y el servidor es REST.
No hay manera de que lo hagas funcionar sin cambiar el cliente...
Discussions about Alfresco Content Services and Alfresco Process Services in Spanish
Related:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.