user393964
user393964

Reputation:

Can't run play app on os x lion

I created an alias like this alias play=/Users/bobdylan/Documents/play/play

After creating a new app and trying to run it with play run I keep getting this:

Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - excepted >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >GET / HTTP/1.1< - excepted >JDWP-Handshake<

Any idea what could be wrong?

Upvotes: 2

Views: 1738

Answers (2)

Shawn Vader
Shawn Vader

Reputation: 12385

JPDA_PORT is set in the play script so you could either edit the play script in the install or you could export it before running play

export JPDA_PORT=8888

In the play script change

if test "$1" = "debug"; then
  JPDA_PORT="9009"
  shift
fi

Upvotes: 0

Pere Villega
Pere Villega

Reputation: 16439

That shouldn't prevent your application from starting, only the debugger from being acceessible. It should also show an exception stacktrace which may help us to point the issue (if it's showing in your case please attach it).

To solve the issue, can you check:

  1. Ports you are using for Play (maybe you have some other server blocking those ports)
  2. The hostname of your computer (you may have localhost pointing somewhere in your host file or some configuration that makes Play fail)

Upvotes: 3

Related Questions