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

konakartadmin ... 404 not found error

Started by mheffel, September 13, 2010, 05:14:33 pm

Previous topic - Next topic

mheffel

Hello all,
I have tried to install konakartadmin, but when navigating to http://www.mykonakartadmin.com I get a _msg.unknownCause error in my web browser, and the following error in my apache error.log:

[Mon Sep 13 10:55:46 2010] [error] [client xxx.xxx.x.xxx] File does not exist: C:/Users/username/Documents/java/konakartadmin/konakartadmin, referer: http://www.mykonakartadmin.com/70DC4127BAA1856AAB8D93F2C9761193.cache.html


I get the following in my apache access.log:

xxx.xxx.x.xxx - - [13/Sep/2010:10:55:44 -0500] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 ( .NET CLR 3.5.30729)"
xxx.xxx.x.xxx - - [13/Sep/2010:10:55:44 -0500] "GET /konakartadmin.nocache.js HTTP/1.1" 304 - "http://www.mykonakartadmin.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 ( .NET CLR 3.5.30729)"
xxx.xxx.x.xxx - - [13/Sep/2010:10:55:46 -0500] "POST /konakartadmin HTTP/1.1" 404 211 "http://www.mykonakartadmin.com/70DC4127BAA1856AAB8D93F2C9761193.cache.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 ( .NET CLR 3.5.30729)"




I'm using a manual install, and I believe I've installed the database (MySQL) correctly.  Also, I'm using Apache webserver and an existing Tomcat server.  My Apache http.conf has the following entry:

<VirtualHost *:80>
    DocumentRoot "C:/Users/username/Documents/java/konakartadmin"
    ServerName www.mykonakartadmin.com
    <Directory "C:/Users/username/Documents/java/konakartadmin">
        Options Indexes FollowSymLinks
        DirectoryIndex index.jsp
        AllowOverride FileInfo
        Order deny,allow
        allow from all
   </Directory>
 
    JkMount /*.jsp ajp13
    JkMount /*.do ajp13
    JkMount /konakart/* ajp13
    JkMount /konakartadmin/* ajp13
    JkMount /konakart_cat_inspector/* ajp13
</VirtualHost>


Konakart seems to be working OK, but not konakartadmin.

Anybody have any ideas on what I'm doing wrong?

Thanks,
Mike

ming

First I would ensure you can go straight to konakartadmin - missing out the apache hop.

If you can't, check the difference between your manual installation and the installation you get with the automated installer.   

(Our online demo goes through apache btw so you should have no problems doing this).

mheffel

Thanks Ming,
... Success.

OK, I used the automated install with the stand-alone Tomcat and konakartadmin ran fine.  Then I copied the automated install directory C:/Program Files (x86)/konakart/webapp/konakartadmin to my manual install directory C:/Users/username/Documents/java/konakartadmin and accessed it through my production apache/tomcat web server, and it worked fine too.

So, konakartadmin is working now.

But now konakart is not fully working.  konakart works with the automated install and stand-alone Tomcat, but with the manual install with my apache/Tomcat server it fails at checkout.  The store comes up ok, I can log in, add items to my cart, and view my cart, but when I try to checkout I get an error.  I tried the same fix of copying the automated install directory over to my manual install location, but I get the same problem:

Not Found
The requested URL /konakart was not found on this server.


Any ideas on this?

ming

That's good.  Well done.

The problem would appear to be similar to your first problem as the point where it fails is also GWT code (in the application = konakart webapp) this is the one page checkout.

You could focus on the GWT files for a solution - do they all get copied across OK?

Alternatively, or just to check this out, you could disable the one page checkout (do this in the Admin App) and see if it all works OK with the JSP version of the checkout... which I expect it would.

You're very close...

mheffel

Thanks Ming.  Disabling one page checkout was successful.  Now I'm trying to debug the GWT code.

Where are the GWT files you mention?

Are they at /custom/onepagecheckout/src/com/konakart?

I found one file there, Konakart.gwt.xml with the following:

    <!-- HOSTED MODE PATH -->
        <servlet path='/konakart'
    class='com.konakart.server.KKGWTServiceImpl'/>   
    <!-- HOSTED MODE PATH -->


Could this be what I need to change?

ming

You don't need to change any of the code or that file that you mention which is really part of the source.

If you have changed the webapp name or location you will need to look at changes to the webapp's web.xml file... 

Maybe it can't find this after you moved it?:

   <!-- Mapping for GWT servlet -->
   <servlet-mapping>
      <servlet-name>KonakartGWTServlet</servlet-name>
      <url-pattern>/konakart</url-pattern>
   </servlet-mapping>

mheffel

Thanks Ming,
I found my problem ... I forgot to add the following to the konakart virtual host section in my Apache httpd.conf:

JkMount /konakart/* ajp13
JkMount /konakartadmin/* ajp13
JkMount /* ajp13
JkMount /konakart_cat_inspector/* ajp13


I don't know if all of those entries are necessary.