KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: Kundan on November 11, 2009, 03:59:20 pm

Title: Getting exception Couldn't locate the Velocity Engine
Post by: Kundan on November 11, 2009, 03:59:20 pm
Hi All,

I have uploaded the war files on webspace and the both application is working fine e.g. konakart and admin
but when i clicking on the invoice button in order section of the admin in that case i am getting this error.

Couldn't locate the Velocity Engine - Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.

My tomcat version is 6.0
Title: Re: Getting exception Couldn't locate the Velocity Engine
Post by: Kundan on November 11, 2009, 04:09:26 pm
the full exception which i am getting

Exception Stack Trace =
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:589)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:135)
at com.konakartadmin.bl.AdminHtmlMgr.getVelocityEngine(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtmlOrder(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtmlOrderInvoice(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtml(Unknown Source)
at com.konakartadmin.bl.KKAdmin.getHtml(Unknown Source)
at com.konakartadmin.server.KKAdminGWTServiceImpl.getHtml(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

Exception Cause =
at org.apache.velocity.runtime.log.AvalonLogChute.initTarget(AvalonLogChute.java:119)
at org.apache.velocity.runtime.log.AvalonLogChute.init(AvalonLogChute.java:89)
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:589)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:135)
at com.konakartadmin.bl.AdminHtmlMgr.getVelocityEngine(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtmlOrder(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtmlOrderInvoice(Unknown Source)
at com.konakartadmin.bl.AdminHtmlMgr.getHtml(Unknown Source)
at com.konakartadmin.bl.KKAdmin.getHtml(Unknown Source)
at com.konakartadmin.server.KKAdminGWTServiceImpl.getHtml(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Title: Re: Getting exception Couldn't locate the Velocity Engine
Post by: trevor on November 12, 2009, 05:38:56 am
My advice is to use the installer. Once you have it working you can then compare your manual installation to the one created by the installer to spot what is different.
Title: Re: Getting exception Couldn't locate the Velocity Engine
Post by: Kundan on November 12, 2009, 11:24:58 am
Got the solution, now i have replaced the logging.properties files in conf folder of my tomcat.  :D
Title: Re: Getting exception Couldn't locate the Velocity Engine
Post by: Kundan on November 12, 2009, 11:27:03 am
Thanks Trevor, i did the same thing and came to conclusion that there is something wrong with the tomcat configurations so i did the same what i have written above.