“Error for /classpath/js/...” with Lift 2.5 RC6 and Scala 2.10

53 views
Skip to first unread message

Dave Briccetti

unread,
May 20, 2013, 2:36:33 AM5/20/13
to lif...@googlegroups.com
I’m making progress here. I can compile and run, but on many pages of the application, major parts are missing, and messages like these appear in the sbt console:

[warn] Error for /classpath/js/jquery-1.7.1.min.js
[warn] Error for /classpath/js/jquery.easyui.min.js

Aleph-1

unread,
May 20, 2013, 7:15:37 AM5/20/13
to lif...@googlegroups.com
Dave,
JQuery is no longer being brought in from the classpath. In your template you need to provide a URL to your own copy of JQuery. For more info: http://liftweb.net/jquery

Dave Briccetti

unread,
May 21, 2013, 12:06:27 AM5/21/13
to lif...@googlegroups.com
Thanks!

Is this a related issue? How can I work around? (We will get off Blueprint but I’d rather not do it right now.)

[warn] Error for /classpath/blueprint/plugins/fancy-type/screen.css
[warn] Error for /classpath/blueprint/screen.css
[warn] Error for /classpath/blueprint/print.css

The template code is this:

    <lift:UmCSS.blueprint/>
    <lift:UmCSS.fancyType/>

Diego Medina

