keensoft / alfresco-simple-ocr

Simple OCR action for Alfresco
Other
44 stars 30 forks source link

action not visible #6

Closed andreklug closed 8 years ago

andreklug commented 8 years ago

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!

angelborroy-ks commented 8 years ago

It's a repo module.

Please uninstall from share.war and install in alfresco.war

andreklug commented 8 years ago

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!

angelborroy-ks commented 8 years ago

"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.

andreklug commented 8 years ago

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

catalina.2016-04-12.log.zip

angelborroy-ks commented 8 years ago

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

andreklug commented 8 years ago

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?

angelborroy-ks commented 8 years ago

Yes, please: upload your WAR to any external platform.

andreklug commented 8 years ago

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!

angelborroy-ks commented 8 years ago

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

ocr-rule

andreklug commented 8 years ago

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?

bildschirmfoto 2016-04-12 um 13 39 07

angelborroy-ks commented 8 years ago

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

andreklug commented 8 years ago

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.

angelborroy-ks commented 8 years ago

I've discarded all my assumptions. I think I can't help you from this point.

andreklug commented 8 years ago

Thank you. I'll try with a fresh installation of Alfresco, if they haven't got any hint in the forums.

angelborroy commented 8 years ago

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?

andreklug commented 8 years ago

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

andreklug commented 8 years ago

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:~#

angelborroy-ks commented 8 years ago
# 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.

andreklug commented 8 years ago

... aaand there it is :) great, thank you!