Jorge,
it looks like that i have kept Boot class in the place that is why it was
working fine for me. Thanks for spotting before i got problems in production
:-)
Derek, you are absolutely right. In the LiftFilter.init method, we get
bootloader parameter from the FilterConfig object instead of ServletContext.
So, changing config to context in the following line solves the problem on
my machine:
bootLift(Box.legacyNullTest(context.getInitParameter("bootloader")))
Cheers,
Sergey
On Mon, Mar 16, 2009 at 4: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
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---