Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:29:05+00:00 2026-06-18T05:29:05+00:00

I followed the instructions described here to deploy my Play2 application to CloudBees: https://developer.cloudbees.com/bin/view/RUN/Playframework

  • 0

I followed the instructions described here to deploy my Play2 application to CloudBees: https://developer.cloudbees.com/bin/view/RUN/Playframework

My Build.scala settings looks like this:

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA)
        .settings(cloudBeesSettings :_*)
        .settings(CloudBees.applicationId := Some("application"))
        .settings(CloudBees.username := Some("username"))
        .settings(CloudBees.apiKey := Some("0123456789ABCDEF"))
        .settings(CloudBees.apiSecret := Some("88888889999999$999999998888888="))
        .settings(CloudBees.host := "https://api.cloudbees.com/api")
        .settings(
          // Add your own project settings here  
        )

However, I get the following message when deploying:

[info] Deploying application-1.0-SNAPSHOT to Run@Cloud/username/application
........................uploaded 25%
........................uploaded 50%
........................uploaded 75%
........................upload completed
deploying application to server(s)...
....[info] Application available at http://application.username.cloudbees.net
[error] {file:/Users/user/dev/play2/Application/application/}Application/*:cloudbees-deploy: java.lang.ExceptionInInitializerError
[error] Total time: 74 s, completed Feb 3, 2013 7:44:43 PM

And when I visit http://application.username.cloudbees.net, I get a “502 Bad Gateway – nginx/1.2.0” error…

I’m thinking this is because I’m using a Mac, which has Java 1.7, and CloudBees is expecting 1.6…? From the sbt-cloudbees-play-plugin project source, I can see where I can set a “deployParams” option as a Map, but I’m completely new to Scala and am unsure how to do so. I want to do something like in Build.scala, but I keep getting errors:

.settings(CloudBees.deployParams += ("java_version" -> "1.7"))

The java_version parameter is described here: https://developer.cloudbees.com/bin/view/RUN/JVMVersion

You can see the source of the project here: https://github.com/CloudBees-community/sbt-cloudbees-play-plugin/blob/master/src/main/scala/cloudbees.scala

I’m at a loss at what to do or what could be wrong with my deployment? Even when creating a brand new Play application with no database connections it continues to fail.

Any insight into what I may be doing wrong would be greatly appreciated 🙂 Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:29:06+00:00Added an answer on June 18, 2026 at 5:29 am

    You can try the options.

    CloudBees.deployParams := Map("runtime.java_version" -> "1.7"),
    CloudBees.openOnUpload := false,
    

    The first option sets the runtime to java 1.7 which is probably your issue. If sbt is using JDK7 then you will need to set the RUN@cloud platform to java 7.

    The second option fixes the ExceptionInInitializerError by disabling the browser opening on deploy. In my experience this error points to Java 7 being used on your computer because I’ve only seen this error with Java 7 and not Java 6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the codeigniter extension of HybridAuth here: https://github.com/andacata/HybridIgniter I followed instructions on its
I followed the instructions here: http://developer.android.com/sdk/eclipse-adt.html#installing but the installation froze, so I stopped it
I'm trying to use the android bootstrap : https://github.com/donnfelker/android-bootstrap So I followed instructions :
I followed the instructions in the Android WebView tutorial (at http://developer.android.com/resources/tutorials/views/hello-webview.html ). When I
[Refer to https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers] I followed instructions for creating a GMap sidebar. This is not
I followed the instructions here to run Django using the built-in webserver and was
i have followed instructions found on https://github.com/coderifous/jquery-localize , and for testing purpose i have
I followed the instructions on source.android.com to build the Android framework, but when I
I followed the instructions given in the link: http://blog.avirtualhome.com/how-to-compile-a-new-ubuntu-11-04-natty-kernel/ for building a custom kernel
I followed these instructions: http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/ And everything went as described. However, at the end,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.