Hi,
We have created an application using GWT 2.5.1, Hibernate and our database is on MariaDB. We are using RequestFactory for fetching the data from server to the client. This application works fine in Development Mode. How do we convert this to production mode. We have done the following steps
1. Installed Tomcat on our machine
2. zipped the contents of the WAR directory and renamed it from ".zip" to ".war"
3. Copied the .war file into the Webapps folder of Tomcat
4. Started the Tomcat server
We are able to access the client side code using
http://localhost:8080/<application name>, but, we are not able to access the MariaDB database. We have made changes in web.xml of the application folder in Webapps and added the following lines
<resource-ref>
<description>"<application name>"</description>
<res-ref-name>jdbc/db1</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Also, we have added the following lines in context.xml which is present in conf folder of tomcat
<Resource name="jdbc/db1" auth="Container"
type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root"
password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/<application name>"/>
Unfortunately, we are still not able to connect to the database. Can someone please help me with this?
Regards
Sachin