play framework 2.2 console error

350 views
Skip to first unread message

Tharaka Weheragoda

unread,
Apr 16, 2014, 4:21:41 AM4/16/14
to play-fr...@googlegroups.com
Hi All,

I'm new to play framework and i'm going to use spring with play framework. I tried the example in
http://www.bernhardwenzel.com/blog/2014/02/24/using-spring-with-play-framework and i'm getting an error like this.

[info] Loading project definition from /home/tw40315/projects/ASE/websocket/playExamples/websocket/project
[info] Set current project to websocket (in build file:/home/tw40315/projects/ASE/websocket/playExamples/websocket/)
[info] Updating {file:/home/tw40315/projects/ASE/websocket/playExamples/websocket/}websocket...
[info] Resolving org.springframework#spring-context;3.2.5.RELEASE ...
[error] Server access Error: Connection refused url=http://repo1.maven.org/maven2/org/springframework/spring-context/3.2.5.RELEASE/spring-context-3.2.5.RELEASE.pom
[error] Server access Error: Connection refused url=http://repo.typesafe.com/typesafe/releases/org/springframework/spring-context/3.2.5.RELEASE/spring-context-3.2.5.RELEASE.pom
[warn]     module not found: org.springframework#spring-context;3.2.5.RELEASE
[warn] ==== local: tried
[warn]   /home/tw40315/projects/ASE/websocket/play-2.2.2/repository/local/org.springframework/spring-context/3.2.5.RELEASE/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn]   file:/home/tw40315/.m2/repository/org/springframework/spring-context/3.2.5.RELEASE/spring-context-3.2.5.RELEASE.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/springframework/spring-context/3.2.5.RELEASE/spring-context-3.2.5.RELEASE.pom
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/springframework/spring-context/3.2.5.RELEASE/spring-context-3.2.5.RELEASE.pom
[info] Resolving org.springframework#spring-test;3.2.5.RELEASE ...
[error] Server access Error: Connection refused url=http://repo1.maven.org/maven2/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.pom
[error] Server access Error: Connection refused url=http://repo.typesafe.com/typesafe/releases/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.pom
[warn]     module not found: org.springframework#spring-test;3.2.5.RELEASE
[warn] ==== local: tried
[warn]   /home/tw40315/projects/ASE/websocket/play-2.2.2/repository/local/org.springframework/spring-test/3.2.5.RELEASE/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn]   file:/home/tw40315/.m2/repository/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.pom
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     ::          UNRESOLVED DEPENDENCIES         ::
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     :: org.springframework#spring-context;3.2.5.RELEASE: not found
[warn]     :: org.springframework#spring-test;3.2.5.RELEASE: not found
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.springframework#spring-context;3.2.5.RELEASE: not found
unresolved dependency: org.springframework#spring-test;3.2.5.RELEASE: not found
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:213)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:121)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:104)
    at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:51)
    at sbt.IvySbt$$anon$3.call(Ivy.scala:60)
    at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
    at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
    at xsbt.boot.Using$.withResource(Using.scala:11)
    at xsbt.boot.Using$.apply(Using.scala:10)
    at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
    at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
    at xsbt.boot.Locks$.apply0(Locks.scala:31)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at sbt.IvySbt.withDefaultLogger(Ivy.scala:60)
    at sbt.IvySbt.withIvy(Ivy.scala:101)
    at sbt.IvySbt.withIvy(Ivy.scala:97)
    at sbt.IvySbt$Module.withModule(Ivy.scala:116)
    at sbt.IvyActions$.update(IvyActions.scala:121)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1144)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1142)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1165)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1163)
    at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1167)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1162)
    at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
    at sbt.Classpaths$.cachedUpdate(Defaults.scala:1170)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1135)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1113)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
    at sbt.std.Transform$$anon$4.work(System.scala:64)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.Execute.work(Execute.scala:244)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.springframework#spring-context;3.2.5.RELEASE: not found
[error] unresolved dependency: org.springframework#spring-test;3.2.5.RELEASE: not found
[error] Total time: 4 s, completed Apr 16, 2014 9:19:16 AM


I've set the HTTP_PROXY and still getting the same error. Highly appreciate your answers.

Tharaka

Daniel Manchester

unread,
Apr 16, 2014, 12:52:11 PM4/16/14
to play-fr...@googlegroups.com
Hi,

I think you've correctly identified missing proxy configuration as the cause of the error.

To specify your configuration such that it's picked up by sbt (used by Play), see this Stack Overflow thread: "How to use sbt from behind proxy?".

Dan
Reply all
Reply to author
Forward
0 new messages