создаю тестовый вебскрипт как указано
http://wiki.alfresco.com/wiki/Web_Scripts_Hello_World_Quick_Start
но встаю на стадии
Register your new web script .
Сlick
Refresh list of Web Scripts. You see a message indicating there is one additional web script.
выдает:
Maintenance Completed |
Reset Web Scripts Registry; registered 585 Web Scripts. Previously, there were 585. |
Warning: found 1 broken Web Scripts. Previously, there were 1. |
Broken Web Scripts |
07270015 Web Script document org/alfresco/slingshot/documentlibrary/doclist.get.desc.xml is attempting to define the url '/slingshot/doclib/doclist/(.*?)/site/(.*?)/(.*?)/(.*?):GET' already defined by doclist/doclist.get.desc.xml (classpath:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.desc.xml) |
Так понимаю что один из скриптов дважды описан. Как это поправить?
Комментарии
27/08/2014 - 21:13
28/08/2014 - 08:06
а ошибку выдает doclist.
переименовали один из файлов :
/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.desc.xml.old
Сервер перегрузили. вроде запустилось без ошибок.
даже refresh web script отработал без ошибок, но новый скрипт не видит.
попробовал зайти в module deploiment и тут получил:
The Web Script /alfresco/service/modules/deploy has responded with a status of 500 - Internal Error. 500 Description: An error inside the HTTP server which prevented it from fulfilling the request. Message: 07280004 Wrapped Exception (with status template): 07280045 Ошибка во время обработки шаблона 'Expression lastCacheUpdate is undefined on line 24, column 71 in extensibility/moduleDeployment.get.html.ftl.'. Обратитесь к системному администратору. Exception: freemarker.core.InvalidReferenceException - Expression lastCacheUpdate is undefined on line 24, column 71 in extensibility/moduleDeployment.get.html.ftl. freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) freemarker.core.Expression.getStringValue(Expression.java:118) freemarker.core.Expression.getStringValue(Expression.java:93) freemarker.core.DollarVariable.accept(DollarVariable.java:76) freemarker.core.Environment.visit(Environment.java:221) freemarker.core.MixedContent.accept(MixedContent.java:92) freemarker.core.Environment.visit(Environment.java:221) freemarker.core.Environment.process(Environment.java:199) org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:218) org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:896) org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267) org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147) org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:429) org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529) org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(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.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61) 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:220) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:724) Exception: org.alfresco.service.cmr.repository.TemplateException - 07280045 Ошибка во время обработки шаблона 'Expression lastCacheUpdate is undefined on line 24, column 71 in extensibility/moduleDeployment.get.html.ftl.'. Обратитесь к системному администратору. org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:222) Exception: org.springframework.extensions.webscripts.WebScriptException - 07280004 Wrapped Exception (with status template): 07280045 Ошибка во время обработки шаблона 'Expression lastCacheUpdate is undefined on line 24, column 71 in extensibility/moduleDeployment.get.html.ftl.'. Обратитесь к системному администратору. org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067) Server: Community v4.2.0 (r63893-b12) schema 6 033 Time: 28.08.2014 11:00:50
что это? и как лечить?
03/09/2014 - 14:25
1. положил все файлы не в Company Home > Data Dictionary > Web Scripts (SP5:webscripts) > org > alfresco > sample
а в Company Home > Data Dictionary > Web Scripts (SP5:webscripts)
соответственно вызываю не http://localhost:8080/alfresco/service/sample/hello
а http://localhost:8080/alfresco/service/hello
и описание чуть другое:
<webscript>
<shortname>Hello</shortname>
<description>Polite greeting</description>
<url>/hello</url>
<authentication>user</authentication>
</webscript>
Вопросы снимаются.
Похоже малость в документации какие-то отпечатки.