When I deploy my scala app to bluemix, I receive this error during cf start:
FAILED
Server error, status code: 400, error code: 150001, message: The app package is
invalid: bits have not been uploaded
I am using the next manifest.yml:
applications:
- host: myname
name: myname
buildpack: java_buildpack
path: target\scala-2.11\weather_sender.jar
instances: 1
memory: 512M
The jar itself is originated from scala,
I am using sbt-assembly and building a fat jar, so it should be possible to run it anywhere. I am able to run it locally.
Update Turned out that Scala is a problem in the end. It works unless I include a library which includes scalaz. Turns out that bluemix (or is it cloud foundry?) cannot process .jar that has scalaz included. Unfortunately I have no idea how to make scalaz work with bluemix. I could try to avoid using it as I do not need it directly, but in scala world lots of libraries have dependencies on scalaz, and this means that I cannot use any of those.
I also assume that the reason why scalaz cannot work is that it has very long paths (more than 256 chars). I've seen a problem when cloud foundry could not even upload scalaz if I unpack it from .jar