the issue is the new debugging help screen in dev mode got in the way of the
passing not found... so...
package services
import net.liftweb.http._
import net.liftweb.mapper._
import net.liftweb.util._
import java.sql.{Connection, DriverManager}
class Boot extends Bootable {
def boot {
*LiftRules.liftRequest.append {**
case Req("messagebroker" :: _, _, _) => false
}*
LiftRules.passNotFoundToChain = true
}
}
What the code does is it looks for calls to /messagebroker/* and ensures
these are not Lift calls.
You can find working code at http://github.com/dpp/lift_vs_blazeds
Thanks,
David
On Thu, Nov 12, 2009 at 2:14 PM, oshyshko <[email protected]> wrote:
>
> Hello David,
>
> Here is source code.
>
> http://github.com/oshyshko/lift_vs_blazeds
>
> 1. Run it via:
> $ mvn jetty:run-exploded
>
> 2. Go to http://localhost:8080/
> You should see a SWF with a text field and a button (you will need
> Flash Player 10):
> [Kaboom!] (Say it)
>
> 3. Press "Say it"
>
> 4. Watch Jetty's reply in console:
> Kaboom!
>
> 5. Stop Jetty, open web.xml, find this snipped and uncomment
> LiftFilter mapping:
> <!-- uncomment this -->
> <!--
> <filter-mapping>
> <filter-name>LiftFilter</filter-name>
> <url-pattern>*</url-pattern>
> </filter-mapping>
> -->
>
> 6. Run Jetty
> $ mvn jetty:run-exploded
>
> 7. Go to http://localhost:8080/
> 8. Press "Say it"
> 9. Watch Jetty's console - message "Kaboom!" will not appear
>
> On Nov 11, 2:32 am, David Pollak <[email protected]>
> wrote:
> > ...
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---