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

Interval Server Error 500

Started by Steveinjava, December 06, 2007, 03:56:26 pm

Previous topic - Next topic

Steveinjava

Hi, I am trying to integrate openCms and KonaKart using the integration module. I have both working independently.
See http://www.quasarsoft.co.uk/KonaKart
&
http://www.quasarsoft.co.uk/opencms/opencms

But having followed the instructions to use the integration module and the localization kit, complete with altering the URL in the wsdl file from localhost:8070 to quasarsoft.co.uk:3306
and then rezipping the module and installing it, then building it using ant:
I get Internal Server Error 500 and an exception report of

javax.servlet.ServletException: javax.servlet.jsp.JspException: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.DataDescriptor - custom1

when I click on
http://www.quasarsoft.co.uk/opencms/opencms/konakart-integration/index.jsp

Any ideas anyone? I have tried a lot of things and restarted Tomcat but to no avail. I have only added one product ("gold plan") and one category ("firmware") to the default products in the KonaKart product list and it has no custom fields.
???

pete

Hi,

What I suggest is to get the wsdl directly from your local version of KonaKart using the url http://localhost:8780/konakart/services/KKWebServiceEng?wsdl . You may have to change the hostname:port depending on where it has been installed.

Once you have that WSDL you should use it in place of the one in the open cms download package. Then you should follow the instructions to create the new konakart-opencms.jar which should be created by running ant. You don't have to rezip anything.

good luck,

Pete

Steveinjava

Pete, many thanks. Sadly no change. It does seem weird with both KonaKart AND OpenCms working by themselves...

Steveinjava

After a tomcat restart a change has occurred...Now clicking
http://www.quasarsoft.co.uk/opencms/opencms/konakart-integration/index.jsp

produces something like the required screen with the products as I have them in my local KonaKart db.

BUT

The links to the shopping cart are to www.konakart.com rather than my local copy.
So the integration has half worked. I guess someone must know which file holds the Anchor URL reference so I can check why it hasn't changed to a local reference?
Thanks in advance  :)

pete

If you take a look at the jsps you'll see this code :

String kkUrl = cms.property("konakart.url", "search", "http://www.konakart.com/konakart/";);


Steveinjava

Pete, I place of that line in NewProductsBody.jsp & BestSellersTile.jsp I have

String kkUrl = cms.property("konakart.url", "search", "http://www.quasarsoft.co.uk/konakart/";);

Is that not correct?

Steveinjava

While I still have an error clicking

http://www.quasarsoft.co.uk/opencms/opencms/konakart-integration/index.jsp

...when I click on

http://www.quasarsoft.co.uk/opencms/opencms/system/modules/com.konakart/elements/index.jsp

I get what I want with references to my local KonaKart website!

I have a weekend ahead to figure out why it doesn't appear in the normal URL :)