FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Help!!! problem with mail notification (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 1
TOPIC: Re:Help!!! problem with mail notification
#750
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 0  
Hello
I got problem with the mail notification after install OpenKM2.0.

According with FAQ of OpenKM and another thread in this forum(http://www.openkm.com/Configuration/109-configuring-mail-notification.html)
I had edited:
//code//
system=hb.com.cn@gmail.com user1=hb.com.cn@gmail.com user2=hb.com.cn@gmail.com user3=hb.com.cn@gmail.com
////
in emails.properties, at C:\FMS\OpenKM\OpenKM-2.0_JBoss-4.2.2.GA\server\default\conf

added:
//code//
application.url=http://localhost:8080/OpenKM/es.git.openkm.frontend.Main/index.jsp
////
in OpenKM.cfg, at C:\FMS\OpenKM\OpenKM-2.0_JBoss-4.2.2.GA

and edited:
//code//
<?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="jbosservice=Mail/OpenKM">
<attribute name="JNDIName">java:/Mail/OpenKM</attribute>
<attribute name="Configuration">
<configuration>
<property name="mail.transport.protocol" value="smtp"/>
<property name="mail.smtp.host" value="gmail.com"/>
<property name="mail.from" value="hb.com.cn@gmail.com"/>
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
<depends>jbosservice=Naming</depends>
</mbean>
</server>
////

After operate on sending the notification, I cannot receive the email and get a list of errors begin with: javax.naming.NameNotFoundException: mail not bound

actually I think my problem is I don't understand the variables mention the config file:
//code//
Setting the mail server on JBoss:

$JBOSS_HOME/server/default/deploy must have a file called mail-service.xml ( your SMTP mail server configuration goes here ).

<!-- OpenKM -->
<mbean code="org.jboss.mail.MailService" name="jbosservice=mail/OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">user</attribute>
<attribute name="Password">password</attribute>
<attribute name="Configuration">
<configuration>
<property name="mail.transport.protocol" value="smtp"/>
<property name="mail.smtp.host" value="host.com"/>
<property name="mail.from" value="noreply@host.com"/>
<property name="mail.debug" value="false"/>
</configuration>
<depends>jbosservice=Naming</depends>
</attribute>
</mbean>
////

what is the "user"? and "password" for?
and what should be used to replace "host.com" and "noreply@host.com", if I am working on a PC before I deploy it on the server?


I had worked on that for a day, any help will be appreciated!!!
Thanks!!!
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/07 18:21 By hbcomcn.
  The administrator has disabled public write access.
#752
tidus2728 (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 2001-01-01
Re:Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 1  
Hi,

I used to have that error before.

Try to change this line from mail-service.xml:

<attribute name="JNDIName">java:/Mail/OpenKM</attribute>

to

<attribute name="JNDIName">java:/mail/OpenKM</attribute>

then edit

<property name="mail.smtp.host" value="gmail.com"/>

to

<property name="mail.smtp.host" value="smtp.gmail.com"/>

also change:

application.url=http://localhost:8080/OpenKM/es.git.openkm.frontend.Main/index.jsp

in the OpenKM.cfg where "localhost" is to be the IP Address or hostname of your server running OpenKM.

Then restart OpenKM.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#780
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 0  
Thanks for your help, but it still doesn't work, I couldn't get the email after I set mail notification.
Any other recommandation?
Thanks!!!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#781
hbcomcn (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 0  
Hello, Still got such kind of error:

09:37:47,983 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[T
RANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
09:37:48,061 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
09:37:48,061 INFO [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.co
m", port 25, isSSL false
09:38:08,994 ERROR [STDERR] javax.mail.MessagingException: Could not connect to
SMTP host: smtp.gmail.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
09:38:08,994 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.openServer(SM
TPTransport.java:1282)
09:38:08,994 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.protocolConne
ct(SMTPTransport.java:370)
09:38:08,994 ERROR [STDERR] at javax.mail.Service.connect(Service.java:275)
09:38:08,994 ERROR [STDERR] at javax.mail.Service.connect(Service.java:156)
09:38:08,994 ERROR [STDERR] at javax.mail.Service.connect(Service.java:105)
09:38:08,994 ERROR [STDERR] at javax.mail.Transport.send0(Transport.java:168
)
09:38:08,994 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:98)
09:38:09,009 ERROR [STDERR] at es.git.openkm.util.Mail.send(Mail.java:88)
09:38:09,025 ERROR [STDERR] at es.git.openkm.module.direct.DirectNotificatio
nModule.notify(DirectNotificationModule.java:279)
09:38:09,025 ERROR [STDERR] at es.git.openkm.api.OKMNotification.notify(OKMN
otification.java:87)
09:38:09,025 ERROR [STDERR] at es.git.openkm.frontend.server.OKMFileUploadSe
rvlet.doPost(OKMFileUploadServlet.java:139)
09:38:09,025 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:710)
09:38:09,025 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:803)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:290)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
09:38:09,025 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:230)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:175)
09:38:09,025 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:179)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:524)
09:38:09,025 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:84)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:127)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:102)
09:38:09,025 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnec
tionValve.invoke(CachedConnectionValve.java:157)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:109)
09:38:09,025 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:262)
09:38:09,025 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:844)
09:38:09,025 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.process(Http11Protocol.java:583)
09:38:09,025 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker
.run(JIoEndpoint.java:446)
09:38:09,025 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
09:38:09,025 ERROR [STDERR] Caused by: java.net.ConnectException: Connection tim
ed out: connect
09:38:09,025 ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native
Method)
09:38:09,025 ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocke
tImpl.java:333)
09:38:09,025 ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(Pla
inSocketImpl.java:195)
09:38:09,025 ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketI
mpl.java:182)
09:38:09,025 ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketI
mpl.java:366)
09:38:09,025 ERROR [STDERR] at java.net.Socket.connect(Socket.java:520)
09:38:09,025 ERROR [STDERR] at java.net.Socket.connect(Socket.java:470)
09:38:09,025 ERROR [STDERR] at com.sun.mail.util.SocketFetcher.createSocket(
SocketFetcher.java:232)
09:38:09,025 ERROR [STDERR] at com.sun.mail.util.SocketFetcher.getSocket(Soc
ketFetcher.java:189)
09:38:09,025 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.openServer(SM
TPTransport.java:1250)
09:38:09,025 ERROR [STDERR] ... 31 more
09:38:09,134 INFO [CacheManager] resizeAll size=7
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/09 15:48 By hbcomcn.
  The administrator has disabled public write access.
#788
tidus2728 (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 2001-01-01
Re:Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 1  
Hi,

Sorry I forgot to check on google.

You can try to change the SMTP port that gmail uses in mail-service.xml:

<property name="mail.smtp.port" value="25"/>

to

<property name="mail.smtp.port" value="465"/>

or

<property name="mail.smtp.port" value="587"/>

If an error still occurs, try to send the complete server.log to trace the error.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/10 03:15 By tidus2728.
  The administrator has disabled public write access.
#793
OpenKMFans (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Re:Help!!! problem with mail notification 4 Months, 2 Weeks ago Karma: 0  
Hi, tidus.
i also don't understand what the user and password is for. Is it essential?

in my web-service.xml, there isn't "java:/Mail/OpenKM" but "java:Mail/" instead,
<attribute name="JNDIName">java:/Mail</attribute>
as you see, what can i do?

I'm a freshman and I like OpenKM, so I wish some guys gave a advice how to configure mail notification. Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop