• Problem with email

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #2369  by wizbang
 
Hi, I am loking for a little help.

A new installtion and all going well.

Win sbs 2008

OpenKM 3.0 & jdk-1_5_0_17-windows-i586

The problem is that I am unable to send emails from the OpenKM system

Users have their respective email addresses set correctly.

This is the error code from system.log
2009-03-16 02:54:06,041 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/D:/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy/jbossws.sar/jboss-jaxrpc.jar references URL file:/D:/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy/jbossws.sar/mail.jar which could not be opened, entry ignored

I have enable the application.url in OpenKM.cfg
and set the parametrs in mail-services.xml (not sure if these are correct)
I only need SMTP realy pop3 later on

All help appreciated.
Thanks Mark

The mail-services file is listed below for reference.
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
<server>

<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->

<mbean code=\"org.jboss.mail.MailService\"
name=\"jboss:service=OpenKM\">
<attribute name=\"JNDIName\">java:/mail/OpenKM</attribute>
<attribute name=\"User\">nobody</attribute>
<attribute name=\"Password\">xxxx</attribute>
<attribute name=\"Configuration\">
<!-- A test configuration -->
<configuration>
<!-- Change to your mail server prototocol -->
<property name=\"mail.store.protocol\" value=\"pop3\"/>
<property name=\"mail.transport.protocol\" value=\"smtp\"/>

<!-- Change to the user who will receive mail -->
<property name=\"mail.user\" value=\"nobody\"/>

<!-- Change to the mail server -->
<property name=\"mail.pop3.host\" value=\"pop3.xxxxx.com\"/>

<!-- Change to the SMTP gateway server -->
<property name=\"mail.smtp.host\" value=\"smtp.iprimus.com.au\"/>

<!-- The mail server port -->
<property name=\"mail.smtp.port\" value=\"25\"/>

<!--Added by Mark 16 March 2009-->
<property name=\"mail.smtp.starttls.enable\" value=\"true\"/>
<property name=\"mail.smtp.auth\" value=\"true\"/>

<!-- Change to the address mail will be from -->
<property name=\"mail.from\" value=\"dms@xxxxx.com\"/>

<!-- Enable debugging output from the javamail classes -->
<property name=\"mail.debug\" value=\"true\"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>

</server>
 #2370  by wizbang
 
Looking at this error code a little more I may see a problem.

2009-03-16 02:54:06,041 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/D:/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy/jbossws.sar/jboss-jaxrpc.jar references URL file:/D:/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy/jbossws.sar/mail.jar which could not be opened, entry ignored

I don\'t have a mail.jar in the folder
D:/OpenKM-3.0_JBoss-4.2.2.GA/server/default/deploy/jbossws.sar/


Am I meant to ?
 #2372  by pavila
 
No, you don\'t. This JBoss component is related to webservices and don\'t is related to OpenKM mailing feature. What does JBoss console shows when OpenKM should send an email?
 #2374  by wizbang
 
Hi Pavila, I am not sure what \"What does JBoss console shows when OpenKM should send an email?\" means.
What info would you like and from where?
I get no error messages on screen etc. The email just never arrives.
 #2375  by wizbang
 
Hi Pavila, I think you mean what text scrolls along in the cmd window, correct?

Nothing.
If I ask OpenKM to send a file link to myself via email and watch the cmd screen, there is no activity.

Does that help?
 #2377  by wizbang
 
Hi, I am still trying to track down the issue.
This is from the system.log.
This output is directly after I ask for an email link to be sent.

2009-03-16 21:03:21,273 DEBUG [es.git.openkm.frontend.server.OKMAuthServlet] getAllUsers()
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken()
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken: 10763964365380465872883009866151
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.api.OKMAuth] getUsers(10763964365380465872883009866151)
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getUsers(10763964365380465872883009866151)
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getUsers()
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getUsers: [admin, markb]
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getUsers:[admin, markb]
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.api.OKMAuth] getUsers: [admin, cassiel, dougf, markb]
2009-03-16 21:03:21,273 DEBUG [es.git.openkm.frontend.server.OKMAuthServlet] getAllUsers: [admin, markb]
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.frontend.server.OKMFolderServlet] notify(/okm:root/wizbang.txt)
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken()
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken: 10763964365380465872883009866151
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.api.OKMNotification] notify(10763964365380465872883009866151, /okm:root/wizbang.txt, [markb], )
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] notify(10763964365380465872883009866151, /okm:root/wizbang.txt, [markb], )
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.core.SessionManager] getInstance()
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.core.SessionManager] getInstance: {10763964365380465872883009866151=[session=org.apache.jackrabbit.core.XASessionImpl@111cab5, creation=Mon Mar 16 20:59:27 AMT 2009, access=Mon Mar 16 20:59:46 AMT 2009], 10763964365380465872883009729180=[session=es.git.openkm.core.OKMSystemSession@6f558a, creation=Mon Mar 16 20:59:14 AMT 2009, access=Mon Mar 16 21:00:14 AMT 2009]}
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.core.SessionManager] get(10763964365380465872883009866151)
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.core.SessionManager] get: org.apache.jackrabbit.core.XASessionImpl@111cab5
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] Nodo: /okm:root/wizbang.txt, Message:
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails: [xxxxx@xmail.com]
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails:[xxxxx@xmail.com]
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails: []
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails:[]
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] notify: void
2009-03-16 21:03:25,329 DEBUG [es.git.openkm.api.OKMNotification] notify: void
 #2392  by wizbang
 
