Problem with the java samples

I start with a complete new installation (windows XP machine):
Apache 2.2
Tomcat 7.0
Mysql 5.5.20
and the dhtlmxConnector_java example.

I changed the user password in DataBaseConnection.java. (in samples\WEB-INF\src)

But the 127.0.0.1:8080/samples/grid/01_basic.html returns a error message:

Apache Tomcat/7.0.25 - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
	com.dhtmlx.connector.DBDataWrapper.getStatement(DBDataWrapper.java:336)
	com.dhtmlx.connector.DBDataWrapper.query(DBDataWrapper.java:351)
	com.dhtmlx.connector.DBDataWrapper.select(DBDataWrapper.java:214)
	com.dhtmlx.connector.BaseConnector.render(BaseConnector.java:308)
	com.dhtmlx.connector.BaseConnector.render_table(BaseConnector.java:210)
	com.dhtmlx.connector.BaseConnector.render_table(BaseConnector.java:178)
	Grid_01_BasicConnector.configure(Grid_01_BasicConnector.java:24)
	com.dhtmlx.connector.ConnectorServlet.doGet(ConnectorServlet.java:28)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.25 logs.


Apache Tomcat/7.0.25

Most probably you have invalid (null) database connection object in the connector’s constructor.

If problem still occurs - please provide code which you are using for connector’s init.

What??
I have copy the .war file in the tomcat webapps folder.
Tomcat creates then the application.
Open the DataBaseConnection.java: change User and password…
nothing else.

Are there other things to do?

I havn’t change the connector’s constructor.

Greetings

Open the DataBaseConnection.java: change User and password.

a) check that server|user|password and db name valid
b) check that database has necessary structure inside (dump.sql)
c) war file doesn’t include MySQL JDBC lib, be sure that tomcat has it

c) could be the problem
I will check it

Thanks

It works now!

Thanks