Mike Kienenberger writes:
> I'm using Eclipse, tomcat, sysdao, cayenne, and struts, so I can probably
> assist you somewhat.
Glad to hear it: maybe I'll be able to return the favour some time soon.
> javax.servlet comes as part of your j2ee container (tomcat in your case).
Just tried it out and it works, thanks. Only thing, it seems I got
everything working without the servlet package (see below).
> By default, Cayenne finds cayenne.xml in the root of your classpath.
I guess I overlooked something 'couse this placing it in WEB-INF/classes did
> My first guess is that your sysdao/tomcat interaction isn't set up right,
> and you're not picking up the classpath.
Very probably. Only problem, obviously, is that if I knew where the problem
was, I'd fix it. :)
Anyway, this deployment descriptor (is that what its' called?) seems to work
Funny, thought, the [tomcat_home]/webapps doesn't have a test8 directory...I
thought it takes an app from docBase and stores it under webapps. Guess I
> If that's the case, you probably just need to get your sysdao/tomcat
> configured properly. I might be able to help you with that off-list.
"Tomcat Version: 5.x",
"Tomcat Home: /home/tomi/jakarta-tomcat-5.5.7"
"Context declaration mode: Server.xml"
"Config file: /home/tomi/jakarta-tomcat-5.5.7/conf/server.xml"
"Tomcat base: " (none)
"Projects added to classpath: " (none)
"JVM parameters: -Dorg.apache.tapestry.disable-cache=true"
"Source path: " (none)
"Tomcat manager app: localhost:8080/manager"
"manager username: " (none)
"manager password: " (none)
Any obvious mistakes? One that comes to mind is the lack of a current line
highlighting during debug sessions...I think I'll be able to work that one
out judging by the number of similar complaints on diferent forums.
> When you're done, you'll just stick your cayenne.xml files either in your
> src directory so they're automatically copied to the classes directory or I
> stick them in my WEB-INF directory.
Just the classes folder, for me, it seems. :(
As for cayenne, I've set up a tapestry global-class (application-wide class)
that initializes the context and makes it available for all pages. Seems to
work: I just use something like ctxt = Global.getContext(); when I load a
page and than use the ctxt handle to execute queries. Any comments on such a
Thanks for all the help,
This archive was generated by hypermail 2.0.0 : Fri Feb 25 2005 - 12:40:55 EST