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


Started by dhan, March 24, 2008, 07:00:08 pm

Previous topic - Next topic


Hi folks,

I am new to both openCms and konakart. To start with, I am trying opencms integration with the konakart server, and followed the instructions to setup openCms. I imported the konakart-opencms module (com.konakart_22.20.0.zip) in to openCms and restarted the tomcat servlet container.

On invoking, http://localhost:7001/opencms/opencms/konakart-integration/index.jsp, I get the SAXException (please see below).

Obviously, I have missed something (which I do always:). Any clues will be much appreciated.

Thanks for the help,

Errorjavax.servlet.jsp.JspException: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Product - price0
Reason: ; nested exception is:
org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Product - price0
Reason: Invalid element in com.konakart.wsapp.Product - price0



I think you're using a open cms kit against the latest version of KonaKart which is  (That will be incompatible because it doesn't have the new multiple prices feature introduced in

If so, you should upgrade to the com.konakart_22.40.0.zip and try again.

Let us know how you get on,



I appreciate your quick reply.

The opencms module page doesn't seem to have com.konakart_22.40.0.zip  download link.

Should I look in to main konakart download?

Thanks for the help!


Hi Dhan,

Ah, I see that too.   Someone has assured me that the website will be updated soon...  look out for it on http://www.konakart.com/opencms.php within the next hour.

You'll find there isn't much in that actually... and you can recreate the all-important konakart-opencms.jar from the source and ant build file that we provide in the standard download kit...



Thanks Kate for the quick help. The new version works fine.

Thanks again!.



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,
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,
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 Rula,

The KKWSEngInf methods are identical to the KKEngIf methods except that they generate SOAP messages in order to communicate to the engine. Therefore you can look at the Javadoc for KKEngIf to figure out the parameters.


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,

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 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