Sitemap oddity

14 views
Skip to first unread message

Viktor Klang

unread,
Feb 27, 2008, 4:07:10 PM2/27/08
to lif...@googlegroups.com
Hey guys,

I'm in the middle of getting Tyler Weirs marvellous /lift/-application stable on Terracotta,
but an oddity has occurred that someone might be able to shed some light on.

Tyler's sitemap configuration goes like this:

    val entries = Menu(Loc("Home", "/", "Home")) ::
    Menu(Loc("Timesheets", "/timesheets", "Timesheets")) ::
        Menu(Loc("Reports", "/timesheets/reports", "Reports")) ::
        Menu(Loc("ReportList", "/timesheets/reports/list", "Report List", Hidden)) ::
        Menu(Loc("ReportBill", "/timesheets/reports/billable", "Billable", Hidden)) ::
        Menu(Loc("ReportMonthly", "/timesheets/reports/monthly", "Monthly", Hidden)) ::
    User.sitemap ::: Client.sitemap ::: Contact.sitemap ::: Project.sitemap ::: Task.sitemap ::: Day.sitemap


Now, Tyler runs the exact same WAR as I do, we're both running Java 6 on Apache 6 with a MySQL backing.

The difference is that he can click on the "Reports" and "Timesheets" link without any problems,
but when I click them, I get an "Invalid URL" and get redirected to the Home-page.

Since "ReportList", "ReportBill" and "ReportMonthly" are hidden, there are no links, but if I type them in manually, they work just fine.
(Manually typing the URLs for "Reports" and "Timesheets" both generate the same Invalid URL response)

Note that we're using the exact same WAR-file.

This is probably dead simple, but it is a rather weird situation.

Any clues?

Cheers,
-V

--
_____________________________________
/                                                                 \
       /lift/ committer (www.liftweb.net)
     SGS member (Scala Group Sweden)
 SEJUG member (Swedish Java User Group)
\_____________________________________/

David Pollak

unread,
Feb 28, 2008, 2:07:23 PM2/28/08
to lif...@googlegroups.com
Can you post some actual URLs that succeed for Tyler and fail for you?
--
lift, the secure, simple, powerful web framework http://liftweb.net
Collaborative Task Management http://much4.us

TylerWeir

unread,
Feb 28, 2008, 2:42:54 PM2/28/08
to liftweb
http://localhost:8080/timesheets/reports

Works for me, but not for Vik. For an exhaustive list, Vik will need
to chime in.
It works as expected for me, no issues at all.

On Feb 28, 2:07 pm, "David Pollak" <feeder.of.the.be...@gmail.com>
wrote:
> Can you post some actual URLs that succeed for Tyler and fail for you?
>
> On Wed, Feb 27, 2008 at 1:07 PM, Viktor Klang <viktor.kl...@gmail.com>

David Pollak

unread,
Feb 28, 2008, 2:47:35 PM2/28/08
to lif...@googlegroups.com
On Thu, Feb 28, 2008 at 11:42 AM, TylerWeir <tyler...@gmail.com> wrote:

http://localhost:8080/timesheets/reports

Works for me, but not for Vik.  For an exhaustive list, Vik will need
to chime in.
It works as expected for me, no issues at all.

Is there a ContextPath in Viktor's case (http://localhost:8080/foo/timesheets/reports)?

Can you send me a copy of the war (privately) and I see if it works for me :-)
 



--

TylerWeir

unread,
Feb 28, 2008, 2:59:51 PM2/28/08
to liftweb
You've got mail.

On Feb 28, 2:47 pm, "David Pollak" <feeder.of.the.be...@gmail.com>
wrote:

Viktor Klang

unread,
Feb 28, 2008, 3:13:45 PM2/28/08
to lif...@googlegroups.com
On Thu, Feb 28, 2008 at 8:47 PM, David Pollak <feeder.of...@gmail.com> wrote:


On Thu, Feb 28, 2008 at 11:42 AM, TylerWeir <tyler...@gmail.com> wrote:

http://localhost:8080/timesheets/reports

Works for me, but not for Vik.  For an exhaustive list, Vik will need
to chime in.
It works as expected for me, no issues at all.

Hey guys :)

It's only these two that do not work:


     Menu(Loc("Timesheets", "/timesheets", "Timesheets")) ::
     Menu(Loc("Reports", "/timesheets/reports", "Reports")) ::

All other URLs work just fine, either through /lift/ itself using a-hrefs or manually entering the URLs.
 

Is there a ContextPath in Viktor's case (http://localhost:8080/foo/timesheets/reports)?

We use the exact same warfile.
I've tried both using a context-file and without a context file. (/conf/catalina/localhost/...)
 

Can you send me a copy of the war (privately) and I see if it works for me :-)

Tyler, would you mind sending a copy to Dave? :)


Thanks for helping out.

Cheers,
-V
 
Reply all
Reply to author
Forward
0 new messages