KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: Pedro on March 25, 2010, 12:11:41 pm

Title: Konakart Import/Export utility through jsp
Post by: Pedro on March 25, 2010, 12:11:41 pm
Hello Konakartians,

I need to call the ImportKKUsingEng.sh trough a jsp page, so that I would be able to import products through a backoffice page. The problem is the sequence jsp -> sh -> java, cause i can call the sh program like this:

"String cmd="/jboss/jboss-5.1.0.GA/Konakart/konakart/import_export/ImportToKKUsingEng.sh";
            try{
           
              p=r.exec(cmd);"


But i get the following exception:

"Exception in thread "main" java.lang.NoClassDefFoundError: com/konakart/importer/ImportRunner Caused by: java.lang.ClassNotFoundException: com.konakart.importer.ImportRunner at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) Could not find the main class: com.konakart.importer.ImportRunner. Program will exit. "

I already echoed the IMP_EXP_CLASSPATH and it contains the java path and all the paths it sets on setClasspath.sh script.

What could i do to get this working?

Thanks,
Pedro Neto
Title: Re: Konakart Import/Export utility through jsp
Post by: heidi on March 25, 2010, 12:20:55 pm
Have you tried moving konakart_import_export.jar into your konakart webapp?