• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 29, 2024, 02:47:08 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 - BruceLee

16
Configuration of KonaKart / Re: Config confusion
October 01, 2007, 06:35:17 pm
Thanks Trevlor. I'll go that road and let you know our progress. -Bruce
17
Configuration of KonaKart / Re: Config confusion
September 30, 2007, 09:47:51 pm
Thank Trevor for support.

Quote from: trevor on September 30, 2007, 11:50:16 am
Not that I know of.  The SOAP interface is a good way to keep these things separate so it can have advantages over the direct java route.
...
You should have no problem if you wrote all your client in Webwork and just relied on the KonaKart engine for the shopping cart functionality. 

About SOAP, Our website don't need full-featured shopping cart (at least in current stage), but need basket list, checkout pages mostly. I guess SOAP interface is over-kill and requires much work based on our app?
About client API, do you mean we don't use any Struts action class like LoginAction, but just use KKAppEng API directly from our WorkWork action class?
import com.konakart.al.KKAppEng;

Thanks!
-Bruce
18
Configuration of KonaKart / Re: Config confusion
September 30, 2007, 08:10:59 am
Thanks Trevor.
1) If we deploy 2 webapps in same Tomcat, is there easy way for our app to communicate with KonaKart app besides SOAP? Like some method through Tomcat?
2) Do you say if we put KK jars to our app, WorkWeb actions shall be able to call client API? Do we also need to copy/merge some WEB-INF config files like web.xml, struts-config.xml?
3) Can you share the source code of  KonaKart Catalog Inspector built using the OpenLaszlo platform? Does it use any Struts JSP pages or just call KK client API directly?

I wonder how to integrate WebWork2 WEB-INF config files with KK struts' ones.

Thanks!
-Bruce
19
Configuration of KonaKart / Re: Config confusion
September 29, 2007, 06:34:00 pm
Team,

We figured out Q2. Still have questions

Our website uses WebWork2 +Spring framework in Tomcat. Is it possible
1) to use both WebWork and Struts for JSP?
2) call client API and Structs action from my WebWork Action class?

Forgive me if it looks like spam...
-Bruce
20
Configuration of KonaKart / Re: Login integration.
September 29, 2007, 06:31:07 pm
Thank Paolo for reply. Still questions:
1) How does KK engine determine it's identical serverlet session? from the request source IP address and/or others?
2) How does other web components (like WebWork2 Action) call KK client API (which is Struts Action)?
KK website mentions the OpenLazb Flash application, do you open it's source code?
Or do you have sample using other web components to access KK client API, besides Struts?
3) Since WebWork2 and Struts are converging to Struts 2, does KonaKart plan to upgrade to it in near futher?

Thanks!
-Bruce
21
Yes. I figure out that if I put
header.my.account=\u8ba9\u7cfb\u7edf\u8bb0\u4f4f\u6211
in Messages.properties
Then it can display correct characters.

Thanks for heplful info!
-Mike
22
Sorry I don't fully catch it from the faq and  couldn't see much posts in forum either.
The Asian (eg Japanese and Chinese) characters in database are OK. But we cannot make it to work on UI.
What we did,
1) Copy Messages.properties to Messages_zh.properties,
and change header.my.account to some Chinese characters
2) Add lines in struts-config.xml
         <action path="/SetLocale_zh_CN" type=" com.konakart.actions.SetLocaleA
ction" parameter="zh_CN">
            <forward name="SetLocale" path="/CatalogMainPage.do"/>
        </action>
3) On web browser I type
localhost:8780/konakart/SetLocale_zh_CN.do
4) But on main page, 'my account' displays wrong characters.
We also tried use existing de_DE and changed header.my.account to some Chinese characters. But it doesn't display correctly either.

Have we done correct steps? An step-by-step faq for this is highly appreciated.
-Bruce
23
Configuration of KonaKart / Re: Login integration.
September 28, 2007, 09:54:20 pm
We have same requirement:  we want our application's user to auto login to KonaKart and checkout.
I use WebWork2 as our web framework. Since you mention that only calling kkEng.login() is not enough, Struts action LoginSumitAction type of thing is needed.
Is it a way to do that with WebWork2 ( or any other Web framework)?
Basically we want get the session id, and let KonaKart client engine also keeps this id.
Question is, how does client engine decide that this request has same session id as previous page from our WebWork JSP?

Correct me if I looks stupid. Maybe I'm:)
Thanks!
-Bruce

Quote from: paolo on August 16, 2007, 12:47:29 pm
Hi,

The Struts actions use the client engine so you must first login using the same code as you can find in LoginSubmitAction.java. Once you've done that, AddToCartFromProdId should work properly because the client engine stores the session id and automatically passes it to the server engine which actually performs the "addToCart".

