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

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

1
First, a question:

Is this "webserver" a rootserver(virtual, managed or "real") or just a website hosting solution?

If it is just a website solution, konakart will most likely not run on it.

Konakart is a java web application, it can only run in a servlet container such as tomcat (already included in the bundle).

The servletcontainer needs a java runtime, this has to be installed on your server. You can check the user manual for more systemrequirements

If you cannot run the installers on your server you need to populate the database manually. This could be achieved by dumping your development database, and importing the dump on your production server.

But first you should check if your 1&1 package is capable of running a servletcontainer (tomcat).
2
Programming of KonaKart / Re: Debug konakart from Eclipse
November 25, 2010, 08:29:43 am
It would seem your port is allready in use, most likely by tomcat itself.
Have you tried a different port than the one tomcat is running on?


However I can offer an alternative to the jdpa approach:

I too develop in eclipse and use remote debugging to connect to the tomcat server.
By adding following line to your startkonakart.bat (or .sh if you run on linux) tomcat will start with a open debug port:

set CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -XX:PermSize=512m -XX:MaxPermSize=512m -Xmx800m -Dsolr.solr.home="%CATALINA_HOME%/solr"

In Eclipse open the debug configurations and create a new "Remote Java Application", the default values should be fine. Select your eclipse project containing konakart and your finished.

To debug konakart has to be allready started, click the debug configuration you just created and it should work.

While this isn´t as comfortable as "real" debugging it get´s the job done.

Important:

For all of this to work you have to modify the build.xml. In all <javac/> task you need to change the attribute "debug" to "on" or "yes". Without that change ant won´t compile any debug information into the source code (line numbers etc.) and debuging will be almost impossible. I suggest you create a new variable for this and place it in all <javac/> Tasks so you only have to change a single line in the future.