Giter Site home page Giter Site logo

cbirestapi's Introduction

README for retrieval

Full documentation is here: http://loic911.github.io/cbirest/ (work in progress)

Requirements

  • Linux, Mac OS (Windows should work)
  • Java 8
  • Redis (not mandatory)
  • Tomcat 7 (not mandatory)

Redis is mandatory if you want persistance. If you use Memory mode, you will lost your data if you reboot the app.

Download

Download the last distribution: https://github.com/loic911/CBIRestAPI/releases

The retrieval-*.war file from the zip is a war with an embedded TOMCAT server (for quick install). The other war (.war.original) can be install inside a web server/servlet container (only test with tomcat).

Quick install

unzip CBIRest-$VERSION.zip
cd CBIRest-$VERSION
java -jar retrieval-$VERSION-SNAPSHOT.war --spring.profiles.active=prod --retrieval.store.name=MEMORY

open your browser and go to http://localhost:9999/

For more doc: Go to http://loic911.github.io/cbirest/

cbirestapi's People

Contributors

loic911 avatar

Stargazers

 avatar Berkay DEDEOĞLU avatar longkeyy avatar Assad Ullah avatar Jean-Michel Begon avatar  avatar  avatar

Watchers

 avatar  avatar

cbirestapi's Issues

Cannot load retrieval-0.5-SNAPSHOT.war.original on tomcat

Hi, I'm pretty new to all of this and had a problem. First of all, installed tomcat according to: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
and it works since I deployed successfully a sample.war file.

Then installed redis and deployed retrieval-0.5-SNAPSHOT.war.original to webapps in tomcat (renamed the file to retrieval.war).

And when trying to load retrieval.war this error arises:
FAILURE - Couldn't load application on context path [/retrieval]
FAILURE - Found exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/retrieval]]

Version conflict

Thank you so much for your work! I am eager to try this. Unfortunately I am not very familiar with Java. When I try to install, I get this:

MyComputer:CBIRest-0.2.1 blue-j$ sudo java -jar retrieval-0.2.1-SNAPSHOT.war --spring.profiles.active=prod --retrieval.store.name=MEMORY
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/cbir/retrieval/Application : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:163)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:136)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
at java.lang.Thread.run(Thread.java:695)

How to handle this? I am running Java 8, update 60, on Mac OS 10.10.5.

Thank you so much in advance!! - J

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.