Forum OpenACS Development: Has xml-utils-procs moved?
I've FINALLY checked things out from the tree, after cleaning up my machine (new postgres.so, etc.) to start working w/ OpenACS 4. I'm generally following the install guide (Thanks for that, Vinod!), but I'm having a problem.
When I start nsd, it's failing with the following error:
[09/May/2001:21:34:13][1112.1024][-main-] Error: Server startup failed: Error during bootstrapping invalid command name "xml_find_child_nodes" while executing "xml_find_child_nodes $root_node rdbms" ...blah...etc.
I've tracked down references to xml_find_child nodes; it's used in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher- procs.tcl, but it's not defined until packages/acs-tcl/tcl/30-xml- utils-procs.tcl (I don't know yet WHEN that's sourced, but it's after all the acs-bootstrap-installer stuff...another interesting note is that the header in 30-xml-utils-procs.tcl says "50-xml-utils- procs.tcl"; did it maybe used to be in acs-bootstrap-installer/tcl?
I think I'm going to just dink around with the files to get things to load (probably move 30-xml-utils-procs.tcl into packages/acs- bootstrap-installer/tcl/, before 40-db-query-dispatcher-procs.tcl.
BUT...have I munged my cvs checkout (I hope not...I've blown it away and redone it several times today!) or have some things gotten moved around a bit? Any ideas? (Oh...I don't know if it makes a difference [I hope not], but I'm logging into cvs with kenk, rather than anonymous. Maybe I'll try an anonymous check just to make sure...). Anyone else have this problem?
For now, I'll rename /var/www to /var/web, but it's something to keep in mind (for future Debian packaging, etc.).
assumptions about file locations. Even the name "guess_type" is a
misnomer, because there's no way to override the "guess"... the
"guess" is reality as far as the bootstrap installer is concerned (and
the APM, for that matter - you can't change the "guess", one of my
many, many issues with the APM that I hope to clean up as we progress).
I don't quite understand the first problem you had with db_type...
It was the same error as I'd gotten with "xml_find_child_nodes": [09/May/2001:21:34:13][1112.1024][-main-] Error: Server startup failed: Error during bootstrapping invalid command name "db_type"
Nothing to worry about though...I've re-checked everything out of CVS (with the directory name change to /var/web) and the regular file locations are working fine. I'm going through the kernel data model install now. There were TONS of *-proc.tcl files that weren't getting sourced b/c of the regexp issue, including the ones holding xml_find_child_nodes, db_type, etc. Everything seems a-ok as of now...
I went ahead and corrected the bug. I didn't commit it to CVS because it's Don's module. But I submitted a patch (and a bug report) at the SDM. It's here: https://openacs.org/sdm/one-patch.tcl?patch_id=32.
Wouldn't it be better to use PageRoot? We know that page root always points to [your install directory]/www. All you need to do is count the number of directories in the [your install directory] path and only look for www and admin-www in the trailing part of the path being tested - instead of your hard-wired "3" approach.
If you want to take a shot at that, I'd say do it, test it, and go ahead and commit it ...