Closed andreklug closed 8 years ago
It's a repo module.
Please uninstall from share.war
and install in alfresco.war
That's what I did first. Now I have restored the share.war file and still do not see the action (after restarting alfresco of course)
And I am a little bit confused by "ready-to-deploy-plugin" vs. "Building the artifacts". I read this that building the artifacts is an alternative to using the amp file. Is that correct? Also, my UI is in german, and I see that the amp contains EN / PT files (and one without language name), could that be an issue?
Thank you!
"ready-to-deploy-plugin" is the AMP artifact builded. "Building the artifacts" is how to build an AMP artifact.
That file without language name is picked if no locale properties file is detected, so this is not an issue.
Check your catalina.out
file when starting Alfresco to identify the problem.
I have attached todays catalina log, cannot see anything related. I believe that the log level is set to FINE but am not sure which of these files is used:
/usr/lib/jvm/java-8-oracle/jre/lib/logging.properties /opt/alfresco/tomcat/conf/logging.properties /opt/alfresco/tomcat/apache-tomcat-7.0.68/conf/logging.properties /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/logging.properties
If you can't see a line like this one
2016-03-22 09:47:59,803 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Starting module 'simple-ocr-repo' version 1.0.1603161659.
in your catalina.out
this module has not been installed.
Please, review documentation from Alfresco on deploying AMP artifacts: http://docs.alfresco.com/community/concepts/dev-extensions-modules-management-tool.html
i've followed the doc you linked:
`java -jar alfresco-mmt.jar list /opt/alfresco/addons/war/alfresco.war Module 'simple-ocr-repo' installed in '/opt/alfresco/addons/war/alfresco.war'
now I uninstalled and reinstalled the AMP:
`root@alfresco:/opt/alfresco/addons# java -jar alfresco-mmt.jar uninstall simple-ocr-repo /opt/alfresco/addons/war/alfresco.war -verbose
root@alfresco:/opt/alfresco/addons# java -jar alfresco-mmt.jar install /home/andre/simple-ocr-repo.amp /opt/alfresco/addons/war/alfresco.war -verbose
Installing AMP '/home/andre/simple-ocr-repo.amp' into WAR '/opt/alfresco/addons/war/alfresco.war' Backing up WAR file... WAR has been backed up to '/opt/alfresco/addons/war/alfresco.war-1460458277888.bak' Adding files relating to version '1.0.0.1604041237' of module 'simple-ocr-repo'
An alle Benutzer verteilte Nachricht von andre@alfresco (/dev/pts/0) um 12:51 ...
Das System wird sich JETZT zum Neustarten herunterfahren! root@alfresco:/opt/alfresco/addons# Connection to alfresco.home closed by remote host. Connection to alfresco.home closed. ` Still no luck.
Would it be useful if I uploaded my alfresco.war so you can have a look at it?
Yes, please: upload your WAR to any external platform.
It's here: https://www.dropbox.com/s/rkw225qvbc73os4/alfresco.war?dl=0
Please let me know when i can remove the file. And thank you very much for your support!
It's working for me with your WAR.
Folder > Manage Rules > Create Rules
New Rule
Name: Test OCR
Description:
Define Rule
When:
If all criteria are met:
Unless all criteria are met:
Perform Action:
Extract OCR - Continue on error
It doesn't show up here, i tried different browsers and OS.
Are there any other actions that have to be performed following the steps above? Can I check something else?
I've created a new version including German messages.
Please, try with this one: https://github.com/keensoft/alfresco-simple-ocr/releases/tag/1.0.1
no difference. Does this point to something?
INFO: Deploying web application archive /opt/alfresco/tomcat/webapps/alfresco.war
Apr 12, 2016 1:48:55 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
I've discarded all my assumptions. I think I can't help you from this point.
Thank you. I'll try with a fresh installation of Alfresco, if they haven't got any hint in the forums.
I've been reading Alfresco forum post also.
We are missing something: this should be more easy than this.
On your deployed Alfresco webapp for the running Tomcat instance, you can find this path: opt/alfresco-5.1.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/simple-ocr-repo/modifications.install
?
No, this path is not there, depending on the installation method it's either /opt/alfresco/ or /opt/alfresco-community/
Even inside this, both variants differ., for example where they put the .war files. i have attached two files which contain the path structure of the installs. directories.zip
Ah sorry, that maybe did not answer your question. no, these directories are not there. I have /opt/alfresco-community/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/ but then only alfresco-aos-module/ alfresco-share-services/ org.alfresco.integrations.google.docs/
root@alfresco:~# find / -name simple-o* /home/andre/simple-ocr-repo.amp root@alfresco:~#
# service alfresco stop
# cp /home/andre/simple-ocr-repo.amp /opt/alfresco-community/amps
# /opt/alfresco-community/bin/appy_amps.sh
# service alfresco start
This must work and your deployed alfresco folder inside webapps should include simple-ocr-repo module folder.
... aaand there it is :) great, thank you!
Hi,
I cannot see the action in the folder actions / rules. I did the following to install:
Did I miss something? Version is CE 5.1
thank you!