Thanks Hans, I've updated the JavaDoc to use the names ClickServlet and 
DataContextFilter.

kind regards

bob


On 20/03/2010 10:46 AM, [email protected] wrote:
Hi,

I've loosing some minutes tracking the infamous "Current thread has no bound 
ObjectContext" message.

To create web.xml i copied blindly the documentation in:
http://click.apache.org/docs/extras-api/org/apache/click/extras/cayenne/DataContextFilter.html

The problem is in the name of the click servlet, which must match exactly the 
server-name attribute on the filter configuration.

The filter configuration says: click-servlet and must say: ClickServlet (to 
keep the new servlet name).

Now is:

     <filter-mapping>
      <filter-name>data-context-filter</filter-name>
      <servlet-name>click-servlet</servlet-name>
    </filter-mapping>

And must be:

        <filter-mapping>
                <filter-name>data-context-filter</filter-name>
                <servlet-name>ClickServlet</servlet-name>
        </filter-mapping>

I hope this can help others... in any case, thanks a lot for this project!!

Bye
Hans


Reply via email to