Heroku deployment breaks when performing sbt compile

343 views
Skip to first unread message

Dombou

unread,
Mar 21, 2012, 2:41:35 AM3/21/12
to play-framework
I am trying to compile the example application computer-database, and
deploy to Heroku. It works perfectly if I do a local play run, but as
soon as I try and deploy it complains there are missing imports. Here
is the stack trace:

[error] /tmp/build_2h6yw01angwz7/target/scala-2.9.1/src_managed/
main/views/html/list.template.scala:4: object templates is not a
member of package play
[error] import play.templates._
[error] ^
[error] /tmp/build_2h6yw01angwz7/app/controllers/
Application.scala:52: ambiguous implicit values:
[error] both method fallbackStringCanBuildFrom in class
LowPriorityImplicits of type [T]=>
scala.collection.generic.CanBuildFrom[String,T,scala.collection.immutable.IndexedSeq[T]]
[error] and method session in trait Controller of type
(implicit request: play.api.mvc.RequestHeader)play.api.mvc.Session
[error] match expected type <error>
[error] Error occurred in an application involving default
arguments.
[error] Ok(html.list(
[error] ^
[error] /tmp/build_2h6yw01angwz7/target/scala-2.9.1/src_managed/
main/views/html/editForm.template.scala:4: object templates is not a
member of package play
[error] import play.templates._
[error] ^
[error] /tmp/build_2h6yw01angwz7/target/scala-2.9.1/src_managed/
main/views/html/createForm.template.scala:4: object templates is not a
member of packageplay
[error] import play.templates._
[error] ^
[error] class file needed by Router is missing.
[error] reference value codehaus of package org refers to
nonexisting symbol.
[error] 5 errors found
[error] {file:/tmp/build_2h6yw01angwz7/}playtest/
compile:compile: Compilation failed
[error] Total time: 3 s, completed Mar 21, 2012 6:32:09 AM
! Failed to build app with SBT 0.11.0
! Heroku push rejected, failed to compile Scala app

Now my understanding is that Heroku does a sbt clean, then sbt
compile. I tried running with sbt 0.11.2 on my local machine with the
same commands and encountered the error.

Any ideas where I'm going wrong?

Leon Radley

unread,
Mar 21, 2012, 9:40:07 AM3/21/12
to play-fr...@googlegroups.com
I'm getting the same error running on ubuntu 11.04.. very strange

Raphael André Bauer

unread,
Mar 21, 2012, 10:37:33 AM3/21/12
to play-fr...@googlegroups.com
On Wed, Mar 21, 2012 at 2:40 PM, Leon Radley <le...@radley.se> wrote:
> I'm getting the same error running on ubuntu 11.04.. very strange
>
>
> On Wednesday, March 21, 2012 7:41:35 AM UTC+1, Dombou wrote:
>>
>> I am trying to compile the example application computer-database, and
>> deploy to Heroku. It works perfectly if I do a local play run, but as
>> soon as I try and deploy it complains there are missing imports. Here
>> is the stack trace:
>>
>>        [error] /tmp/build_2h6yw01angwz7/target/scala-2.9.1/src_managed/
>> main/views/html/list.template.scala:4: object templates is not a
>> member of package play
>>        [error] import play.templates._
>>        [error]             ^
>>        [error] /tmp/build_2h6yw01angwz7/app/controllers/


Hi,


I think this is a duplicate of a post I posted earlier this day:
https://groups.google.com/forum/?fromgroups#!topic/play-framework/cVeGVFh6loo

my current status is that it does not run locally using the "sbt clean
compile stage". It fails with the same error. play run works nicely...


Any help appreciated on that...


Best,


Raphael

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/aTo9gb9EmPoJ.
>
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

--
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

Raphael André Bauer

unread,
Mar 23, 2012, 7:16:24 AM3/23/12
to play-fr...@googlegroups.com
On Wed, Mar 21, 2012 at 3:37 PM, Raphael André Bauer
<raphael.a...@gmail.com> wrote:
> On Wed, Mar 21, 2012 at 2:40 PM, Leon Radley <le...@radley.se> wrote:
>> I'm getting the same error running on ubuntu 11.04.. very strange
...

quick update. After the play devs deployed a new version to the
central repository it is working - both locally and on Heroku.

Simply wipe out your ~/.ivy2 cache locally if you are running into that issue..


Thanks!

Best,


Raphael

Hugo Alves

unread,
Mar 29, 2012, 6:25:33 AM3/29/12
to play-fr...@googlegroups.com
I'm currently trying to put my project on Heroku but was getting some errors so i tested uploading a completely fresh app and it doesn't give any errors compiling but crashes atemping to run
here's what i get in the logs:


   Starting process with command `target/start -Dhttp.port=$80`
   Play server process ID is 3
   [←[37minfo←[0m] play - Application started (Prod)
   java.lang.NumberFormatException: For input string: ""
   Oops, cannot start the server.
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:493)
      at java.lang.Integer.parseInt(Integer.java:514)
      at play.core.server.NettyServer$$anonfun$createServer$3.apply(NettyServer.scala:133)
      at play.core.server.NettyServer$$anonfun$createServer$3.apply(NettyServer.scala:133)
      at scala.Option.map(Option.scala:133)
      at play.core.server.NettyServer$.createServer(NettyServer.scala:133)
      at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:153)
      at scala.Option.map(Option.scala:133)
      at play.core.server.NettyServer$.main(NettyServer.scala:152)
      at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:152)
      at play.core.server.NettyServer.main(NettyServer.scala)
    Process exited with status 255
    State changed from starting to crashed
    Error H10 (App crashed) -> GET smooth-earth-1771.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=2012-03-29T09:53:53+00:00 heroku[router]: Error H10 (App crashed) -> GET smooth-earth-1771.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

As I have stated this was a completely fresh basic play project that i haven't edited and it runs locally.

Has any been able to recently put any play 2.0 app up and working on heroku or is there any other free cloud that supports play 2.0?

Leon Radley

unread,
Mar 29, 2012, 7:47:35 AM3/29/12
to play-fr...@googlegroups.com
Play is trying to parse $80 as a number which fails.

double check your Procfile so it only contains

web: target/start -Dhttp.port=${PORT} ${JAVA_OPTS}

irraco

unread,
Jul 12, 2012, 4:49:16 PM7/12/12
to play-fr...@googlegroups.com
how is solution?

El Miércoles, 21 de marzo 2012 2:41:35 AM UTC-4, Domingo Bou-Samra, escribió:
Estoy tratando de compilar el ejemplo de aplicación de base de datos por computadora, y
desplegar en Heroku. Funciona perfectamente si hago una carrera de obra local, pero como
pronto como tratar de implementar que se queja de que faltan las importaciones. Aquí
es el seguimiento de la pila:        [error] / tmp/build_2h6yw01angwz7 / target/scala-2.9.1/src_ gestionado / principal / views / html / list.template. scala: 4: plantillas de objeto no es un miembro de juego paquete de        error [ ] importación play.templates._        [error] ^        [error] / tmp/build_2h6yw01angwz7/app o controladores o Application.scala: 52: ambiguos valores implícitos:        [error] tanto fallbackStringCanBuildFrom método en la clase de tipo LowPriorityImplicits [T] => Scala . collection.generic. CanBuildFrom [Cadena, T, scala. collection.immutable. IndexedSeq [T]]        [error] y una sesión de método en el controlador del tipo de rasgo (implícita petición: play.api.mvc.RequestHeader) play.api.mvc . período de sesiones        [error] el tipo de concordancia espera <error>        [error] Se produjo un error en una aplicación por defecto que implica argumentos.        [error] Ok (html.list (        [error] ^        [error] / tmp/build_2h6yw01angwz7 / target/scala-2.9. 1/src_ gestionado / o principales puntos de vista / html / EditForm. template.scala: 4: plantillas de objetos no es un miembro de juego del paquete        [error] importación play.templates._        [error] ^        [error] / tmp/build_2h6yw01angwz7 / destino / scala-2.9.1/src_ gestionado / o principales puntos de vista / html / CreateForm. template.scala: 4: plantillas de objetos no es un miembro de packageplay        [error] importación play.templates._        [error] ^        [error] archivo de clase que necesitan los router no se encuentra.        [error] Codehaus valor de referencia del paquete de org se refiere a símbolo inexistente.        [error] 5 errores encontrados        [error] {tmp :/ / build_ 2h6yw01angwz7 /} playtest / compilación: compilación: Compilación no        [error] Tiempo total: 3 s, completó 21 de marzo 2012 06:32:09 AM  ! No se ha podido construir aplicaciones con SBT 0.11.0  ! Heroku impulsar rechazado, no para compilar Scala aplicación Ahora entiendo que hace una limpia Heroku SBT, a continuación, SBT compilar. He intentado correr con SBT 0.11.2 en mi máquina local con las mismas opciones y encontró el error. ¿Alguna idea de a dónde voy mal?










































Reply all
Reply to author
Forward
0 new messages