KonaKart Community Forum

Installation / Configuration => Installation of KonaKart => Topic started by: tomtom on December 30, 2007, 02:44:38 am

Title: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 02:44:38 am
Hi,
Can someone share some light on how i can install konakart on dailyrazor hosting company.
I'm currently using their RazorAdvance hosting plan where they provide a java private tomcat for me.
That mean that i have my own personal tomcat. meow  :-* :-*

http://www.dailyrazor.com/java/private_tomcat.php

Since i don't have the ability to use the konakart gui installation version, i decided to use the silent version.
Before i start the installation on razor hosting, i initially install konakart on my personal linux machine using the silent version method.
I notice after the installation, konakart uses it's own tomcat.

If i use the tomcat server given by my hosting company, how do i integrate konakart into it.

Please help ? Thanks :- ) 

I try running the silent konakart version  and i got errors on their machine:

[joyce520@dz18 cartSoftware]$ ./KonaKart-2.2.1.0-Linux-Install -S -DDatabaseType mysql -DDatabaseUrl jdbc:mysql://localhost:3306/zakka -DDatabaseUsername jozakka -DDatabasePassword zakka123 -DDatabaseDriver com.mysql.jdbc.Driver -DInstallationDir /home/jozakka/konakart -DDBLoad 1  -DJavaJRE /usr/java/latest/jre -DPortNumber 80
failed to load library "/installkitvfs/lib/itcl/libitcl3.3.so": could not load file from temp location
    while executing
"load /installkitvfs/lib/itcl/libitcl3.3.so Itcl"
    ("package ifneeded" script)
    invoked from within
"package require Itcl"
    (in namespace eval "::" script line 3212)
    invoked from within
"namespace eval $namespace $::InstallJammer::files($file)"
    (procedure "SourceCachedFile" line 3)
    invoked from within
"SourceCachedFile common.tcl"
    (procedure "::InstallJammer::InitInstall" line 8)
    invoked from within
"::InstallJammer::InitInstall"
    (file "/installkitvfs/main.tcl" line 30566)
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 07:53:55 am
Hi TomTom,

What I would do in this case is to get it set up and working on your local Linux machine then copy the konakart, konakartadmin and birt-viewer webapps up to your tomcat on the server.

Once there you will have to modify the database settings in your konakart.properties and konakartadmin.properties files.

Then restart your tomcat and check your log... 

Regards,
Ming
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 07:57:31 am
Hello again,

Another alternative is to package up your webapps as WARs and use the tomcat manager provided by DailyRazor to deploy them for you.

Ming
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 09:32:59 am
Wow...you guys are quick to response :- )
I appreciate your help on this. Your suggestion was right on the spot  ;D

I got konakart working but got another blocker listed below.

I got a problem though...i just found out from my dailyrazor hosting company rep
that it is against their policy for java application to listen on port 5001 for  'SOAPMonitorService' service.

Is it ok to disable this and what is the consequences of doing so ?
Does that mean konakart will not work at all ?

This is at ~/public_html/konakart/WEB-INF/web.xml' file
     where  'SOAPMonitorService' service listed. They want me to disable this servlet.

<!--    <servlet>
                <servlet-name>SOAPMonitorService</servlet-name>
                <display-name>SOAPMonitorService</display-name>
                <servlet-class>
                     org.apache.axis.monitor.SOAPMonitorService
                </servlet-class>
                <init-param>
                     <param-name>SOAPMonitorPort</param-name>
                     <param-value>5001</param-value>
                </init-param>
                <load-on-startup>100</load-on-startup>
           </servlet>
    -->

Please help  :P
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 09:42:07 am
Hi TomTom,

Yes, you can disable the SOAPMonitorService completely..  it's only for diagnostics and can be ignored.

Ming
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 09:54:07 am
hmmm...after deleting SOAPMonitorService servlet, the konakart application fail to load up on my site.
Any idea why ? I'm guess it require it..... please help  :(

Thanks  ;D

This is what i got back:
HTTP Status 404 - /konakart/Welcome.do

type Status report

message /konakart/Welcome.do

description The requested resource (/konakart/Welcome.do) is not available.
Apache Tomcat/5.5.15
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 09:58:44 am
do you see anything useful in the tomcat log?

Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 10:00:22 am
Not sure if this helps but the konakartadmin works.
I could bring the konakartadmin site up and browse thru it.
It is the konakart site that is not working after i took out SOAPMonitorService from web.xml
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 10:03:49 am
Hi,

There's a SOAPMOnitorService in the konakartadmin web.xml to remove as well.

It works OK for me...   did you also remove the servlet-mapping ?

Check the tomcat log...  the answers are usually in there!

Ming
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 10:14:23 am
hehe... you right....  ::)

I did not delete the servlet mapping for that. Thanks.
Add this here for folk to refer to :- )

[delete this also]
<servlet-mapping>
        <servlet-name>SOAPMonitorService</servlet-name>
        <url-pattern>/SOAPMonitor</url-pattern>
</servlet-mapping>

Thanks. You awesome  !  ;D
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: tomtom on December 30, 2007, 10:47:03 am
on a side note, is it possible to have the konakart url taken out ?

