• Welcome to KonaKart Community Forum. Please login or sign up.
 

Error creating new order total module

Started by vpod, December 09, 2009, 09:37:10 pm

Previous topic - Next topic

vpod

I'm trying to create a new order total and I having the following error:

Quote09-Dec 18:13:36 ERROR (?:getOrderTotals:?) Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES
java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotalModuleForName(Unknown Source)
   at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotals(Unknown Source)
   at com.konakart.app.KKEng.getOrderTotals(Unknown Source)
   at com.konakart.app.KKEng.getOrderTotals(Unknown Source)
   at com.konakart.ws.KKWebServiceEngSoapBindingImpl.getOrderTotals(Unknown Source)
   at com.konakart.ws.KKWebServiceEngSoapBindingSkeleton.getOrderTotals(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 org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:619)


I created the class "Intereses" in the package "com.konakartadmin.modules.ordertotal.intereses" and the class "Intereses" in "com.konakart.bl.modules.ordertotal.intereses". The new order total is installed in the konakartadmin. but when the konakart start the error appears.

What am I missing?


More information: I attached the classes.

Vpod

Sony George

what value u have given in webapps\konakartadmin\WEB-INF\classes\konakartadmin.properties ??

it should be

konakart.modules.ordertotal=Shipping SubTotal Tax Total ProductDiscount TotalDiscount Intereses

please check

vpod

I checked it. The value is correct. The "Intereses" OrderTotal Module appears in the admin correctly, but the error still persists.

Sony George

Quote from: vpod on December 10, 2009, 12:50:38 pm
I checked it. The value is correct. The "Intereses" OrderTotal Module appears in the admin correctly, but the error still persists.


did u put the konakart_ordertotal_intereses.jar in both konakartadmin\WEB-INF\lib and konakart\WEB-INF\lib folders ??


vpod

yes. I named it "konakartExtensions.jar".
I debug with eclipse and the module is loaded in both applications.

The error displays

QuoteCould not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES


but my modules is "Intereses".

I think the problems key is here:

Quotejava.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.ot_intereses.Ot_INTERESES
[...]
at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotalModuleForName(Unknown Source)