Forum OpenACS Development: Re: dotlrn chat

Collapse
19: Re: dotlrn chat (response to 1)
Posted by Ryan Gallimore on
I followed your directions and XoTcl installed to 5.1.5 without error via the APM. But when I browse to /xotcl I get the following error:

invalid command name "::xotcl::Class"
while executing
"::xotcl::Class allinstances"
invoked from within
"lsort [::xotcl::Class allinstances]"
invoked from within
"foreach cl [lsort [::xotcl::Class allinstances]] {
if {!$all_classes && [string match "::xotcl::*" $cl]} continue

append output "a nam..."
("uplevel" body line 62)
invoked from within
"uplevel {
ad_page_contract {
Show classed defined in the connection threads

@author Gustaf Neumann
@cvs-id $id:$
} -query {
{all_class..."
(procedure "code::tcl::/var/lib/aolserver/vmdemo/packages/xotcl-core/www..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

Collapse
20: Re: Re: dotlrn chat (response to 19)
Posted by Gustaf Neumann on
Ryan wrote:
...I followed your directions and XoTcl installed to 5.1.5 without error via the APM. But when I browse to /xotcl I get the following error:

invalid command name "::xotcl::Class"
while executing
...


Hmm, in my instruction, https://openacs.org/xowiki/pages/en/xotcl-core installing from apm is not mentioned. A couple of weeks ago, i switched from releasing via .apm to releasing via CVS due to various requests from the community. The actual version of the various xotcl modules is in CVS head, and not in the .apm files.

However, this is not likely to be the problem you are facing, the error message does not seem to be version dependent. "::xotcl::Class" is a built-in command xotcl, so in your installation xotcl is not loaded. This points to a problem in step 1 from the above installation instructions.