The copy you downloaded does not contain the fix. As I've said before, try out
the instructions here:
http://markmail.org/message/r2dwtrlyv23tuy5q
and patch the build.xml project-quick-start target.
Alternatively you can also grab the latest copy of build.xml, and replace your distribution's
build.xml with this one:
http://svn.apache.org/repos/asf/click/trunk/click/build/build.xml
kind regards
bob
On 31/03/2010 12:27 AM, [email protected] wrote:
Bob,
I downloaded it from
http://apache.freeby.pctools.cl/click/click/2.1.0/click-2.1.0.zip
i get there following the official links.
In the previous email i included all the steps i followed order to reproduce
the problem. Can you try this:
wget http://apache.freeby.pctools.cl/click/click/2.1.0/click-2.1.0.zip
unzip click-2.1.0.zip
cd click-2.1.0
ant -f build/build.xml get-deps
ant -f build/build.xml project-quick-start
With respect to DataContextFilter i was tracking down the problem when running
in maven/eclipse/tomcat server, with no results, finally i resorted to replace
click filter with org.apache.cayenne Filter, it just worked.
I'm sorry no to be able to spend more time exploring the cause of the problems.
Kind Regards
Hans
----- "Bob Schellink"<[email protected]> escribió:
I've checked in the fix which will be available for the next release.
However the latest
distribution, 2.1.0, does not contain the fix. If you say the fix has
been applied to your copy of
Click, where did you download it from? Also if the fix have been
applied you should not get the
exception anymore.
The Click DataContextFilter is similar to Cayenne's one with some
Click specific enhancements.
What problem were you having with Click's DataContextFilter?
kind regards
bob
On 30/03/2010 08:34 AM, [email protected] wrote:
Bob,
I saw your post, the build.xml of a fresh download of the distro is
fine.
May be there is something i can't see.
...
By the way, i solved the data context binding problem using cayenne
web filter directly.
<filter>
<filter-name>CayenneFilter</filter-name>
<filter-class>org.apache.cayenne.conf.WebApplicationContextFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CayenneFilter</filter-name>
<servlet-name>ClickServlet</servlet-name>
</filter-mapping>
May be there's something wrong in click data context binding code, i
thought initially that it was something maven related.
Thanks
Hans
----- "Bob Schellink"<[email protected]> escribió:
Hi Hans,
See my reply: http://markmail.org/message/r2dwtrlyv23tuy5q
kind regards
bob
On 30/03/2010 07:29 AM, [email protected] wrote:
Hi,
I finally give up with maven dependencies, intermittent problems
with cayenne DataContext binding killed me.
Now, i'm trying to use project-quick-start from a fresh
downloaded
click 2.1.0, but i doesn't work, i found some posts talking of a
failure due to the "package" task definition, but the build.xml
seems
to have the patch mentioned in the lists .. it should be
something
else.
This is what i've done (java version "1.6.0_16" and Apache Ant
version 1.8.0)
wget
http://apache.freeby.pctools.cl/click/click/2.1.0/click-2.1.0.zip
unzip click-2.1.0.zip
cd click-2.1.0
ant -f build/build.xml get-deps
h...@energy:~/click-2.1.0$ ant -f build/build.xml
project-quick-start
Buildfile: /home/hans/click-2.1.0/build/build.xml
project-quick-start:
[input] Please enter the project name (e.g. quickstart):
[quickstart]
[input] Please enter the root package name (e.g.
com.quickstart): [com.quickstart]
[input] Please enter the web app context path: [quickstart]
[input] The directory '/home/hans/quickstart' will be
deleted.
Continue (y/n)? (y, n)
y
BUILD FAILED
/home/hans/click-2.1.0/build/build.xml:950: Problem: failed to
create task or type package
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any<presetdef>/<macrodef> declarations have
taken place.
Total time: 5 seconds
h...@energy:~/click-2.1.0$
Any help will be appreciatted.