For example:
http://currentURL/konakart/Welcome.do to be http://currentURL/Welcome.do instead ?

Bare in mind, i will still have this "Power by konakart" on the footer of the site.

I notice this is due to my /home/joyce520/www/konakart dir listed.... i think

Any suggestion on this? Thanks again for your help on this.  ;D
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ming on December 30, 2007, 11:06:05 am
Hi,

I think you just need to make some modifications to your conf/server.xml... perhaps this will help:  http://www.konakart.com/forum/index.php/topic,16.0.html

Ming
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: dotskillz on February 04, 2008, 04:25:48 pm
I am installing konakart on dailyrazor.com as well and I have the latest version of konakart on my server. I am able to get everything running on my local machine. I uploaded the application on dailyrazor and I was able to get most of the application running on daily razor. My problem is that I am not able to "check out" my shopping cart. When I try to "check out" with my shopping cart goods I get a blank screen in the body of the webpage. I am able to see the right and left tiles on the page though. I don't see any errors in my tomcat log file. Does anyone know where I should be looking to fix this problem? THANKS
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ryan on February 04, 2008, 05:08:34 pm
Hi,

If you have the one page checkout feature enabled, it uses javascript code for checkout. Ensure that you have this code installed. Under webapps\konakart you should have a few files with names like B3DF3793ED2A829447B053C02C4616AD.cache.js and FF794A1F21C2D14854727122D67690B6.cache.html.

Ryan
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: dotskillz on February 04, 2008, 05:44:34 pm
Ryan,

I cant believe that I over looked those files. I thought those files were cache files and that they could be deleted cause they would be regenerated. Now i am able to reach the check out pages. THANKS! The only problem is that now I am getting a message saying
....

Unfortunately we have encountered a malfunction.
Please contact the system administrator.

This application is out of date, please click the refresh button on your browser
This application is out of date, please click the refresh button on your browser

Do you know under what circumstances I would get this type of message? Also.. do I need to activate SSL? dailyrazor uses SSL port 443. THANKS
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ryan on February 04, 2008, 05:56:03 pm
Hi,

Try clearing the temporary files from your browser and with a new browser instance. Also ensure that you've copied all files including the html files under webapps\konakart.

For SSL read this http://www.konakart.com/configurationfaq.php#SSL

Ryan
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: dotskillz on February 04, 2008, 09:41:59 pm
I made sure that everything was copied over and I get the same result and that is after clearing my browser cache, browser history, restarting my browser, restarting my server online.


1) I am still seeing this message "Unfortunately we have encountered a Malfunction This application is out of date, please click the refresh button on your browser" Is this issue database related or code related? I believe I have everything uploaded on my server. What could cause this error?


2) I also noticed that sometimes I get a blank page because the protocol the application is calling is https. I read the short snippet that discussed SSL however it was vague ...
.........
how can I configure KonaKart to use HTTPS / SSL ?

SSL can be enabled and configured in the Configuration>>HTTP/HTTPS section of the Admin App. When SSL is enabled . and the port numbers are correctly defined, KonaKart will automatically switch between HTTP and HTTPS depending on whether the customer is logged in or not. Whenever the customer is logged in, a session id is passed back and forth, so the protocol is set to HTTPS. Whenever the customer isn't logged in, the protocol is set to HTTP.
..........

When I set up SSL in konakartadmin I get even more plank pages (daily razor SSL port is 443).....

Enables SSL if set to true: true
Port number for standard (non SSL) pages : 80
Port number for SSL pages: 443
Base URL for SSL pages: https://www.mysitename.com:443

so I set it back

so I set SSL back to false.....
Enables SSL if set to true: false
Port number for standard (non SSL) pages : 80
Port number for SSL pages: 443
Base URL for SSL pages:

I am assuming that I would need to have this configured if I am securing a transaction over the Internet. is this true?
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: ryan on February 05, 2008, 08:00:22 am
Hi,

The "out of date" error is to do with the GWT code. Maybe there has been a problem during the copy or there is some configuration problem. My advice would be to create a WAR using the make_wars ant target (http://www.konakart.com/customizationfaq.php#How_do_I_build_the_customisable_java) and try installing that. Maybe you should try installing the war locally first to ensure that it works correctly.

For SSL configuration I'm no dailyrazor expert so I'm not sure what is going on. All I can suggest is to test that SSL works locally by:


Once you have it working locally, you should follow the same steps on the dailyrazor installation maybe changing the port numbers through the Admin App under Configuration>>HTTP/HTTPS and installing a valid certificate. If you get unexpected problems with dailyrazor, you should then explain the steps you have taken to their tech support and they should be able to help you.

Ryan
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: dotskillz on February 07, 2008, 08:22:29 pm
Konakart was trying to open file on the file system, which is not allowed on Daily razor using  ssl.  I needed full access to the system. They recommended that I upgraded to JAVA VPS hosting plan.
Title: Re: Trying to install konakart to dailyrazor.com hosting company
Post by: javacat on March 02, 2009, 01:02:03 pm
http://javaprovider.net pleace for JSP hosting for students!