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

New OrderTotal module

Started by impiastro, May 03, 2010, 05:51:36 pm

Previous topic - Next topic

impiastro

I created a new OrderTotal module starting from Tax.java code.

I created both the konakart and konakartadmin files. My new module is called Nntax .
I changed also konakartadmin.properties file adding my order total module:


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


I created the jars and put them inside both konakart and konakartadmin web apps, I restarted Tomcat and I was able to view and initialize the OrderTotal module in the konakart admin application.
But when I call the methods:


order = eng.getOrderTotals(order, com.cone.neronote.Constants.NN_KK_DEFAULT_LANGUAGE);
OrderTotal[] orderTotals = order.getOrderTotals();


I'm receiving this error in console:


03-May 18:41:40 ERROR (?:getOrderTotals:?) Could not instantiate the OrderTotal Module com.konakart.bl.modules.ordertotal.ot_nntax.Ot_nntax
     [exec] java.lang.ClassNotFoundException: com.konakart.bl.modules.ordertotal.ot_nntax.Ot_nntax
     [exec] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
     [exec] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
     [exec] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     [exec] at java.lang.Class.forName0(Native Method)
     [exec] at java.lang.Class.forName(Unknown Source)
     [exec] at com.konakart.bl.modules.ordertotal.OrderTotalMgr.getOrderTotalModuleForName(Unknown Source)


It seems that konakart is looking for a class called Ot_nntax , but inside my code there is no class with this name.

I found other two people in the forum struggling with this issue:

http://www.konakart.com/forum/index.php/topic,362.0.html

and

http://www.konakart.com/forum/index.php/topic,362.0.html

Maybe a konakart bug or a module misconfiguration?

Thanks for your attention.

ROb

anstuff

Please verify the values for code in NnTax.java.

Sony George

Dear Friend,

Please Check these areas

step 1)
D:\konakart42\custom\modules\src\com\konakartadmin\modules\ordertotal\nntax\Nntax.java
in Nntax.java the method should be

step 2)
    public String getImplementationFileName()
    {
        return "Nntax";
    }

Step 3)
\custom\modules\src\com\konakart\bl\modules\ordertotal\nntax\Nntax.java

private static String code = "nntax";




impiastro

Thank you for your replies, but I have already change my mind in replacing the base Tax module.

ROb