Hi Pavila, does the log give any clues?
I am not sure if it is related but I don\'t think the system is indexing either.
But one thing at a time.
 #2395  by pavila
 
Can you try a new fresh OpenKM installation? The log is a bit odd because seems to call a method twice.
 #2400  by wizbang
 
Hi Pavila, this is the system.log output for a new install from a winrar not winzip.
2009-03-17 18:41:33,053 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Tue, 17 Mar 2009 18:41:33>
2009-03-17 18:41:33,053 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2009-03-17 18:41:33,053 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2009-03-17 18:41:33,053 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2009-03-17 18:41:43,069 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Tue, 17 Mar 2009 18:41:43>
2009-03-17 18:41:43,069 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2009-03-17 18:41:43,069 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2009-03-17 18:41:43,069 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.frontend.server.OKMAuthServlet] getAllUsers()
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken()
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken: 10763964365383513012883789888142
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.api.OKMAuth] getUsers(10763964365383513012883789888142)
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getUsers(10763964365383513012883789888142)
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getUsers()
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getUsers: [admin, mark]
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getUsers:[admin, mark]
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.api.OKMAuth] getUsers: [admin, mark]
2009-03-17 18:41:44,379 DEBUG [es.git.openkm.frontend.server.OKMAuthServlet] getAllUsers: [admin, mark]
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.frontend.server.OKMFolderServlet] notify(/okm:root/ConferenceSchedule.pdf)
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken()
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.frontend.server.OKMRemoteServiceServlet] getToken: 10763964365383513012883789888142
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.api.OKMNotification] notify(10763964365383513012883789888142, /okm:root/ConferenceSchedule.pdf, [mark], )
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] notify(10763964365383513012883789888142, /okm:root/ConferenceSchedule.pdf, [mark], )
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.core.SessionManager] getInstance()
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.core.SessionManager] getInstance: {10763964365383513012883789888142=[session=org.apache.jackrabbit.core.XASessionImpl@2d015f, creation=Tue Mar 17 18:39:30 AMT 2009, access=Tue Mar 17 18:40:55 AMT 2009], 10763964365383513012883789797821=[session=es.git.openkm.core.OKMSystemSession@8ee5c0, creation=Tue Mar 17 18:39:21 AMT 2009, access=Tue Mar 17 18:40:21 AMT 2009]}
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.core.SessionManager] get(10763964365383513012883789888142)
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.core.SessionManager] get: org.apache.jackrabbit.core.XASessionImpl@2d015f
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] Nodo: /okm:root/ConferenceSchedule.pdf, Message:
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails: [wizbang@gmail.com]
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails:[wizbang@gmail.com]
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails: []
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails:[]
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] notify: void
2009-03-17 18:41:47,624 DEBUG [es.git.openkm.api.OKMNotification] notify: void
 #2401  by wizbang
 
The OpenKM.ear you gave me didn\'t work as expected.
I moved the old .ear to a safe place
placed the new .ear
started the server which had lots of failures
I started a browser and logged in as admin...
but there was no admin tab (firefox)
as I click on files I get an error on the page about formatting
if I try to email a link it is not available from the \"file\" tab

I will run the new .ear server again and give the system log output.
 #2402  by wizbang
 
Info from a fresh boolog for the new ear.

Please, don\'t post JBoss log. Attach as a file.
 #2757  by marta
 
Hello,
I\'ve the same problem, the mail service is not running. As I can see in my \"server.log\" the method \"getmails\" is called twice:
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.module.direct.DirectNotificationModule] Nodo: /okm:root/Ejemplos.zip, Message: dddddd
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails: [user1@xxxxx.es]
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.module.direct.DirectAuthModule] [getMails:[user1@xxxxx.es]
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.module.direct.DirectAuthModule] getMails(null)
2009-06-18 09:56:45,500 DEBUG [es.git.openkm.principal.DatabasePrincipalAdapter] getMails()
...
¿What can I do?
Thanks!

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.