Looks like "net.liftweb.http.LiftFilter" after version 1.0.+ breaks
BlazeDS servlet.

Version 0.9. of "net.liftweb.http.LiftFilter" works fine.
I want to switch to a newer version of Liftweb, but I can't.

Any ideas how to make LiftFilter 1.0.+ to work with BlazeDS servlet?


More info:
I used Scala 2.7.1 and Liftweb 0.9 with BlazeDS (works fine).

BlazeDS is simply a rpc-servlet that maps to "/messagebroker/*" path
and exposes your classes as web services.

====================================
    <servlet>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <servlet-class>flex.messaging.MessageBrokerServlet</servlet-
class>
    </servlet>

    <servlet-mapping>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <url-pattern>/messagebroker/*</url-pattern>
    </servlet-mapping>
====================================


These web-services are simple Scala classes like this:
====================================
class UserService {
  def list(): Array[User] = User.findAll().toArray
}

// User is a regular Lifweb Remapper class:
class User extends KeyedMapper[Long, User] { ... }
====================================

This servlet is wrapped by "net.liftweb.http.LiftFilter".
If not wrapped, all DB stuff inside UserService wouldn't work.
====================================
   <filter>
        <filter-name>LiftFilter</filter-name>
        <filter-class>net.liftweb.http.LiftFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>LiftFilter</filter-name>
        <url-pattern>/messagebroker/*</url-pattern>
    </filter-mapping>
====================================

Now, If i change my POMs from:
<scala.version>2.7.1</scala.version>
<liftweb.version>0.9</liftweb.version>

to

<scala.version>2.7.4</scala.version>
<liftweb.version>1.0</liftweb.version>

<!-- or any 1.0+ :
    <liftweb.version>1.1-M5</liftweb.version>
    <liftweb.version>1.0.2</liftweb.version>
-->

Then its all broken and any access to "/messagebroker/*" returns:
====================================
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 257
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=1dj9cjb4kegk7;Path=/
X-Lift-Version: 0.11-SNAPSHOT
Server: Jetty(6.1.21)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><body>The Requested URL /messagebroker/amf was not found on this
server</body></html>
  ====================================

And this makes me bound to Liftweb 0.9.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to