I’ve been working with dhtmlx professional for a while, but have always used the php connectors. Unfortunately I have to do a project now with the Java connectors. I do not have much experience in java, but your examples are self-explanatory. My problem is simply that I can compile the project fine (it’s just an adapted version of your sample for a grid connector), but when I try to run it I get the dreaded:
java.lang.NoClassDefFoundError: com/dhtmlx/connector/ConnectorServlet
When you are deploying it to the production server, be sure that connector.jar is placed in the lib folder of web server. ( based on your toolkit - it can be made automatically, but maybe not )
I have tested the above connect string in a simple java Oracle app and it works fine.
When I run the above page in the browser (just to get the xml dump to check the connector) I get:
What’s going wrong with the code?
Any help would be appriciated, as I convinced my last customer to pay the pro version (with php connectors), and now this new customer wants everything on Java, but he won’t buy DHTMLX unless he sees it working first!
I decided to try with mysql
I imported all the wars into eclipse
I created the sample db as requested (importing dump.sql)
I changed DataBaseConnection.java accordingly
It still doesn’t work. To get a decent error report, I ran the connector class by navigating to:
Error will store actual text of SQL code which was executed - you can try to run them directly against DB.
Try to set breakpoint on the next line
GridConnector c = new GridConnector(conn, DBType.Oracle);
and check is conn a valid object ? If you have not included oracle jdbc driver in the build paths, it will be empty and will result in later execution failing.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan