Closed bleudemer closed 4 years ago
Hi,
Did you use the same Alfresco version between the two distributions installations ? (and which Alfresco version ?)
Regards, Emmanuel
Yes, I am using the last Alfresco community version 201707.
Brgds. François
2017-10-23 15:36 GMT+02:00 Emmanuel ROUX notifications@github.com:
Hi,
Did you use the same Alfresco version between the two distributions installations ? (and which Alfresco version ?)
Regards, Emmanuel
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rouxemmanuel/DigitalSigning/issues/45#issuecomment-338660837, or mute the thread https://github.com/notifications/unsubscribe-auth/AdohCwJNISO6lF_7ZCMjx8z7ynp1XsPWks5svJZOgaJpZM4QC1nF .
-- François de Clavière Gleteins 35 Rue de la Charité 69002 Lyon Tel : + 33 (0)4 72 40 26 92 cell : +33 (0)6 30 94 09 49 Mail : gleteins@gmail.com
Which version of java do you have in your Debian 9.1 installation ?
Emmanuel
on both distribution, i am using Java1.8.0_144-b01.
2017-10-23 16:06 GMT+02:00 Emmanuel ROUX notifications@github.com:
Which version of java do you have in your Debian 9.1 installation ?
Emmanuel
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rouxemmanuel/DigitalSigning/issues/45#issuecomment-338670104, or mute the thread https://github.com/notifications/unsubscribe-auth/AdohCxbRoeaLJfrO_Uwm_8KYxntSGDR_ks5svJ1KgaJpZM4QC1nF .
-- François de Clavière Gleteins 35 Rue de la Charité 69002 Lyon Tel : + 33 (0)4 72 40 26 92 cell : +33 (0)6 30 94 09 49 Mail : gleteins@gmail.com
Ok and do you have the same version of iText java library (jar) on both distribution ?
On Debian 8, i have found no itext.jar On Debian 9 , i have one in the folder /usr/share/java created by 1.8.0_102-8u102-b14-2-b14
2017-10-23 16:13 GMT+02:00 Emmanuel ROUX notifications@github.com:
Ok and do you have the same version of iText java library (jar) on both distribution ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rouxemmanuel/DigitalSigning/issues/45#issuecomment-338672428, or mute the thread https://github.com/notifications/unsubscribe-auth/AdohC209NlnuvQGpLN_srtExyWnnBZdhks5svJ7_gaJpZM4QC1nF .
-- François de Clavière Gleteins 35 Rue de la Charité 69002 Lyon Tel : + 33 (0)4 72 40 26 92 cell : +33 (0)6 30 94 09 49 Mail : gleteins@gmail.com
I think there is a incompatibility between the itext jar of your java installation (Debian 9) and the itext jar included in the DigitalSigning AMP (present in [alfresco installation dir]/tomcat/alfresco/WEB-INF/lib).
Can you delete (or rename in .old for example) the itext jar of the java 8 distribution and test it again ?
Emmannuel
I have done more investigations. On Debian 9 i have two jar files in the folder tomcat/webapps/alfresco/WEB-INF/lib itextpdf-5.0;6.jar and itextpdf-5.5.11.jar I have rename itextpdf-5.0.6.old and after that it works.
As if i rebuild the alfresco and share, these files are created again, do you know if it is possible to forbid this creation. Brgds
2017-10-23 16:34 GMT+02:00 Emmanuel ROUX notifications@github.com:
I think there is a incompatibility between the itext jar of your java installation (Debian 9) and the itext jar included in the DigitalSigning AMP (present in [alfresco installation dir]/tomcat/alfresco/WEB-INF/lib).
Can you delete (or rename in .old for example) the itext jar of the java 8 distribution and test it again ?
Emmannuel
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rouxemmanuel/DigitalSigning/issues/45#issuecomment-338679147, or mute the thread https://github.com/notifications/unsubscribe-auth/AdohCwgP21-ixiPEukfjEydQdFttsX9bks5svKPfgaJpZM4QC1nF .
-- François de Clavière Gleteins 35 Rue de la Charité 69002 Lyon Tel : + 33 (0)4 72 40 26 92 cell : +33 (0)6 30 94 09 49 Mail : gleteins@gmail.com
Hi,
The itext 5.0.6 jar seems to be integrated in alfresco/WEB-INF/lib folder by an other plugin deployed.
Can you check jars deployed by other Alfresco modules ?
Emmanuel
I have already tried your add-on with Debian 8.9 succesfully but i can't use it on a Debian 9.1 server.
I have succesfully registered my signature and when i try to sign a document, i have always an error message: Error lors de la signature du document :{0}
and i have the following messages in catalina.out
ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Exception from executeScript: 09230007 Wrapped Exception (with status template): 09230186 Failed to execute script 'classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 09230185 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/Certificate;)V org.springframework.extensions.webscripts.WebScriptException: 09230007 Wrapped Exception (with status template): 09230186 Failed to execute script 'classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 09230185 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/Certificate;)V at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171) at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210) at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132) 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.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.alfresco.scripts.ScriptException: 09230186 Failed to execute script 'classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js': 09230185 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/Certificate;)V at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:211) at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219) at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181) at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109) at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86) ... 36 more Caused by: org.alfresco.error.AlfrescoRuntimeException: 09230185 com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/Certificate;)V at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:533) at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207) ... 41 more Caused by: java.lang.NoSuchMethodError: com.itextpdf.text.pdf.PdfSignatureAppearance.setCertificate(Ljava/security/cert/Certificate;)V at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:169) at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:107) at org.alfresco.plugin.digitalSigning.service.SigningService.signPDFFile(SigningService.java:309) at org.alfresco.plugin.digitalSigning.service.SigningService.sign(SigningService.java:592) at org.alfresco.plugin.digitalSigning.script.SigningServiceScript.sign(SigningServiceScript.java:364) 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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_13._c_script_0(classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js:63) at org.mozilla.javascript.gen.classpathalfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_13.call(classpath*:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.mozilla.javascript.gen.classpathalfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_13.call(classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js) at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_plugin_digitalSigning_webscript_sign_sign_post_js_13.exec(classpath:alfresco/templates/webscripts/org/alfresco/plugin/digitalSigning/webscript/sign/sign.post.js) at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)