Are you setting the context path in jetty web config? ...
By default lift is using X-Lift-ContextPath header to determine the
context path. Do you have this header? ... If it's not found Lift uses
the context path provided by the container.
I have used before other context path-s with no problem. I configured
jetty using jetty-web.xml:
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath" type="String">/mycontext</Set>
</Configure>
contextPath it used when referencing liftAjax.js ... it is used
everywhere in Lift. Are you sure you set the application context path
correctly?
Can you make a minimalistic Lift app, that I can just run, showing
that context path is not used correctly by Lift? ... If you do I'll
start working on it.
Br's,
Marius
On Dec 31, 1:20 am, Timothy Perrett <[email protected]> wrote:
> Guys,
>
> Im having a really strange problem with the context handling in an app
> im writing. Essentially, the app is pretty "normal", it goes about its
> business perfectly well. However, as this will be distributed through
> different parts of our company, and could be deployed in different
> contexts, I need a way of handling this. Our usual setup for apps is
> to have them running as the root context on their own port and then to
> manage app URIs through a front end proxy (yes, there are pros and
> cons here, but it is what it is!)
>
> For example, I want to deploy the app to:
>
> /mypath/<appurls>
>
> whilst the guys in the USA might want to put it at:
>
> /another/path/<appurls>
>
> This is pretty problematic, as lift doesnt know about this and tries
> to submit forms from the / context and also references liftAjax.js
> from the root context too.
>
> I've had a play with LiftRules.calculateContextPath but it doesn't
> appear to do what I want, or im not understand how it should work.
>
> Any ideas?
>
> Cheers, Tim
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.