• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 30, 2025, 02:11:48 pm

Recent posts

Pages 1 ... 3 4 5 6 7 ... 10
41
Programming of KonaKart / Re: New classes not being reco...
Last post by mvittiglio - July 10, 2020, 08:18:28 pm
Brian,
Thanks for your patience through this. I figured it out and you were correct. I had to find the place where the JAR was being created and explicitly point it to the class files. Issue resolved. The build.xml's target "make_jar_custom" needed to have the following added: `<include name="com/konakart/**/*.class" />`
42
Programming of KonaKart / Re: New classes not being reco...
Last post by Brian - July 09, 2020, 06:01:24 am
I refer back to my first reply... 

"Could it be that you simply aren't deploying the new class that is generated when you compile the modified BaseAction class?  Maybe you will have to modify the ANT build script to include your new class file in the target jar?"

If the class isn't being found by the ANT build it won't be added to any of the jars and then copied to your webapps.

Look for the missing class file after compilation. It might be called BaseAction$FeatureFlagSupport.class for example.  Did your new class file get included in the jar? I suspect not.  If not, you need to modify the ANT build file to add it to the required jar.


BTW. You probably don't want to create wars in your case (no need to run  ./bin/kkant -f ./build.xml make_wars).
43
Programming of KonaKart / Re: New classes not being reco...
Last post by mvittiglio - July 07, 2020, 10:13:54 pm
Thanks for getting back to me. I've tried to do the following build commands `../bin/stopkonakart.sh && ./bin/kkant -f ./build.xml build && ./bin/kkant -f ./build.xml copy_jars && ./bin/kkant -f ./build.xml make_wars && ../bin/startkonakart.sh` but it seems that the class is still not being found. What's stranger still is that the class is a public static member of BaseAction which means that it should be considered a part of the BaseAction class that's already being used. Is there some manifest that needs to be updated to include this new class?
44
Programming of KonaKart / Re: New classes not being reco...
Last post by Brian - July 06, 2020, 10:18:39 am
Could it be that you simply aren't deploying the new class that is generated when you compile the modified BaseAction class?  Maybe you will have to modify the ANT build script to include your new class file in the target jar?
45
Programming of KonaKart / New classes not being recogniz...
Last post by mvittiglio - July 02, 2020, 06:41:13 pm
Hey folks, I'm new to KonaKart and I'm dipping my toe into integrating an external tool into the BaseAction class. However, even with a simple addition that should require no imports (creating a static class definition in the BaseAction class itself for example)  results in a successful build but exceptions get thrown at runtime (see below). The question I have is if there's an additional step required to introduce new classes into the pipeline.

Root Cause

java.lang.NoClassDefFoundError: com/konakart/actions/FeatureFlagSupport
com.konakart.actions.BaseAction.getKKAppEng(BaseAction.java:298)
com.konakart.actions.CatalogMainPageAction.execute(CatalogMainPageAction.java:48)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:446)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:285)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
com.konakart.actions.interceptors.LoggingInterceptor.intercept(LoggingInterceptor.java:30)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.json.JSONInterceptor.intercept(JSONInterceptor.java:248)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
com.konakart.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:29)

Any help would be most welcome. :-)
46
Programming of KonaKart / Re: customers table, and kk_co...
Last post by vexeffect - May 04, 2020, 01:44:10 pm
I was able to run the GetCustomer example, which pulls up customer information by email address. I had to specify a whole list of jar files as well as run java from the WEB-INF/classes directory so that the konakart.properties file could be read. I also updated the login credentials in BaseApiExample.java


47
Programming of KonaKart / Re: customers table, and kk_co...
Last post by Brian - May 01, 2020, 09:58:38 am
I think you really need to change the way you're approaching this.   With KonaKart the programming is all about the APIs.   Everything is available through the APIs.   You shouldn't need to look at the database at all.   You would only tend to do that for extremely special cases or perhaps for reporting purposes.

My advice would be to study the API examples.  Use the User Guide to work out how to run the examples (you use ANT).  From there, you could try to write a few simple programs that use the APIs so that you become familiar with using them. Once you're familiar with their use you will be able to do just about anything you want with your eCommerce store.
48
Programming of KonaKart / customers table, and kk_cookie...
Last post by vexeffect - April 30, 2020, 01:10:27 pm
I'm using community edition 9.2.0.0 and I see the tables in my Postgresql database. I was wondering how to tie together the sessions table which has the sesskey and customer_id in it, and perhaps also use the kk_cookie table with its customer_uuid. I would like to access for example the customers table to get the full information (through customer_id), from say the customer_uuid.
Maybe the sesskey is also listed in other tables but I wasn't sure.

Is what I'm looking for also in the database table or is it somehow managed by Apache Tomcat?

I'd like to also learn more about getting started with the Java API, and I built the java_api_examples like GetCustomer.class but I wasn't sure yet how to run them. I figured I'd probably be able to get information on a single session, if I can add a servlet, but is there a way to get access to all sessions by running a Java application in a console?
49
Configuration of KonaKart / Re: Ghostcat vulnerability
Last post by Brian - April 03, 2020, 02:34:45 pm
You need to take steps to ensure your installation of tomcat is not exposed to this vulnerability.

First of all, not all installations need the AJP Connector to be enabled.  If you don't need it... simply comment out the Connector in your tomcat's server.xml (you'll find that in the installation's conf directory).

The AJP connector is often used for communication between an Apache Web Server and Tomcat.   

If you use the AJP connector you must ensure that your firewall is configured to protect the AJP listening port from all locations that don't need access to it.  You should ensure your AJP port is not accessible from external IP addresses.

Note that not all versions of tomcat are affected.

It is certainly recommended that you upgrade to a version of Tomcat that has the fix.  Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later resolve the problem.
50
Configuration of KonaKart / Ghostcat vulnerability
Last post by smudge - April 03, 2020, 02:24:44 pm
I read about the Ghostcat vulnerability - the subject of CVE-2020-1938

Is KonaKart vulnerable to that?
Pages 1 ... 3 4 5 6 7 ... 10