• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 22, 2024, 01:52:49 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Pedro

1
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
2
Why can't use this directly on opencms?

                        URL server = null;
   
         try {
            server = new URL("http://localhost:8080/konakartadmin/services/KKWSAdmin");
         } catch (MalformedURLException e) {
            
         }
         
         //KKAdminCustomEng
         // Get the products from the KonaKart engine using a SOAP call
         KKWSAdminIf eng = new KKWSAdminIfServiceLocator().getKKWSAdmin(server);
         
3
Yeah but i need to show on items the promotions, so that client knows of the promotion.
For example on konakartadmin i will have a promotion for a +10 pencils that will cost 1€ instead of 2€.
On pencil detail i will have the following:
buy 1 per 2€ 
buy 10 for 1€ each 

After that when the order is made the discount is applied.

So how can i get a list of the promotions?

The following code works for konakart:

try {
      server = new URL("http://localhost:8080/konakart/services/KKWebServiceEng");
   } catch (MalformedURLException e) {
      out.print(e);
   }
   KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng(server);

Can i do something similiar for konakartadmin?

Thanks
4
And how can i get the list of all promotions of certain type without going throuhg an order.

If I can read all the promotions set on konakartadmin i can then show the price based on the items it affects.
5
First of all i created an order total  module that alters the product price according to a quantity range, but now i'd like to know if it is possible to show the discount directly on item description.
I need to show something like

Name of the item!
1 x 17 €
15 x 16 €
  30+ x 15 €

But i didnt find out how to do it without having to go through an order to get the getApplicableProducts() and the promotion.

Is it possible to get all the promotions? how can i do that?
Is there another way more direct to get the discounts for each product?

Thansk in advance,
Pedro
6
Programming of KonaKart / Re: msg.thereHasBeenAProblem
October 30, 2009, 03:28:26 pm
Ok forget it... After lunch and looking better at the problem I found a solution.

There was another message that was something like "Konakart can't find the adminMessages_pt.properties file" and this happened because I added a new language and did set this language as default.
Well it seems that konakart then uses the adminMesseges_(twoLetterCountryCode).properties to translate for the language you defined.

So the solution was to create the file it was complained for, in this case adminMessages_pt.properties in ../konakartadmin/WEB-INF/classes/ directory.
7
Programming of KonaKart / msg.thereHasBeenAProblem
October 30, 2009, 12:50:00 pm
Hello,

I have this problem and now i can't even log in to konakartadmin.

The cause:
I think it all happened because i changed the name of the taxclass and in the shiping module it didn't change, and when i pressed the refressh icon this error appeared:

msg.thereHasBeenAProblem

Exception Stack Trace =
at com.konakart.util.PropertyFileFinder.findProperties(Unknown Source)
at com.konakartadmin.bl.AdminMessageMgr.getMsgs(Unknown Source)
at com.konakartadmin.bl.KKAdmin.getMsgs(Unknown Source)
at com.konakartadmin.server.KKAdminGWTServiceImpl.getMsgs(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:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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:191)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)

What is this? How can i solve it?

Thanks