def menu = Menu.param[Item]("Item", Loc.LinkText(i => Text(i.name)),Item.find _, _.id) / "item" / *
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Lift correctly supports different context paths. Lift correctly rewrite URLs relative to the context path.
If you are seeing an example of this not happening, please put together a reproducible example and we'll look at it.
[15:13:26] juanuys:~ $ curl -X GET http://localhost:8080/shop-with-me_2.8.1-0.1/item/<!DOCTYPE html><html> <body>The Requested URL /shop-with-me_2.8.1-0.1/item/ was not found on this server</body> </html>% [15:13:32] juanuys:~ $
On Wednesday, April 6, 2011 2:34:18 PM UTC+1, David Pollak wrote:Lift correctly supports different context paths. Lift correctly rewrite URLs relative to the context path.
If you are seeing an example of this not happening, please put together a reproducible example and we'll look at it.I just used your example, David:Then:sbt packageDeploy to Tomcat.Works fine, but click on "Item" in the left-side menu...E.g.[15:13:26] juanuys:~ $ curl -X GET http://localhost:8080/shop-with-me_2.8.1-0.1/item/<!DOCTYPE html><html> <body>The Requested URL /shop-with-me_2.8.1-0.1/item/ was not found on this server</body> </html>% [15:13:32] juanuys:~ $
First, http://localhost:8080/shop-with-me_2.8.1-0.1/item/ is not a legal URL for the application. It should be http://localhost:8080/shop-with-me_2.8.1-0.1/item (note the lack of trailing slash).
I just tried it with Jetty 7 and it worked for me (although I called the file shop.war).
Please try deploying the app with a name that does not contain '.' characters. Please also try on Jetty 7.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Yet another reason not to use Tomcat.
> I just don't have time to dig through the Catalina sources right now.
Somebody seems to have done the digging for Tomcat 6:
http://stackoverflow.com/questions/2815986/where-does-tomcat-append-to-directory-paths
Seems to be a known issue that will not be fixed:
https://issues.apache.org/bugzilla/show_bug.cgi?id=32424
(Not sure if anything has changed for 6.x but it seems not :-)
/Jeppe