2012-03-18 35 views
8

Khi cố gắng chạy giao diện điều khiển trò chơi mới 2.0 (gõ 'play' trong cmd) trên cửa sổ từ thư mục dự án (theo hướng dẫn của hướng dẫn web framework).Lỗi giao diện điều khiển của khung chơi 2.0

tôi nhận được:

C:\temp\play-2.0\play-2.0\todolist>play 
[info] Loading project definition from C:\temp\play-2.0\play-2.0\todolist\projec 
t 
[error] Server access Error: Connection timed out: connect url=http://repo.types 
afe.com/typesafe/ivy-releases/org.hibernate/hibernate-validator/4.2.0.Final/ivys 
/ivy.xml 
[error] Server access Error: Connection timed out: connect url=http://repo.types 
afe.com/typesafe/ivy-releases/javax.validation/validation-api/1.0.0.GA/ivys/ivy. 
xml 
[error] Server access Error: Connection timed out: connect url=http://repo.types 
afe.com/typesafe/ivy-releases/org.springframework/spring-context/3.0.7.RELEASE/i 
vys/ivy.xml 
[error] Server access Error: Connection timed out: connect url=http://repo.types 
afe.com/typesafe/ivy-releases/org.springframework/spring-core/3.0.7.RELEASE/ivys 
/ivy.xml 
[error] Server access Error: Connection timed out: connect url=http://repo.types 
afe.com/typesafe/ivy-releases/org.springframework/spring-beans/3.0.7.RELEASE/ivy 
s/ivy.xml 

danh sách đi và về ...

gì là sai, và tại sao nó cố gắng để truy cập vào các địa điểm từ xa khi tất cả tôi muốn làm là sử dụng giao diện điều khiển/chạy ứng dụng?

+0

Tôi không có trợ giúp ở đây, nhưng tôi đã mở vé này trên trình theo dõi lỗi của họ: https://play.lighthouseapp.com/projects/82401-play-20/tickets/318-play-console-times -out-on-startup –

Trả lời

11

tôi đã cùng một vấn đề, tôi giải quyết nó bằng cách thay đổi dòng cuối cùng của tập tin trong build.batplay/framework như thế này:

java -Dhttp.proxyUser = MyProxyAccount -Dhttp.proxyPassword = MyProxyPwd -Dhttp .proxyHost = MyProxyIp -Dhttp.proxyPort = MyProxyPort -Xms512M -Xmx1024m -Xss1M -XX: + CMSClassUnloadingEnabled -XX: MaxPermSize = 256M% DEBUG_PARAM% -Dfile.encoding = UTF8 -Dplay.version = "% PLAY_VERSION% "-Dsbt.ivy.home ="% ~ dp0 .. \ repository "-Dplay.home = "% ~ dp0." -Dsbt.boot.properties = "tệp: ///%p%sbt/sbt.boot.properties" -jar "% ~ dp0sbt \ sbt-launch.jar"% *

Hy vọng sự trợ giúp này.

+0

Điều đó rất hữu ích. Cảm ơn!! – ildyone

+0

Điều tương tự cũng xảy ra với tôi nhưng không xảy ra với tất cả các phụ thuộc. Nó hiển thị lỗi cho org.scala-lang # jline; 2.10.4 Vui lòng trợ giúp –

2

Bạn có kết nối Internet khi bạn nhập lệnh play không?

Ivy là một người quản lý phụ thuộc và nó tạo ra một kho lưu trữ cục bộ cho các phụ thuộc được sử dụng để xây dựng một dự án.

+1

tôi đang kết nối nhưng đằng sau một bức tường lửa mà tôi không thể kiểm soát/vô hiệu hóa. tôi nghĩ rằng trừ khi tôi yêu cầu cập nhật từ kho lưu trữ, nó không nên tự động làm như vậy. (từ khoảng 80MB + khung công việc nên hoạt động ra khỏi hộp) –

+0

Tôi thậm chí không thể duyệt đến vị trí đó từ trình duyệt của tôi chắc chắn được kết nối với Internet –

2

Tôi đã được kết nối qua proxy và không có bất kỳ tên người dùng hoặc mật khẩu nào. Tôi chỉnh sửa các dòng cuối cùng của file build.bat chơi trong/thư mục khuôn khổ để:

java -Dhttp.proxyHost = EnterHostNameHere -Dhttp.proxyPort = EnterPortNumberHere -Xms512M -Xmx1024m -Xss1M -XX: + CMSClassUnloadingEnabled -XX: MaxPermSize = 256M% DEBUG_PARAM% -Dfile.encoding = UTF8 -Dplay.version = "% PLAY_VERSION%" -Dsbt.ivy.home = "% ~ dp0 .. \ repository" -Dplay.home = "% ~ dp0." -Dsbt.boot.properties = "file: ///%p%sbt/sbt.boot.properties" -jar "% ~ dp0sbt \ sbt-launch.jar"% *

Hy vọng công trình này ..! :)

Các vấn đề liên quan