KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: kin24 on June 24, 2008, 08:59:48 am

Title: registered users can't recover lost passwords !!!(Email configuration)
Post by: kin24 on June 24, 2008, 08:59:48 am
Dear forum members,


I'm posting this mesage to the board as I'm so staked with this issue and I can found an way out.I'm quite new to konakart, but I have managed to deploy it properly, except this password recovery problem.
By clicking on forgotten password use case, the application should generate a new windows on which the (registred) user can enter is email address, so that the new password can be sent to him to the specified address.But I'm getting and error message instead [of the type: can't found Email new password velocity template and other blabla...](see below)
But, I have tried from the admin console, using the same velocity template (EmailNewPassword_en.vm) through customer communications to send email to registred customers and it was succesfull.
This my SMTP configuration:

mail.transport.protocol   = smtps
mail.smtps.port           = 465
mail.smtps.host           = smtp.gmail.com
mail.smtps.auth           = true
mail.smtp.user            = something@gmail.com
mail.smtp.password        = somethingelse

This the error message:

Exception Message = org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'EmailNewPassword_en.vm'
Exception Stack Trace =
at com.konakart.app.KKEng.sendNewPassword(Unknown Source)
at com.konakart.al.CustomerMgr.sendNewPassword(Unknown Source)
at com.konakart.actions.ForgotPasswordSubmitAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

Exception Cause = org.apache.velocity.exception.ResourceNotFoundException
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:528)
at com.konakart.bl.EmailMgr.sendNewPasswordEmail(Unknown Source)
at com.konakart.bl.SecurityMgr.sendNewPassword(Unknown Source)
at com.konakart.app.KKEng.sendNewPassword(Unknown Source)
at com.konakart.al.CustomerMgr.sendNewPassword(Unknown Source)
at com.konakart.actions.ForgotPasswordSubmitAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

ANY HELP OUT THERE !!!!!!!
Title: Re: registered users can't recover lost passwords !!!(Email configuration)
Post by: ryan on June 24, 2008, 09:07:03 am
All you need to do is to put EmailNewPassword_en.vm in the classpath. i.e. \webapps\konakart\WEB-INF\classes
Title: Re: registered users can't recover lost passwords !!!(Email configuration)
Post by: kin24 on June 26, 2008, 07:53:27 am
Thanks for your help Ryan, I have copied the *.vm files to the class directory, the appllication was abble to find EmailPassword_en.vm template and forwarded the request properly.
Just another question as velocity templates are still concerned, from the admin application I have tried to reset the application user's password but this was unsucessfull.
The feedback was that the EmailPassword_fr.vm templates could not be found. The I looked in the class directory, and noticed that the file do come by defaut with the application package. I believe "_fr " stands for the french template, but that is not the problem. Anyway I took a copy of the "_en " file and rename it "_fr " and put it in the same directory and restarted the whole application but this was unsuccessfulll still. Any idea on how can achieve this ??? Meaning reset the application user password from the admin App.
Title: Re: registered users can't recover lost passwords !!!(Email configuration)
Post by: ryan on June 26, 2008, 08:44:17 am
I assume that you have set your default language to French ? If you have placed the EmailPassword_fr.vm in the classpath, it should find it. Check the spelling and note that it is case sensitive in a unix environment.