Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-757

FIWARE.Request.Tech.Data.Stream-oriented.Trying_to_install_some_applications

    Details

      Description

      Hello,

      After installing the Kurento Media Serve, i was trying to deploy some
      applications developed in the Kurento Java Client, that are present in the
      documentation (
      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide
      )

      At the moment of compilation, in the step "mvn compile exec:java", the
      maven couldn't find one dependency and throw an error.

      Regards,

      Feedback error:

      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO]
      ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Total time: 9.427s
      [INFO] Finished at: Mon Oct 27 15:34:51 WET 2014
      [INFO] Final Memory: 10M/25M
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] Failed to execute goal
      org.apache.maven.plugins:maven-resources-plugin:2.3:resources
      (default-resources) on project kurento-magic-mirror: Cannot create resource
      output directory:
      /home/hugo/Documents/kurento-tutorial-java/kurento-magic-mirror/target/classes
      -> [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

      --Hugo Fonseca
      htfonseca@onesource.pt
      [image: OneSource]
      http://onesource.pt

      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-lab-help

        Activity

        Hide
        htfonseca Hugo Fonseca (Inactive) added a comment -

        Yes, indeed the file owner was root.
        For some reason at the cloning of the GIT project, the command was done with the sudo.

        Just check all the examples and they work fine.
        I think that you can close the Bug.

        Regards,

        Show
        htfonseca Hugo Fonseca (Inactive) added a comment - Yes, indeed the file owner was root. For some reason at the cloning of the GIT project, the command was done with the sudo. Just check all the examples and they work fine. I think that you can close the Bug. Regards,
        Hide
        llopez NaevaTeC Development Team added a comment -

        This command should not be run as root. "sudo" will for sure work, but it just hides the fact that there is something wrong in the local setup, or that you are trying to compile something where you shouldn't. If the tutorial is followed, a user will not run into this. The only way you could find yourself in this situation, is if you run one of the previous commands (especially git clone) as super user.

        Could you check who is the owner of the folder, and post here the output of ls -l run in the root of the cloned repo?

        Show
        llopez NaevaTeC Development Team added a comment - This command should not be run as root. "sudo" will for sure work, but it just hides the fact that there is something wrong in the local setup, or that you are trying to compile something where you shouldn't. If the tutorial is followed, a user will not run into this. The only way you could find yourself in this situation, is if you run one of the previous commands (especially git clone ) as super user. Could you check who is the owner of the folder, and post here the output of ls -l run in the root of the cloned repo?
        Hide
        psimoes Paulo Simoes (Inactive) added a comment -

        Yes, it is a problem related with the the user permissions.
        So the documentation need to be re-write:
        ( https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide )

        End to End testing
        Kurento Media Server must be installed and started before running the following example, which is called magic-mirror and it is developed with the Kurento Java Client. You should run this example in a machine with camera and microphone since live media is needed. To launch the application first you need to clone the GitHub project where it is hosted and then run the main class, as follows:
        git clone https://github.com/Kurento/kurento-tutorial-java.git
        cd kurento-tutorial-java/kurento-magic-mirror
        mvn compile exec:java

        Should be add the command "sudo" before the "mvn compile exec:java" command.

        Regards

        Show
        psimoes Paulo Simoes (Inactive) added a comment - Yes, it is a problem related with the the user permissions. So the documentation need to be re-write: ( https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/StreamOriented_-_Installation_and_Administration_Guide ) – End to End testing Kurento Media Server must be installed and started before running the following example, which is called magic-mirror and it is developed with the Kurento Java Client. You should run this example in a machine with camera and microphone since live media is needed. To launch the application first you need to clone the GitHub project where it is hosted and then run the main class, as follows: git clone https://github.com/Kurento/kurento-tutorial-java.git cd kurento-tutorial-java/kurento-magic-mirror mvn compile exec:java – Should be add the command "sudo" before the "mvn compile exec:java" command. Regards
        Hide
        llopez NaevaTeC Development Team added a comment - - edited

        This problem is related to the local environment, and normally happens when

        • the user don't have permissions to write in this folder
        • another process is accessing the folder
        • an IDE is open, and when maven cleans the target folder, the IDE detects that classes disappeared and recompiles the project.

        Could you please provide more info about you local setup?

        Show
        llopez NaevaTeC Development Team added a comment - - edited This problem is related to the local environment, and normally happens when the user don't have permissions to write in this folder another process is accessing the folder an IDE is open, and when maven cleans the target folder, the IDE detects that classes disappeared and recompiles the project. Could you please provide more info about you local setup?

          People

          • Assignee:
            llopez NaevaTeC Development Team
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: