Git Product home page Git Product logo

akka-http-docker-sample's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

akka-http-docker-sample's Issues

Class not found: com.example.WebServerHttpApp

I am following your blog post located at https://medium.com/jeroen-rosenberg/lightweight-docker-containers-for-scala-apps-11b99cf1a666

After starting a new sbt project using the recommended command
sbt -Dsbt.version=0.13.15 new https://github.com/akka/akka-http-scala-seed.g8

It successfully applies the template:
name [My Akka HTTP Project]: hello-world
scala_version [2.12.3]:
akka_http_version [10.0.9]:
akka_version [2.5.3]:
organization [com.example]:
Template applied in ./hello-world

I then try to start the service using
sbt "runMain com.example.WebServerHttpApp"

but this yields error that it cannot find the specified class:
[error] (run-main-0) java.lang.ClassNotFoundException: com.example.WebServerHttpApp
java.lang.ClassNotFoundException: com.example.WebServerHttpApp

Inspecting the src folder, indeed there is no package named com.example and all code appears to be under the package com.lightbend.akka.http.sample which contains 4 files, none of which are named WebServerHttpApp, and the one that seems to be a main-looking file is called QuickstartServer.scala but this does not have a Main method.

Perhaps the giter8 template has dramatically changed since the blog post 10 days ago? Interestingly, opening https://github.com/akka/akka-http-scala-seed.g8 in a browser redirects to https://github.com/akka/akka-http-quickstart-scala.g8

In case it matters, I am running Ubuntu 16.04 with sbt 0.13.15

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.