-Paolo
24
John,
I also have concerns about
- Perhaps most importantly, how do I integrate KonaKart into my Web site?

Our website uses WebWork2 +Spring framework in Tomcat. Is it possible
1) to use both WebWork and Struts for JSP?
2) call client API and Structs action from my WebWork Action class?

More questions:
1. Now WebWork2 and Struts are converging to single code base. Do you have plan to support Struts 2?
2. How can I put KonaKart software to my Tomcat 5.2.23 environment? Note we use WebWork2+Spring now.
Or just run 2 Tomcat's, one is on port 8080 for my application, another on 8780 for KonaKart. If so, how does my application communicate to KonaKart?

Thanks!
-Bruce
25
Installation of KonaKart / Errors when I start KonaKart
September 21, 2007, 03:10:59 pm
Dear Team,

I don't feel comfortable with many errors on Command Window that displays Tomcat start-up messages. One of them is,
com.konakart.app.KKException: There are no languages in the database
        at com.konakart.bl.LanguageMgr.setDefaultLanguage(LanguageMgr.java:270)
        at com.konakart.bl.LanguageMgr.getDefaultLanguage(LanguageMgr.java:103)
        at com.konakart.app.KKEng.getDefaultLanguage(KKEng.java:313)
        at com.konakart.app.KKEng.getDefaultLanguage(KKEng.java:63)
        at com.konakart.al.KKAppEng.<init>(KKAppEng.java:291)
        at com.konakart.al.ConfigCacheUpdater.getClientEng(ConfigCacheUpdater.ja
va:77)
        at com.konakart.al.ConfigCacheUpdater.updateConfigs(ConfigCacheUpdater.j
ava:191)
        at com.konakart.al.ConfigCacheUpdater.run(ConfigCacheUpdater.java:147)
21-Sep 09:04:39 INFO  (KKAppEng.java:<init>:268) Engine used by application is c
om.konakart.app.KKEng
com.konakart.app.KKException: There are no languages in the database


Besides, I got following error on IE when I clicked shortcut "Start and Launch KonaKart". After a while, the KonaKart Admin page still shows though.

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find bean: "konakartKey" in any scope
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
   org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
   org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
   org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.ServletException: Cannot find bean: "konakartKey" in any scope
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
   org.apache.jsp.WEB_002dINF.jsp.MainLayout_jsp._jspService(MainLayout_jsp.java:305)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
   org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
   org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
   org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Cannot find bean: "konakartKey" in any scope
   org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
   org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:230)
   org.apache.jsp.WEB_002dINF.jsp.MainLayout_jsp._jspService(MainLayout_jsp.java:77)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
   org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
   org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
   org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Thanks!
-Bruce
26
Thank Trevor for quick response.

I tried manually in mysql, but still got same error
----
D:\Programs\KonaKart\database\MySQL>mysql dbcart -uroot -proot < konakart_demo.sql
ERROR 1406 (22001) at line 630: Data too long for column 'categories_name' at row 1

Then I replaced the string in demo.sql with "AAA". If I save it as UTF-8 (default), mysql appears not to know comment "#" anymore, and error
----
D:\Programs\KonaKart\database\MySQL>mysql dbcart -uroot -proot < konakart_demo-utf8.sql
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL serv
er version for the right syntax to use near '锘?
DROP TABLE IF EXISTS address_book' at line 1


Then if I save demo.sql as ANSI, it went further, but still error. But I cannot even find the Incorrect string value: '\xA1\xE8le' in demo.sql!
----
D:\Programs\KonaKart\database\MySQL>mysql dbcart -uroot -proot < konakart_demo-ansi.sql
ERROR 1366 (HY000) at line 1220: Incorrect string value: '\xA1\xE8le p...' for column 'products_description' at row 1

I attached my changed sql FYI (Since 192k limit, I zipped them). Any clues? Thanks again,
-Bruce
27
Dear Sir/Madam,

When I tried to install KonaKart, I got following error on wizard page "Initialise the KonaKart Database". Any ideas?

My PC OS: Windows Vista Home Premium, English version (But set non-Unicode default to other language)
MySQL 5.0.41-community-nt
Create table in mysql:
  CREATE DATABASE `dbcart`
       CHARACTER SET 'utf8'
       COLLATE 'utf8_general_ci';

-----------------------------------------------
INSERT INTO categories_description VALUES ( '8', '2', 'Tastaturen');
INSERT INTO categories_description VALUES ( '9', '2', 'Mäuse');
Message:   Data truncation: Data too long for column 'categories_name' at row 1
SQLState:  01004
ErrorCode: 0

Thanks in advance!
-Bruce