Chinese Yellow Pages | Classifieds | Knowledge | Tax | IME

On Debian 8

(1) download and install JDK 8 from oracle

(2) download and install Eclipse IDE for Jave EE

(3) apt-get install  tomcat8 tomcat8-admin tomcat8-examples tomcat8-user mysql-server

(4) git clone https://github.com/mingewang/HibernateDataSource

it seems only hibernate 3’s format are accepted.

(5) mvn install, it should generate .war file

(6) mysql to create db using info from

http://www.journaldev.com/2905/hibernate-tomcat-jndi-datasource-example-tutorial

(7) deploy the war file using tomcat8. it should work

 

Some tips: you may want to update eclipse project if you changed the pom.xml ( e.g dependence etc) by

Right click on the project –> Maven –> Update project.

log files: /var/log/tomcate/xxx.

 

reference

http://www.journaldev.com/2905/hibernate-tomcat-jndi-datasource-example-tutorial

https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Leave a Reply

Your email address will not be published. Required fields are marked *