eclipse setup for classhub project

Home » Software Development » eclipse setup for classhub project
Software Development No Comments
  1. checkout project classhub to C:\workspace\classhub
  2. in eclipse, new project for each sub directory:
    1. classhub-core
    2. classhub-api
    3. classhub-appserver
    4. classhub-web
  3. turn each project into Maven project, Maven->update project, and Run->Maven install
  4. Download and install Tomcat 7. https://tomcat.apache.org/download-70.cgi
  5. To run classhub, we need to run tomcat
  6. Note we change server.xml in tomcat to support SSL (https). Document can be found in classhub/classhub-web/ssl.

Essentially, we need to uncomment (enable) the SSL connector on port 8443:

<Connector SSLEnabled="true" ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,SSL_RSA_WITH_RC4_128_SHA" clientAuth="false" keystoreFile="<<path_to_local.tomcat.keystore>>" keystorePass="storepass" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>

Note that
<<path_to_local.tomcat.keystore>> should be the tomcat keystore file. It can be found in the <classhub-web project>/ssl directory

e.g. keystoreFile=’C:\workspace\classhub\classhub-web\ssl\local.tomcat.keystore’


  1. Also, ensure the folder C:/ClassHub exists with C:\ClassHub\DEVELOPMENT\site.properties, jdbc.properties and log4j.properties
  2. Before startup ClassHub locally, run AppServer8 locally. Make sure on the AppServer this API key has “GetSportLogicCustomerByCustomerId” permission. 
  3. In mysql workbench, create a new database classhub_dev
  4. Create a user”classhub_user”, see user.sql file:
-- Create database user for NON-PRODUCTION.
CREATE USER 'classhub_user'@'localhost' IDENTIFIED BY 'pass';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_dev.* to 'classhub_user'@'localhost';
GRANT ALL ON classhub_dev.* to 'classhub_user'@'localhost';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_tst.* to 'classhub_user'@'%';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_uat.* to 'classhub_user'@'%';
-- Is this user used? Is it required? probably not…
CREATE USER 'flyway'@'localhost' IDENTIFIED BY 'pass';
GRANT ALL ON classhub_dev.* to 'flyway'@'localhost';
FLUSH PRIVILEGES;