• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 29, 2024, 06:45:45 am

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

1
Hi all,
i added a new payment module with some new configurations (KKConfiguration)
i see all configuration properties in konakartadmin and all works fine , but if i'm changing some values its it not refreshed in the konakart without tomcat's restart .

is this the expected behavior or am i missing some configuration ?  (i didn't do anything special in the PaymentModule class, only defined the KKConfiguration)

2
Configuration of KonaKart / Re: new payment module
April 14, 2013, 11:46:00 am
i understood there was a problem with the configuration but couldn't understand the issue.

needed to flag with isReturnByApi to true .

can someone tell me what is this configuration property ?
in older version 4.1 there wasn't such configuration in the adminapp
3
Configuration of KonaKart / new payment module
April 11, 2013, 09:43:30 am
hi , i added a new payment module with basically copy-paste from another module
and during deployment i get exception.
i can see the new module in the admin application and its configuration are set (also the MODULE_PAYMENT_GEMALTO_ID which is complained)

any suggestions ?

11-אפר 11:34:14 WARN  (?:checkIfReturnable:?) Configuration for key MODULE_PAYMENT_GEMALTO_ID cannot be returned by the API
11-אפר 11:34:14 ERROR (PaymentMgr.java:refreshConfigs:166) Could not instantiate the Payment Module com.konakart.bl.modules.payment.gemalto.Gemalto in order to refresh its configuration.
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at com.konakart.bl.modules.payment.PaymentMgr.getPaymentModuleForName(PaymentMgr.java:692)
   at com.konakart.bl.modules.payment.PaymentMgr.refreshConfigs(PaymentMgr.java:162)
   at com.konakart.bl.modules.payment.PaymentMgr.<init>(PaymentMgr.java:90)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at com.konakart.bl.MgrFactory.instantiatePaymentMgr(Unknown Source)
   at com.konakart.bl.MgrFactory.getPaymentMgr(Unknown Source)
   at com.konakart.app.KKEng.updateCachedConfigurations(Unknown Source)
   at com.konakart.bl.EngineConfigCacheUpdater.updateConfigs(Unknown Source)
   at com.konakart.bl.EngineConfigCacheUpdater.run(Unknown Source)
Caused by: com.konakart.app.KKException: Cannot return the value of the MODULE_PAYMENT_GEMALTO_ID configuration parameter using the API. (Ask your administrator to set the 'return by API' flag for this configuration parameter if you need it to be returnable)
   at com.konakart.bl.ConfigurationMgr.checkIfReturnable(Unknown Source)
   at com.konakart.bl.ConfigurationMgr.getConfiguration(Unknown Source)
   at com.konakart.bl.ConfigurationMgr.getConfiguration(Unknown Source)
   at com.konakart.app.KKEng.getConfiguration(Unknown Source)
   at com.konakart.bl.modules.payment.gemalto.Gemalto.setStaticVariables(Gemalto.java:134)
   at com.konakart.bl.modules.payment.gemalto.Gemalto.<init>(Gemalto.java:113)
   ... 16 more
11-אפר 11:34:14 WARN  (?:checkIfReturnable:?) Configuration for key MODULE_PAYMENT_GEMALTO_ID cannot be returned by the API
11-אפר 11:34:14 ERROR (PaymentMgr.java:refreshConfigs:166) Could not instantiate the Payment Module com.konakart.bl.modules.payment.gemalto.Gemalto in order to refresh its configuration.
com.konakart.app.KKException: Cannot return the value of the MODULE_PAYMENT_GEMALTO_ID configuration parameter using the API. (Ask your administrator to set the 'return by API' flag for this configuration parameter if you need it to be returnable)
   at com.konakart.bl.ConfigurationMgr.checkIfReturnable(Unknown Source)
   at com.konakart.bl.ConfigurationMgr.getConfiguration(Unknown Source)
   at com.konakart.bl.ConfigurationMgr.getConfiguration(Unknown Source)
   at com.konakart.app.KKEng.getConfiguration(Unknown Source)
   at com.konakart.bl.modules.payment.gemalto.Gemalto.setStaticVariables(Gemalto.java:134)
   at com.konakart.bl.modules.payment.PaymentMgr.refreshConfigs(PaymentMgr.java:163)
   at com.konakart.app.KKEng.updateCachedConfigurations(Unknown Source)
   at com.konakart.bl.EngineConfigCacheUpdater.updateConfigs(Unknown Source)
   at com.konakart.bl.EngineConfigCacheUpdater.run(Unknown Source)
4
sorry for the late response.

the manual installation has some bug or missing instructions in guide cause when i installed with the windows wizard it worked.

though i don't think this should be the solution.
5
basically i need it both for linux and windows, and with tomcat already installed.
i don't understand what should be the difference .

i saw this exception can be cause due to mismatches in tiles versions, changed DTD from 2.1 to 2.0 and the application deployed successfully .
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">;

but now i get another exception on
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.struts.taglib.bean.DefineTag
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)

seems like an issue in struts,tiles configuration in this installation.
do i need to define something ? which is not said in the manual installation ?

6
i need the manual install as this would also be installed on unix and not only windows.

anyway this install should be working , no ?

any ideas some one ?
7
hi,
i just installed (manually) the KK application - version 6.5.1.
downloaded the .zip version and made all steps in "manual installation"
when trying to enter the application i get 404 error.

exception looks like some wrong definition of struts . please help...

14/03/2013 10:33:30 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.IllegalStateException: Unable to instantiate container.
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:60)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
   at org.apache.catalina.core.StandardService.start(StandardService.java:525)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.tiles.definition.DefinitionsFactoryException: I/O Error reading definitions.
   at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:273)
   at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
   at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
   at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
   at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
   at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
   at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
   at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
   at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
   at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:70)
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
   ... 24 more
Caused by: java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
   at java.net.Socket.connect(Socket.java:529)
   at java.net.Socket.connect(Socket.java:478)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
   at sun.net.www.http.HttpClient.New(HttpClient.java:300)
   at sun.net.www.http.HttpClient.New(HttpClient.java:317)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
   at org.apache.commons.digester.Digester.createInputSourceFromURL(Digester.java:2072)
   at org.apache.commons.digester.Digester.resolveEntity(Digester.java:1725)
   at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1887)
   at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
   ... 34 more


8
Hi ,
i'm new with konakart and want to update konakart version from 4.0.0 to 6.5.1.
i didn't really understand the steps for updating ? is it only to run the upgrade script ? and override webapps folder ?

what about the custom plugins i already have ? do i need to rewrite it ?

thanks .