Giter Club home page Giter Club logo

dina-mediaserver's Introduction

================ DINA-WEB - MediaServer Module

The Mediaserver has been developed with the products below ( with those explicit in versions).
Maven is used as the 'project management tool', Maven fetches all the dependencies that the Mediaserver relies on - each dependency is declared in the pom.xml-file.
OBS: before you 'mvn clean package' , you have to create a database+user&password ( grant access )

Requirements

Setup

  • Make sure your SSH keys are set up properly for GitHub.

Clone

Clone the repository

git clone [email protected]:Inkimar/dina-mediaserver.git
cd dina-mediaserver

Operating system (Linux / Ubuntu)

Ubuntu 14.04 LTS Kernel : 3.13.0-40-generic

Additional configuration

The parent pom.xml resides in the 'MediaserverApp'-module.
All other modules fetch the java-version from that pom.xml

Database

Use of liquibase which is a database-independent library for tracking, managing and applying database schema changes.
0. Create a database+user in your preferred db

MySQL or PostgreSQL
Configuration of chosen RDBMS affects the following modules/files:

  1. Module 'Mediaserver-database-management'
    1.1 liquibase.properties
  2. Module 'MediaserverApp-ejb'
    2.1 glassfish-resources.xml
    2.2 persistence.xml
    3 drop respective -jdbc-jar into 'glassfish/.../lib-library'

IDE used in development

Netbeans 8.x

Images for demo purpose

images.tar is in the docs-directory,
the default path to the image-directory is set to '/opt/data/mediaserver/demo'
that image-path is configured in the ADMIN_CONFIG-table.
Extract the tar-file in '/opt/data/mediaserver/demo'
Make sure to 'chmod' the directories and files ( read&write )

dina-mediaserver's People

Contributors

gnewton avatar inkimar avatar

Watchers

 avatar  avatar

Forkers

gnewton mskyttner

dina-mediaserver's Issues

'mvn clean compile' fails

$ mvn clean compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] MediaserverApp
[INFO] DomainService
[INFO] MediaserverApp-ejb
[INFO] MediaserverRestUtil
[INFO] MediaServerResteasy
[INFO] MediaServerRestful
[INFO] SimpleTaxonMock-Client
[INFO] SimpleTaxonMock-Server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MediaserverApp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaserverApp ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DomainService 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ DomainService ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/DomainService/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DomainService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/newtong/work/dina-mediaserver/DomainService/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ DomainService ---
[INFO] Compiling 27 source files to /home/newtong/work/dina-mediaserver/DomainService/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MediaserverApp-ejb 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaserverApp-ejb ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/MediaserverApp-ejb/target
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaserverApp-ejb ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaserverApp-ejb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaserverApp-ejb ---
[INFO] Compiling 5 source files to /home/newtong/work/dina-mediaserver/MediaserverApp-ejb/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MediaserverRestUtil 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ RestfulUtil ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/RestfulUtil/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ RestfulUtil ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ RestfulUtil ---
[INFO] Compiling 4 source files to /home/newtong/work/dina-mediaserver/RestfulUtil/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MediaServerResteasy 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaServerResteasy ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/MediaServerResteasy/target
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaServerResteasy ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaServerResteasy ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaServerResteasy ---
[INFO] Compiling 21 source files to /home/newtong/work/dina-mediaserver/MediaServerResteasy/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MediaServerRestful 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaServerRestful ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/MediaServerRestful/target
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaServerRestful ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaServerRestful ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaServerRestful ---
[INFO] Compiling 3 source files to /home/newtong/work/dina-mediaserver/MediaServerRestful/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SimpleTaxonMock-Client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ WebMockTaxon ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/SimpleTaxonMockClient/target
[INFO]
[INFO] --- maven-dependency-plugin:2.6:copy (default) @ WebMockTaxon ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WebMockTaxon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebMockTaxon ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/newtong/work/dina-mediaserver/SimpleTaxonMockClient/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SimpleTaxonMock-Server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ SimpleTaxonMock ---
[INFO] Deleting /home/newtong/work/dina-mediaserver/SimpleTaxonMockServer/target
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ SimpleTaxonMock ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ SimpleTaxonMock ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- liquibase-maven-plugin:2.0.1:update (default) @ SimpleTaxonMock ---
[INFO] ------------------------------------------------------------------------
[INFO] Parsing Liquibase Properties File
[INFO] File: src/main/dbschema/liquibase.properties
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] MediaserverApp .................................... SUCCESS [0.125s]
[INFO] DomainService ..................................... SUCCESS [0.971s]
[INFO] MediaserverApp-ejb ................................ SUCCESS [0.762s]
[INFO] MediaserverRestUtil ............................... SUCCESS [0.320s]
[INFO] MediaServerResteasy ............................... SUCCESS [0.697s]
[INFO] MediaServerRestful ................................ SUCCESS [0.320s]
[INFO] SimpleTaxonMock-Client ............................ SUCCESS [0.984s]
[INFO] SimpleTaxonMock-Server ............................ FAILURE [0.316s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.624s
[INFO] Finished at: Thu Dec 04 15:16:29 EST 2014
[INFO] Final Memory: 46M/430M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.1:update (default) on project SimpleTaxonMock: Error setting up or running Liquibase: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
[ERROR]
[ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Connection refused
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :SimpleTaxonMock
$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.