unread,
May 21, 2013, 12:15:31 AM5/21/13
to Lift
we still include blueprint but the correct way to include them is (I don't remember seeing a UmCss snippet in Lift, maybe it was from your own project ?

<style class="lift:CSS.blueprint"></style>

 <style class="lift:CSS.fancyType"></style>


from the sample templates we have:


Thanks

Diego




--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://fmpwizard.telegr.am

Dave Briccetti

unread,
May 21, 2013, 12:25:42 AM5/21/13
to lif...@googlegroups.com
Oh yes indeed. Tyler Weir wrote a wrapper around the blueprint including, saying:

“Various IE 8 fixes. Mostly alignment.”

I wonder if fixes addressing the same issues we experienced made it into Lift proper, so that I could remove this.

Thanks, Diego.

Diego Medina

unread,
May 21, 2013, 12:41:08 AM5/21/13
to Lift


--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dave Briccetti

unread,
May 21, 2013, 12:46:48 AM5/21/13
to lif...@googlegroups.com
Do we believe that Blueprint still works in Lift 2.5 RC6? If so, perhaps I have the wrong dependencies or something. Given this, now:

    <style class="lift:CSS.blueprint"></style>
    <style class="lift:CSS.fancyType"></style>

I still get:

[warn] Error for /classpath/blueprint/screen.css
[warn] Error for /classpath/blueprint/print.css
[warn] Error for /classpath/blueprint/plugins/fancy-type/screen.css

The browser source shows:

      <link rel="stylesheet" href="/classpath/blueprint/screen.css" type="text/css" media="screen, projection" />
      <link rel="stylesheet" href="/classpath/blueprint/print.css" type="text/css" media="print" />
    
  <!--[if IE]><link rel="stylesheet" href="/classpath/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    
    <link rel="stylesheet" href="/classpath/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />

Dave Briccetti

unread,
May 21, 2013, 12:52:33 AM5/21/13
to lif...@googlegroups.com
Stack trace for the 500 server error 

HTTP ERROR 500

Problem accessing /classpath/blueprint/screen.css. Reason:

    INTERNAL_SERVER_ERROR

Caused by:

java.lang.AbstractMethodError
	at scala.PartialFunction$OrElse.apply(PartialFunction.scala:162)
	at net.liftweb.http.ResourceServer$.net$liftweb$http$ResourceServer$$isAllowed(ResourceServer.scala:127)
	at net.liftweb.http.ResourceServer$$anonfun$findResourceInClasspath$2.apply(ResourceServer.scala:88)
	at net.liftweb.http.ResourceServer$$anonfun$findResourceInClasspath$2.apply(ResourceServer.scala:88)
	at net.liftweb.common.Full.filter(Box.scala:549)
	at net.liftweb.http.ResourceServer$.findResourceInClasspath(ResourceServer.scala:88)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$preBoot$1$$anonfun$applyOrElse$1.apply(HTTPProvider.scala:104)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$preBoot$1$$anonfun$applyOrElse$1.apply(HTTPProvider.scala:104)
	at net.liftweb.http.LiftServlet$$anonfun$1$$anonfun$apply$mcZ$sp$1.apply(LiftServlet.scala:282)
	at net.liftweb.http.LiftServlet$$anonfun$1$$anonfun$apply$mcZ$sp$1.apply(LiftServlet.scala:282)
	at net.liftweb.common.Full.map(Box.scala:553)
	at net.liftweb.http.LiftServlet$$anonfun$1.apply$mcZ$sp(LiftServlet.scala:282)
	at net.liftweb.http.LiftServlet$$anonfun$1.apply(LiftServlet.scala:279)
	at net.liftweb.http.LiftServlet$$anonfun$1.apply(LiftServlet.scala:279)
	at net.liftweb.http.S$class.net$liftweb$http$S$$wrapQuery(S.scala:1460)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$$anonfun$apply$37.apply(S.scala:1625)
	at net.liftweb.http.S$class.net$liftweb$http$S$$doAround(S.scala:1389)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply(S.scala:1390)
	at org.squeryl.dsl.QueryDsl$class._using(QueryDsl.scala:46)
	at org.squeryl.dsl.QueryDsl$class._executeTransactionWithin(QueryDsl.scala:115)
	at org.squeryl.dsl.QueryDsl$class.inTransaction(QueryDsl.scala:100)
	at org.squeryl.PrimitiveTypeMode$.inTransaction(PrimitiveTypeMode.scala:40)
	at bootstrap.liftweb.Boot$$anon$1.apply(Boot.scala:132)
	at net.liftweb.http.S$class.net$liftweb$http$S$$doAround(S.scala:1390)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1.apply(S.scala:1623)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$class.net$liftweb$http$S$$_nest2InnerInit(S.scala:1622)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43$$anonfun$apply$44.apply(S.scala:1666)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$withReq$1.apply(S.scala:1676)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$class.withReq(S.scala:1675)
	at net.liftweb.http.S$.withReq(S.scala:47)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43.apply(S.scala:1662)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42.apply(S.scala:1660)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41.apply(S.scala:1659)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply(S.scala:1658)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$class.net$liftweb$http$S$$_innerInit(S.scala:1657)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49$$anonfun$apply$50$$anonfun$apply$51.apply(S.scala:1699)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49$$anonfun$apply$50.apply(S.scala:1697)
	at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:613)
	at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:515)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49.apply(S.scala:1696)
	at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:613)
	at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:528)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48.apply(S.scala:1695)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47.apply(S.scala:1694)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1.apply(S.scala:1693)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.S$class.net$liftweb$http$S$$_init(S.scala:1692)
	at net.liftweb.http.S$class.statelessInit(S.scala:1292)
	at net.liftweb.http.S$.statelessInit(S.scala:47)
	at net.liftweb.http.LiftServlet.doService(LiftServlet.scala:279)
	at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:148)
	at net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:147)
	at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:345)
	at net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)
	at net.liftweb.util.TimeHelpers$class.logTime(TimeHelpers.scala:364)
	at net.liftweb.util.Helpers$.logTime(Helpers.scala:34)
	at net.liftweb.http.LiftServlet.doIt$1(LiftServlet.scala:147)
	at net.liftweb.http.LiftServlet.service(LiftServlet.scala:158)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(HTTPProvider.scala:72)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(HTTPProvider.scala:71)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(HTTPProvider.scala:71)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.URLRewriter$.doWith(Req.scala:1278)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply$mcV$sp(HTTPProvider.scala:70)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply(HTTPProvider.scala:70)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply(HTTPProvider.scala:70)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply$mcV$sp(HTTPProvider.scala:66)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:60)
	at net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:60)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.provider.HTTPProvider$class.service(HTTPProvider.scala:60)
	at net.liftweb.http.LiftFilter.service(LiftServlet.scala:928)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(ServletFilterProvider.scala:82)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ServletFilterProvider.scala:82)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ServletFilterProvider.scala:82)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$class.handleLoan$1(ServletFilterProvider.scala:59)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$class.net$liftweb$http$provider$servlet$ServletFilterProvider$$handleLoanWrappers(ServletFilterProvider.scala:63)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ServletFilterProvider.scala:82)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:77)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:77)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16$$anonfun$apply$17.apply(Vars.scala:619)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(Vars.scala:618)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15.apply(Vars.scala:617)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14.apply(Vars.scala:616)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:615)
	at net.liftweb.http.RequestVarHandler$.apply(Vars.scala:515)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply$mcV$sp(ServletFilterProvider.scala:75)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:75)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:75)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16$$anonfun$apply$17.apply(Vars.scala:619)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(Vars.scala:618)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15.apply(Vars.scala:617)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14.apply(Vars.scala:616)
	at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)
	at net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:615)
	at net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:528)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$class.doFilter(ServletFilterProvider.scala:74)
	at net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:928)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:322)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Powered by Jetty://


















Diego Medina

unread,
May 21, 2013, 12:53:13 AM5/21/13
to Lift
I don't have a working laptop now, but this app runs LIft 2.5-RC2 and the blueprint css is found


This is the source code of that app

Could it be a cache issue on your browser?
I know we didn't remove it between RC2 and RC6

Ah, did you fix your file in template-hidden or the individual page you are working on? The sample I posted here has only one reference to the css snippet, and it is on the template-hidden/default.html file.

Hope that helps.

  Diego 






--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages