webjars / webjars-play

MIT License
80 stars 34 forks source link

does not work for me =( #36

Closed antonkulaga closed 10 years ago

antonkulaga commented 10 years ago

I did everything according to the instructions in my Play 2.2RC4 app, I added:

"org.webjars" %% "webjars-play" % "2.2.1-2",

"org.webjars" % "jquery" % "2.1.0-2",

"org.webjars" % "jquery-ui" % "1.10.3",

"org.webjars" % "jquery-ui-themes" % "1.10.3",

"org.webjars" % "Semantic-UI" % "0.11.0"

to dependencies, added GET /webjars/*file controllers.WebJarAssets.at(file)

added

to the template.

But what I get is: GET http://localhost:9000/webjars/jquery/2.1.0/jquery.min.js 404 (Not Found) GET http://localhost:9000/webjars/jquery-ui/1.10.3/ui/minified/jquery-ui.min.js 404 (Not Found)

What else should I add to make it work?

jamesward commented 10 years ago

Did you restart the app after you added the deps?

antonkulaga commented 10 years ago

I added deps before I run the app

jamesward commented 10 years ago

What version of Play is this?

antonkulaga commented 10 years ago

Play 2.2RC4 Scala

2014-02-22 20:32 GMT+02:00 James Ward notifications@github.com:

What version of Play is this?

Reply to this email directly or view it on GitHubhttps://github.com/webjars/webjars-play/issues/36#issuecomment-35810186 .

Best regards, Anton Kulaga

jamesward commented 10 years ago

I don't think there is such a Play version as Play 2.2RC4. You mean 2.2.2-RC4?

jamesward commented 10 years ago

I just tried this with 2.2.2-RC4 and everything worked fine. Here is my conf/routes file:

# Home page
GET     /                           controllers.Application.index

GET     /webjars/*file              controllers.WebJarAssets.at(file)

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.at(path="/public", file)

And here is my build.sbt file:

name := "foo"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "org.webjars" %% "webjars-play" % "2.2.1-2",
  "org.webjars" % "jquery" % "2.1.0-2",
  "org.webjars" % "jquery-ui" % "1.10.3",
  "org.webjars" % "jquery-ui-themes" % "1.10.3",
  "org.webjars" % "Semantic-UI" % "0.11.0"
)     

play.Project.playScalaSettings
antonkulaga commented 10 years ago

I appologize. The problem was really on my side. I've made hard to spot mistake in configuration of my app. Now I have found it and everything works ok now.