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

Configuring Tomcat (KonaKart) and IIS

Started by egreenplace, March 22, 2008, 09:35:51 pm

Previous topic - Next topic

egreenplace

Hi,

We have IIS running as our main web server. Since KonaKart uses Tomcat we need to configure IIS to speak to Tomcat when requests come for KonaKart application. I tried to follow instructions to set up ISAPI but it did not work. I looked at the startup log for KonaKart and found out that it is actually starting ajp13 on a different port, maybe that is why I couldn't start my ajp13.

I tried a full tomcat installation (fresh from Apache) without KonaKart and that integrated beautifully with IIS. Now, I think the way to do this is in one of the two ways below:

1. Either continue using the fresh Tomcat installation and migrate KonaKart application, and re-configure the script that starts ajp13 (I am not sure where that call is coming from). This is going to be a nightmare I think. Or,

2. I can just continue working with KonaKart and try to figure this out. This is a much preferrable option since our Tomcat will solely be used with KonaKart.

Has anybody done this type of connector with IIS? Are there any instructions anywhere? I am running Windows 2000 Server, and the latest KonaKart. Please any light on this would be appreciated. Maybe as a start if someone can point me to the location where KonaKart uses ajp13 so I can play with that and try to get it to work. Thanks ahead of time.

Bonnie

kate

Hi,

You can change the ajp ports in the KonaKart server.xml to whatever you need for IIS.

It shouldn't be a nightmare!

Our live demo applications run through Apache using these:

Somewhere in httpd.conf

JkMount /*.jsp kkworker
JkMount /*.do kkworker
JkMount /konakart/* kkworker
JkMount /konakartadmin/* kkworker
JkMount /konakart_cat_inspector/* kkworker


Typically included into httpd.conf from conf.d/mod_jk.conf:

LoadModule      jk_module modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile       /var/log/httpd/mod_jk.log
JkLogLevel      info


workers.properties:

#
# KonaKart Worker
#

worker.list=kkworker

worker.kkworker.type=ajp13
worker.kkworker.host=localhost
worker.kkworker.port=8789


Our kk tomcat server.xml defines 8789:

<!-- Define an AJP 1.3 Connector on port 8789 -->
<Connector port="8789"
            enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

I know it's not IIS, but might be helpful.

If not there are plenty of good articles on the web to set this up.

Don't have nightmares  :)

Regards,
Kate

egreenplace

Thanks Kate, I will try that today. I have another question, but I will create a new thread about it  ;D

egreenplace

Kate,

Thank you for your suggestion, that worked beautifully!!

However, and there is always however unfortunately  :( When I pointed my domain to the server that hosts IIS (domain is http://develop.egreenplace.com) it gives me the following error:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

I tried to modify the web site and add Welcome.do as the start page. So why wouldn't it send me to Welcome.do? If I try:

http://localhost/konakart locally from the server machine it actually works and directs me to Welcome.do. Has anybody run into this problem before?

I have set up many web sites but they are all straight forward and always served by IIS without using a connector. So this is the first time I do something like this between Tomcat and IIS. Any help would be greatly appreciated.

kate

Hi,

I don't know the answer but what you're trying sounds sensible.

You might try enabling directory browsing just to see if that gives you any clues.

Another thing could be to set the default file to something else as an experiment - just to see where it breaks down.  Eventually you could try a simple html file just to see if that helps.

Does it work if you specify http://develop.egreenplace.com/konakart/ or http://develop.egreenplace.com/konakart/Welcome.do or http://develop.egreenplace.com/konakart/index.jsp ??

This isn't really a KonaKart problem but an IIS <> tomcat issue so you might get more success posting a question on an IIS forum?   Failing that, there are a huge number of references to this in Google...


When you figure it out, it would be good to hear what you did to solve the problem.

Good luck,
Kate

egreenplace

Kate,

Actually I did enable directory browsing and it did successfully list all the files that are directly under webapps/konakart. It seems to me that it is looking for Welcome.do in the directory, and of course it is not there.

I will try to post around and see if anyone has done something similar, I posted here thinking maybe somebody already did it before me and they may know what to do.

By the way, I have already tried develop.egreenplace.com/konarkart, etc. but it seems like it finds the directory, but for some reason it is not forwarding the request to tomcat to handle. Maybe in the properties file I need to place the domain number instead of something like this:

worker.kkworker.host=localhost

i replaced localhost with develop.egreenplace.com but that did not work. I will post back if I find a solution. Thank you.

egreenplace

Just to let you know that I finally got http://develop.egreenplace.com/konakart/Welcome.do working! I added "jakarta" to the Application Name field under Directory Path from IIS. "jakarta" is where I have my registry using to point to C:\Program Files\KonaKart\bin\.....dll

I am going to try to configure it now so that "konakart" does not show in the URL!

kate