Just confirmed. Changing you web.xml to:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>

<filter>
  <filter-name>LiftFilter</filter-name>
  <display-name>Lift Filter</display-name>
  <description>The Filter that intercepts lift calls</description>
  <filter-class>net.liftweb.http.LiftFilter</filter-class>
  <init-param>
    <param-name>bootloader</param-name>
    <param-value>bootstrap.liftweb.Brat</param-value>
  </init-param>
</filter>


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

</web-app>

Fixes it. I'll fix the book.

Derek

On Mon, Mar 16, 2009 at 9:19 AM, Derek Chen-Becker <[email protected]>wrote:

> I think we might have an error in the book. The example you give uses
> context-param, but I think it needs to be an init-param within the filter
> portion of the web.xml.
>
> Derek
>
>
> On Mon, Mar 16, 2009 at 9:04 AM, Viktor Klang <[email protected]>wrote:
>
>> No, it was working when we switched to the filter. :/
>>
>>
>> On Mon, Mar 16, 2009 at 2:58 PM, Derek Chen-Becker <[email protected]
>> > wrote:
>>
>>> I wonder if this is something that broke when we moved to a Filter...
>>>
>>> Derek
>>>
>>>
>>> On Mon, Mar 16, 2009 at 7:02 AM, Jorge Ortiz <[email protected]>wrote:
>>>
>>>> I get the same error, unfortunately.
>>>>
>>>> --j
>>>>
>>>>
>>>> On Mon, Mar 16, 2009 at 4:48 AM, Sergey Andreev <[email protected]>wrote:
>>>>
>>>>> Jorge,
>>>>>
>>>>> I am using a custom Boot class and it works just fine. I believe that
>>>>> if you create a Brat.scala and put your class there, it will solve the
>>>>> problem
>>>>>
>>>>> Regards,
>>>>> Sergey
>>>>>
>>>>>
>>>>> On Mon, Mar 16, 2009 at 1:31 PM, Jorge Ortiz <[email protected]>wrote:
>>>>>
>>>>>> Folks,
>>>>>>
>>>>>> I'm trying to specify a custom Boot class, as per Chapter 3 of the
>>>>>> Lift Book. To my web.xml I've added:
>>>>>>
>>>>>>   <context-param>
>>>>>>     <param-name>bootloader</param-name>
>>>>>>     <param-value>bootstrap.liftweb.Brat</param-value>
>>>>>>   </context-param>
>>>>>>
>>>>>> and in Boot.scala I've commented out the regular Boot class and added
>>>>>> a Brat class with identical implementation, except it extends Bootable.
>>>>>>
>>>>>>   class Brat extends Bootable { ... }
>>>>>>
>>>>>> Unfortunately, I'm getting a:
>>>>>>
>>>>>>   ERROR - Failed to Boot
>>>>>>   java.lang.ClassNotFoundException: bootstrap.liftweb.Boot
>>>>>>
>>>>>> Attached is the zipped project.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> --j
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Viktor Klang
>> Senior Systems Analyst
>>
>>
>> >>
>>
>

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