• Welcome to KonaKart Community Forum. Please login or sign up.
February 29, 2024, 02:30:20 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 - rula

Hi julie,
when I run my konakart gwt app in hosted mode it throws the following exception.
Why org/apache/struts/action/Action?

regards rula

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/apache/struts/action/Action
   java.lang.ClassLoader.defineClass1(Native Method)
   java.lang.ClassLoader.defineClass(Unknown Source)
   java.security.SecureClassLoader.defineClass(Unknown Source)
   java.net.URLClassLoader.defineClass(Unknown Source)
   java.net.URLClassLoader.access$100(Unknown Source)
   java.net.URLClassLoader$1.run(Unknown Source)
   java.security.AccessController.doPrivileged(Native Method)
   java.net.URLClassLoader.findClass(Unknown Source)
   java.lang.ClassLoader.loadClass(Unknown Source)
   sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   java.lang.ClassLoader.loadClass(Unknown Source)
   java.lang.ClassLoader.loadClassInternal(Unknown Source)
   com.konakart.al.KKAppEng.<init>(Unknown Source)
   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   java.lang.reflect.Constructor.newInstance(Unknown Source)
   java.lang.Class.newInstance0(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   java.lang.reflect.Constructor.newInstance(Unknown Source)
   java.lang.Class.newInstance0(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
Hi KonaKarts,
I think it should be possible to run your onepagecheckout kit in a gwt application without struts but I don't
no in details what I have to do, to reach this. Okay, I could remove struts specific parts and I have to add a GWT servlet and mapping like in konakart. But than I am at the end with my knowhow. Would the rpc mechanism also work ? In moduleLoad methode of the Konakart entryPointClass theres controller logic with states and actions. Is it a good way to use all these things? regards, rula
Hi KonaKarts,
I have integrated:
KonaKart in Struts blank: http://web475.server47.mivitec.net/konakart1soap/ and
KonaKart in OpenCms tempaltetwo: http://web475.server47.mivitec.net/opencms/opencms/

Thanks to all KonaKarts for the help and the fine integration starter kits.
regards, rula
Hi KonaKarts,

I get the following exception in my manufacturersTile out of opencms by the first call:

Exception Name = com.konakart.app.KKException
Exception Message = The manufacturer with id = -1 doesn't have an entry in the manufacturers_info table
Exception Stack Trace =
at com.konakart.bl.ManufacturerMgr.UpdateManufacturerViewedCount(Unknown Source)
at com.konakart.app.KKEng.updateManufacturerViewedCount(Unknown Source)
at com.konakart.actions.ShowHomepageAction.execute(ShowHomepageAction.java:71)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
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:174)
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(Unknown Source)

by the next call it seems to work but links always to the same address.

I do nothing more than this in my jsp:

<a href="${fn:escapeXml(url)}" title="${manu.name}">${manu.name}</a><br/>
<c:url var="url" value="${kkUrl}ShowHomepage.do">
  <c:param name="url" value="${manu.url}"/>

For me it seems to be a problem with the selectedManufacturer, have you any idea?
regards, rula
Hi pete,

o.k., thanks for the help and explanation, now I understand a litte bit more.

CategoryIf[] getCategoryTree(int languageId, boolean getNumProducts)
          Returns a category tree structure consisting of an array of top level categories, each of which may contain an array of child categories.

regards, rula
Hi konakarts,
finally your opencms modul works for in my local installation.
Now I have a problem with the parameters of the soap client methods.
e.g. in KKWSEngInf.java
public com.konakart.wsapp.Category[] getCategoryTree(int in0, boolean in1) throws java.rmi.RemoteException;

I searched through many resources, apis and docs, but I cannot find the meaning of these parameters to call this method correct. ok., it's a interface, but you have implemented it. How and where can I find what I looking for.
By the way, it's a pleasure to see, how you can integrate your shopping cart with soap.
By and by, it's joyful for me to work with konakart, thanks to all concernd persons.
regards, rula
Hi konakarts,
ups, I found this in the jsp's in opencms. I have to change  "http://www.konakart.com/konakart/"; to the correct local url, sorry.
String kkUrl = cms.property("konakart.url", "search", "http://www.konakart.com/konakart/");

regards, rula
Hi konakarts,

I have imported your opencms module and created the konakart-opencms.jar form a local version of konakart and copied in the WEB-INF/lib of opencms installation.
This throws exception:

An error occurred at line: 32 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/BestSellersTile.jsp
The type javax.xml.rpc.ServiceException cannot be resolved. It is indirectly referenced from required .class files
29: String kkImgPath = "../resources/images/";
31: // Get the bestseller products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(10); // We only want to get back 10 products

I use another <wsdlsoap:address location="http://localhost:8080/konakart1/services/KKWebServiceEng"/>

I think I get "indirectly referenced" in the past when I have forgotten to add jsp and servlet-api.jar to the buildpath of my projects !?

Could anybody help? regards, rula
Hi konakarts,
here my small product comparison link in productDetails.jsp.
(The first three action dvds with xml dummy data), regards, rula
Programming of KonaKart / Re: markup validation
August 13, 2008, 10:58:55 am
Hi konakarts,
I searched desperately, now it's clean, or !?
regards, rula
Programming of KonaKart / Re: debug
August 11, 2008, 04:08:54 pm
Hi Brian,

yes, it's my sourcode, I set debug="true" in build.xml for srcdir="${custom.home}/appn/src/

regards, rula
Programming of KonaKart / Re: debug
August 11, 2008, 03:49:07 pm
Hi konakarts,

sorry, now it seems that debugging is possible, I don't know the cause! regards, rula
Programming of KonaKart / debug
August 11, 2008, 03:24:42 pm
Hi konakarts,
I can not debug konakart in eclipse.
Absent Line Number information

Unable to install breakpoint in ...
missing line number attributes. Modify Compiler options to generate the line
number attributes

I looked for comiler setting of workspace and project,
set debug="off" to debug="trie" in build.xml and
and searched in tomcat for debug settings, but found nothing. :(

Please, help would be fine, regards, rula
Hi julie,
okay, now it's clear, thank you.
regards, rula
Hi julie,

okay, the user select the product ids and product features from comparison data field can be displayed or
transformed in the jsp, additionally perhaps a image and a detail link. I saw a interesting XmlUtils class with a methode to serialize objects. Could this be relevant for the comparison page? regards, rula