Forum OpenACS Development: Win32-OpenACS Version 1.5

Collapse
Posted by Maurizio Martignano on
Dear all,
I've just compiled version 1.5 (11th of March 2008) of Win32-OpenACS: an actual native Win32 port (no Cygwin, no VMware) of OpenACS.

This version of Win32-OpenACS port consists of the following components:
1. aolserver-4.5.0 - including
1.1 nscache 1.4
1.2 nssha1 1.1.1.1
1.3 nspostgres 4.1
1.4 nsoracle 2.7
2. tcl-8.5.1
3. tk-8.5.1
4. tDom-0.8.2
4. xotcl-1.6.0
5. tcllib-1.10
6. postgresql-8.3.0-2
7. openacs-5.4.0

The port can be obtained at the following URL:
http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/

Hope it helps,
Maurizio

Collapse
Posted by Nima Mazloumi on
In Vista trying to run nsd results in a side-by-side configuration error. Any idea?
Collapse
Posted by Nima Mazloumi on
I have installed the redistributables for vs 2008 c++ already.
Collapse
Posted by Maurizio Martignano on
Dear Nima,
Thanks for having spotted the problem.
I’m uploading at the moment a new version of the aolserver_installer.zip archive file that solves it.
Once again thanks,
Maurizio
Collapse
Posted by Nima Mazloumi on
Maurizio, it works now. Maybe you should do something about the postgres password you have entered in the config.tcl. For testing it might be easier to change pg_hba.conf to use trust instead of md5 from localhost.

Some problems I came across:

A problem are the usage of *nix commands like gunzip and others in OpenACS. This breaks stuff like APM and file-storage.

Everytime I install a package I am asked to enter the password of postgres for each *-create.sql in the shell.

I installed xowiki (required several packages like acs-datetime, acs-event, xotcl-core, rss-support, file-storage, oacs-dav, categories, general-comments...). After restart oacs is broken. Apparently xotcl 1.6.0 is not loaded. Any idea why?

Usage of developer support crashes nsd. No idea why.

Collapse
Posted by Maurizio Martignano on
Hello Nima,
my answers/comments are here below:

Maurizio, it works now. Maybe you should do something about the postgres password you have entered in the config.tcl. For testing it might be easier to change pg_hba.conf to use trust instead of md5 from localhost.

[MM] The password I put is just an example. People should be able to modify by themselves the config.tcl file as well as the postgres configuration files.

Some problems I came across:

A problem are the usage of *nix commands like gunzip and others in OpenACS. This breaks stuff like APM and file-storage.

[MM] Fair enough. This is Windows after all. A solution could be install MinGW/MinSys and make the unix like commands available on the Windows PATH enviroment variables.

Everytime I install a package I am asked to enter the password of postgres for each *-create.sql in the shell.

[MM] Correct

I installed xowiki (required several packages like acs-datetime, acs-event, xotcl-core, rss-support, file-storage, oacs-dav, categories, general-comments...). After restart oacs is broken. Apparently xotcl 1.6.0 is not loaded. Any idea why?

[MM] In my original distribution the XOTcl support wasn't the default. I've just rebuilt the system making sure that xotcl 1.6.0 is loaded, please let me know how it goes.

Usage of developer support crashes nsd. No idea why.

[MM] Beats me.

Collapse
Posted by Nima Mazloumi on
Sorry, but xotcl is still not loading. What did you change?

Why is the user asked for the postgres password in the shell anyways?

Have you tried it out with MinGW/MinSys? Maybe you could make it part of your distro? Just a thought.

Collapse
Posted by Maurizio Martignano on
Dear Nima,
have you tried the folowing command
c:\aolserver\bin\tclsh85t \xotcl-1.6.0\tests\speedtest.xotcl
?
Does it work?

Have you added c:\aolserver\bin to the PATH variable?
Have you set up the variable TCLLIBPATH to c:\aolserver\lib?

Thanks in advance,
Maurizio

Collapse
Posted by Nima Mazloumi on
Running the script works.
PATH and TCLLIBPATH exists. Still xotcl is not loaded.
Where do you configure loading of xotcl?
Collapse
Posted by Gustaf Neumann on
maybe the "install-aol" of the xotcl Makefile is missing? it installs xotcl.tcl in the aolserver*/modules/tcl directory.
Collapse
Posted by Nima Mazloumi on
good point. that surely is the problem.

make install-aol

Collapse
Posted by Maurizio Martignano on
Dear Gustav and Nima,
thanks a lot for your help.
1. The target install-aol is not available inside the Makefile.vc file that I used. It is only present inside the Unix Makefile.
2. I copied anyhow the xotcl.tcl file inside the modules folder.
3. I installed xowiki but when I try to enter in the xowiky from the html page I get the following error. Any clue?

TIA,
Maurizio

There was a server error processing your request. We apologize.

Take me back where I was (before the error)
invalid command name "::xowiki::Object"
while executing
"::xowiki::Object create ::$folder_id"
(procedure "require_folder_object" line 29)
::794 ::xowiki::Package->require_folder_object
invoked from within
"my require_folder_object"
(procedure "init" line 5)
::794 ::xowiki::Package->init
::xowiki::Package ::xotcl::Class->create
invoked from within
"my create ::$package_id -url $url"
(procedure "require" line 8)
::xowiki::Package ::xo::PackageMgr->require
invoked from within
"my require -url $url $package_id"
(procedure "initialize" line 21)
::xowiki::Package ::xo::PackageMgr->initialize
invoked from within
"::xowiki::Package initialize -ad_doc {

This is the resolver for this package. It turns a request into
an object and executes the object with the ..."
(file "c:/aolserver/servers/openacs/packages/xowiki/www/index.vuh" line 2)
invoked from within
"source [ad_conn file]"
(procedure "rp_handle_tcl_request" line 3)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"

Collapse
Posted by Gustaf Neumann on
Dear Maurizio,

We are progressing. When ::xowiki::Object is not defined, this is a sign of some earlier installation errors, which are most likely visible in the error log of the aolserver.

Check out the xowiki faqs, http://alice.wu-wien.ac.at:8000/xowiki-faq/#install-errors
There is a similar error to what you are describing.

most likely it helps to upgrade nscache to 1.5 via

cvs -z3 -d:pserver:mailto:anonymous@aolserver.cvs.sourceforge.net:/cvsroot/aolserver co nscache

Collapse
Posted by Enrique Catalan on
Hi,

We had similar problems and we fixed them doing the 
following:

<blockquote>Some problems I came across:
A problem are the usage of *nix commands like gunzip and 
others in OpenACS. This breaks stuff like APM and 
file-storage.
</blockquote>
We used gzip for Win32 ( 
http://gnuwin32.sourceforge.net/packages/gzip.htm ) and just
changed the path/executable parameter in the site-map.

<blockquote>Everytime I install a package I am asked to enter the 
password of postgres for each *-create.sql in the shell.
</blockquote>
Are you running the 'nsd' without '-f' flag?

<blockquote>I installed xowiki (required several packages like 
acs-datetime, acs-event, xotcl-core, rss-support, 
file-storage, oacs-dav, categories, general-comments...). 
After restart oacs is broken. Apparently xotcl 1.6.0 is not
loaded. Any idea why?
</blockquote>

Check if XOTcl works in the tclsh (it should be there).  If 
you run a 'package require XOTcl' you should get the version
number.  Then, add the 'package require XOTcl' at the 
beginning of the library that is trying to run XOTcl.  

<blockquote>Usage of developer support crashes nsd. No idea why. 
</blockquote>
This is because this version of Aolserver has some problems 
with the time&date function: ns_fmttime.  I guess this
function is not supported in Windows.  You might need to
replace all the occurrences of this function by 'clock' in 
the oacs code sice it will crash in other places if you
don't change that.

Hope that helps!
Cheers
Collapse
Posted by Maurizio Martignano on
Dear all,
thanks a lot for your help.

I finally managed to get XoWiki running on Windows (and have Win32-OpenACS running as a proper Win32 service).

I've added XoWiki Version 0.6.3.

Some few notes:

1. I had to modify the file "rss-generation-create.sql" to remove the following piece of code:

constraint rss_gen_subscrs_ctx_fk
references acs_objects(object_id)

2. I had to modify "ns_fmttime" with "clock" as suggested by Enrique.

3. I had to modify the file "category-trees-procs.xql" to remove all uses of the column "widget".

4. I had to modify the file "01-debug-procs.tcl" to remove all time related commands from the function "__timediff".

5. Last but not Least: I finally have a proper OpenACS development environment running on Windows (which I have to use anyhow for other reasons, e.g. .NET Development) where I can use Eclipse + DLTK as IDE.

I really hope this effort is of some use not only for myself.

Cheers,
Maurizio

Collapse
Posted by Nima Mazloumi on
sounds great. maybe we can fix the stuff in the toolkit in a way that it will work out of the box for win and linux without requiring you to change anything.
Collapse
Posted by Nima Mazloumi on
There still seem to be some problems:
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nsd.tcl: starting to read config file...
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nsd.tcl: using threadsafe tcl: 1
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nsd.tcl: finished reading config file.
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nsmain: AOLserver/4.5.0 starting
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: encoding: loaded: utf-8
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: fastpath[openacs]: mapped GET /
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: fastpath[openacs]: mapped HEAD /
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: fastpath[openacs]: mapped POST /
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: adp[openacs]: mapped GET /*.adp
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: adp[openacs]: mapped HEAD /*.adp
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: adp[openacs]: mapped POST /*.adp
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nssock.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nslog.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nslog: opened 'c:/aolserver/servers/openacs/log/openacs.log'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nssha1.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nscache.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: nscache module version @VER@ server: openacs
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nsdb.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: modload: loading 'c:/aolserver/bin/nspostgres.so'
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: PostgreSQL loaded.
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: conf: [ns/server/openacs]enabletclpages = 0
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: XOTcl version 1.6.0 loaded
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: Loading OpenACS, rooted at c:/aolserver/servers/openacs
[14/Mar/2008:02:18:16][4120.3216][-main-] Notice: Sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/bootstrap.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/tcl/00-p
roc-procs.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/tcl/10-u
tilities-procs.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/tcl/20-d
b-bootstrap-procs.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/tcl/30-a
pm-load-procs.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: sourcing c:/aolserver/servers/openacs/packages/acs-bootstrap-installer/tcl/40-d
b-query-dispatcher-procs.tcl
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Database API: Default database (dbn) is: 'default'
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Database API: Using ALL database pools for OpenACS.
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Database API: The following pools are available for OpenACS: pool2 pool3 pool1
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: dbdrv: opening database 'postgres:127.0.0.1:5432:openacs'
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Opening openacs on 127.0.0.1, port 5432
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Ns_PgOpenDb(postgres):  Openned connection to 127.0.0.1:5432:openacs.
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: dbdrv: opening database 'postgres:127.0.0.1:5432:openacs'
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Opening openacs on 127.0.0.1, port 5432
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Ns_PgOpenDb(postgres):  Openned connection to 127.0.0.1:5432:openacs.
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: dbdrv: opening database 'postgres:127.0.0.1:5432:openacs'
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Opening openacs on 127.0.0.1, port 5432
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Ns_PgOpenDb(postgres):  Openned connection to 127.0.0.1:5432:openacs.
[14/Mar/2008:02:18:17][4120.3216][-main-] Notice: Bootstrap: Loading acs-tcl
[14/Mar/2008:02:18:18][4120.3216][-main-] Notice: Loading acs-tcl/tcl/00-database-procs-postgresql.tcl
[14/Mar/2008:02:18:18][4120.3216][-main-] Notice: Loading acs-tcl/tcl/00-database-procs.tcl
...
[14/Mar/2008:02:18:20][4120.3216][-main-] Notice: Loading acs-tcl/tcl/pools-init.tcl
[14/Mar/2008:02:18:20][4120.3216][-main-] Notice: Default Pool: minthreads 5 maxthreads 10 idle 0 current 0 maxconns 100 queued 0 timeout 12
0
...
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/00-serializer-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/01-debug-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/03-doc-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/04-library-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/05-db-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/06-package-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-package-procs.tcl:
superclass: expected a list of classes but got '::xo::db::Class' during '::xo::PackageMgr superclass'
    ::xo::PackageMgr ::xotcl::Object->configure
    ::xotcl::Class ::xotcl::Class->create
    invoked from within
"Class create ::xo::PackageMgr  -superclass ::xo::db::Class  -parameter {
        package_key
      }"
    (in namespace eval "::xo" script line 6)
    invoked from within
"namespace eval ::xo {
  #
  # Meta-Class for Application Package Classes
  #

  Class create ::xo::PackageMgr \
      -superclass ::xo::db::Class \
  ..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-package-procs.tcl" line 9)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/06-param-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-param-procs.tcl:
invalid command name "::xo::db::Class"
    while executing
"::xo::db::Class get_class_from_db -object_type apm_parameter"
    (in namespace eval "::xo" script line 8)
    invoked from within
"namespace eval ::xo {

  Class create ::xo::parameter

  # Every OpenACS parameter should work with the methods defined here.
  # So, fetch first th..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-param-procs.tcl" line 108)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/10-recreation-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: -- softrecreate
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/20-Ordered-Composite-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/30-widget-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/40-thread-mod-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/bgdelivery-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: libthread does not appear to be available, NOT loading bgdelivery
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/chat-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/cluster-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/context-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/cr-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/cr-procs.tcl:
superclass: expected a list of classes but got '::xo::db::Class' during '::xo::db::CrClass superclass'
    ::xo::db::CrClass ::xotcl::Object->configure
    ::xotcl::Class ::xotcl::Class->create
    invoked from within
"::xotcl::Class create ::xo::db::CrClass  -superclass ::xo::db::Class  -parameter {
        {supertype content_revision}
        form
        edit_form
        {mime_type text/pla..."
    (in namespace eval "::xo::db" script line 13)
    invoked from within
"namespace eval ::xo::db {

#       {supertype content_revision}
#       form
#       edit_form
#       {description " "}
#       {mime_type text/plain}
#       {nls_language ""}
# ..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/cr-procs.tcl" line 9)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/generic-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: xotcl-core: creating xotcl-object caches
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: --Postgres Version 8.3
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: --OpenACS Version 5.2 or newer 5.4.0
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/html-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/http-client-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/ical-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/install-check-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/policy-procs.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/cluster-init.tcl
[14/Mar/2008:02:18:21][4120.3216][-main-] Notice: Loading xotcl-core/tcl/object-cache-init.tcl
...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xotcl-core/tcl/06-package-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-package-procs.tcl:
superclass: expected a list of classes but got '::xo::db::Class' during '::xo::PackageMgr superclass'
    ::xo::PackageMgr ::xotcl::Object->configure
    ::xotcl::Class ::xotcl::Class->recreate
    ::xotcl::Class ::xotcl::Class->create
    invoked from within
"Class create ::xo::PackageMgr  -superclass ::xo::db::Class  -parameter {
        package_key
      }"
    (in namespace eval "::xo" script line 6)
    invoked from within
"namespace eval ::xo {
  #
  # Meta-Class for Application Package Classes
  #

  Class create ::xo::PackageMgr \
      -superclass ::xo::db::Class \
  ..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-package-procs.tcl" line 9)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xotcl-core/tcl/06-package-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xotcl-core/tcl/06-param-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-param-procs.tcl:
invalid command name "::xo::db::Class"
    while executing
"::xo::db::Class get_class_from_db -object_type apm_parameter"
    (in namespace eval "::xo" script line 8)
    invoked from within
"namespace eval ::xo {

  Class create ::xo::parameter

  # Every OpenACS parameter should work with the methods defined here.
  # So, fetch first th..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/06-param-procs.tcl" line 108)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xotcl-core/tcl/06-param-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xotcl-core/tcl/cr-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-core/tcl/cr-procs.tcl:
superclass: expected a list of classes but got '::xo::db::Class' during '::xo::db::CrClass superclass'
    ::xo::db::CrClass ::xotcl::Object->configure
    ::xotcl::Class ::xotcl::Class->recreate
    ::xotcl::Class ::xotcl::Class->create
    invoked from within
"::xotcl::Class create ::xo::db::CrClass  -superclass ::xo::db::Class  -parameter {
        {supertype content_revision}
        form
        edit_form
        {mime_type text/pla..."
    (in namespace eval "::xo::db" script line 13)
    invoked from within
"namespace eval ::xo::db {

#       {supertype content_revision}
#       form
#       edit_form
#       {description " "}
#       {mime_type text/plain}
#       {nls_language ""}
# ..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-core/tcl/cr-procs.tcl" line 9)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xotcl-core/tcl/cr-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xotcl-request-monitor/tcl/throttle_mod
-procs.tcl:
invalid command name "thread::mutex"
    while executing
"thread::mutex create"
    (procedure "init" line 23)
    ::throttleThread ::xotcl::THREAD->init
    ::xotcl::THREAD ::xotcl::Class->create
    invoked from within
"::xotcl::THREAD create throttleThread {

  Class ThrottleStat -parameter { type requestor timestamp ip_adress url }

  Class Throttle -parameter {
   ..."
    (file "c:/aolserver/servers/openacs/packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl" line 2)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xotcl-request-monitor/tcl/throttle_mod-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/adp-generator-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/adp-generator-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/category-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/category-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/chat-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/chat-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/form-field-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/form-field-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/includelet-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/includelet-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/lcs-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/lcs-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/link-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/link-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/notification-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/notification-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/package-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Error: Error sourcing c:/aolserver/servers/openacs/packages/xowiki/tcl/package-procs.tcl:
::xowiki::Package: unable to dispatch method 'superclass' during '::xowiki::Package superclass'
    ::xowiki::Package ::xotcl::Object->configure
    ::xo::PackageMgr ::xotcl::Class->create
    invoked from within
"::xo::PackageMgr create Package  -superclass ::xo::Package  -parameter {{folder_id "[::xo::cc query_parameter folder_id 0]"}}"
    (in namespace eval "::xowiki" script line 3)
    invoked from within
"namespace eval ::xowiki {

  ::xo::PackageMgr create Package \
      -superclass ::xo::Package \
      -parameter {{folder_id "[::xo::cc query_paramet..."
    (file "c:/aolserver/servers/openacs/packages/xowiki/tcl/package-procs.tcl" line 9)
    invoked from within
"source $__file "
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/package-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/syndicate-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/syndicate-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/template-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/template-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/weblog-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/weblog-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-callback-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-callback-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-form-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-form-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-portlet-procs.tcl...
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-portlet-procs.tcl.
[14/Mar/2008:02:18:47][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-procs.tcl...
...
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Zen-state: 5.3.2 or newer
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-procs.tcl.
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-sc-procs.tcl...
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-sc-procs.tcl.
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-www-procs.tcl...
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Zen-state: 5.3.2 or newer
[14/Mar/2008:02:18:50][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-www-procs.tcl.
...
[14/Mar/2008:02:19:25][4120.3216][-main-] Notice: Loading packages/xotcl-request-monitor/tcl/throttle_mod-init.tcl...
[14/Mar/2008:02:19:25][4120.3216][-main-] Notice: Loaded packages/xotcl-request-monitor/tcl/throttle_mod-init.tcl.
[14/Mar/2008:02:19:25][4120.3216][-main-] Notice: Loading packages/xowiki/tcl/xowiki-cache-init.tcl...
[14/Mar/2008:02:19:25][4120.3216][-main-] Notice: Loaded packages/xowiki/tcl/xowiki-cache-init.tcl.
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Bootstrap: Done loading OpenACS.
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Sourcing files for postload...
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Done.
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Executing initialization code blocks...
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Executing initialization code block filters_register in c:/aolserver/servers/openacs/packa
ges/acs-tcl/tcl/request-processor-init.tcl
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: ns_register_filter postauth GET * rp_invoke_filter  0 0 1 throttle {}
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: ns_register_filter postauth POST * rp_invoke_filter  1 0 1 throttle {}
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: ns_register_filter trace GET /* rp_invoke_filter  2 0 3 ds_trace_filter {}
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: ns_register_filter trace POST /* rp_invoke_filter  3 0 3 ds_trace_filter {}
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: ns_register_filter trace HEAD /* rp_invoke_filter  4 0 3 ds_trace_filter {}
[14/Mar/2008:02:19:27][4120.3216][-main-] Notice: Executing initialization code block procs_register in c:/aolserver/servers/openacs/package
s/acs-tcl/tcl/request-processor-init.tcl
[14/Mar/2008:02:19:28][4120.3216][-main-] Notice: XOTcl extension not loaded; will not copy objects (error: info: expected an info option (u
se 'info info' to list all info options) but got 'instances'; info: expected an info option (use 'info info' to list all info options) but g
ot 'instances'
    ::xo::Package ::xotcl::Object->info
    invoked from within
"$C info instances"
    (procedure "allInstances" line 3)
    ::xotcl::serializer::Serializer::__#a ::xotcl::serializer::Serializer->allInstances
    invoked from within
"my allInstances $sc"
    (procedure "allInstances" line 5)
    ::xotcl::serializer::Serializer::__#a ::xotcl::serializer::Serializer->allInstances
    invoked from within
"$s allInstances ::xotcl::Object"
    (procedure "all" line 18)
    ::xotcl::serializer::Serializer->all
    invoked from within
"::Serializer all").
[14/Mar/2008:02:19:28][4120.3216][-main-] Notice: nsmain: AOLserver/4.5.0 running
[14/Mar/2008:02:19:28][4120.3216][-main-] Notice: driver: starting: nssock
[14/Mar/2008:02:19:28][4120.5452][-sched-] Notice: sched: starting
[14/Mar/2008:02:19:28][4120.5724][-nssock:driver-] Notice: starting
[14/Mar/2008:02:19:28][4120.5724][-nssock:driver-] Notice: nssock: listening on 127.0.0.1:8000
[14/Mar/2008:02:20:24][4120.1276][-sched:idle0-] Notice: starting
[14/Mar/2008:02:20:24][4120.1276][-sched:12-] Error: Tcl exception:
unknown namespace in import pattern "::xotcl::serializer::Serializer"
    while executing
"namespace import -force ::xotcl::serializer::Serializer"
    (in namespace eval "::" script line 6)
    invoked from within
"namespace eval :: {namespace import -force ::xotcl::myproc
namespace import -force ::xotcl::myvar
namespace import -force ::xotcl::@
namespace import ..."
    invoked from within
"ns_ictl update"
Collapse
Posted by Maurizio Martignano on
Hello Nima,
thanks for your feedback.

Can you tell me what you tried as test procedure?
Could I have your XOTcl procs so that I can replicate the error?

XoWiki on Win32-OpenACS requires a lot of testing and debugging.... perhaps we could share this effort.... you could do the testing and I could do the debugging/fixing.....

Anyhow thanks a lot for the great help you already provided me with!

Cheers,
Maurizio

Collapse
Posted by Nima Mazloumi on
Maurizio, I believe I sent you the package.rar link? These are the packages I use for my installation. Basically it is a HEAD checkout from oacs.

Seriously I believe that all you effort should be committed to cvs or you will have serious maintenance issues in future keeping you work updated.

A maybe better approach would be to provide missing command from cygwin/MinGW/MinSys or the like. Don't you think.

I am glad to be of help for testing. Maybe you can provide a binary (without sources, oacs, postgres) and a full-fledged archive of your project. I could use the binary for quick testing and installation.

Collapse
Posted by Maurizio Martignano on
Dear Nima,

[NIMA] Maurizio, I believe I sent you the package.rar link? These are the packages I use for my installation. Basically it is a HEAD checkout from oacs.

[MM] Correct me if I'm wrong.
You did not experienced the errors using the files of the packages contained in my Win32-OpenACS distribution. On the contrary you used the files in your packages, the ones you sent me.
Am I right?
I can only be responsible for the changes I made to the files contained in my distribution.

[NIMA] Seriously I believe that all you effort should be committed to cvs or you will have serious maintenance issues in future keeping you work updated.

[MM] Yes, but one thing is to assure consistency and proper behaviour in one configuration I have somehow frozen into an icebox (the Win32-OpenACS distribution) and another one is to guarantee compatibiltity with an evolving configuration... in this case I would need to test and if needed modify/update my code at every change in the OpenACS files.... who's going to sustain this effort?
I still don't know if there's a real interest on the Windows Port.

[NIMA] A maybe better approach would be to provide missing command from cygwin/MinGW/MinSys or the like. Don't you think.

[MM] I already recommended to adopt these packages to make availbale the most used unix commands... For what concerns the selection of a Windonws compilation system I still prefer MS Visual C++ and the code it generates...

Cheers and thanks,
Maurizio

Collapse
Posted by Nima Mazloumi on
Actually I use your distro. Since mine was overwritten during the installation process.
Collapse
Posted by Gustaf Neumann on
Nima,

the error messages above are from the head version (::xo::db::Class was not in the 5-3 branch).
When the windows installation overwrote your old installation, it is no wonder that it breaks, since you have then a mixture of two versions. I would recommend to remove all the package files and fetch it again from maurizio's package, which is - i believe - based on the oacs-5-3 branch.

Collapse
Posted by Maurizio Martignano on
Dear Gustav,
thanks a lot for your understanding and support!

Cheers,
Maurizio

Collapse
Posted by Maurizio Martignano on
Dear Gustav these are the OpenACS packages I used/modified:

OpenACS = tarball 5.4.0
XOTcl Core = 0.56.3
General Comments = 5.2.0
ACS Events = 0.6d2
Date and Time Utilities = 5.2.2
RSS Support = 0.3
webDAV Support = 1.1b1
Notifications = 5.4.0
Categories = 1.1.2d1
File Storage = 5.4.0d5
xowiki = 0.60.3

Hope this helps,
Maurizio

Collapse
Posted by Gustaf Neumann on
Thanks Maurizio,

this configuration consists of openacs 5.4.0 + the released application packages from the oacs-5.3 branch. This should work (although a saver strategy would be openacs 5.3.2 + the 5.3 packages, and wait for the forthcoming release of dotlrn 2.4, since the 5.3 packages were tested primarily against the 5.3.2 kernel), asides of categories (see below).

Concerning your fixes you had to do:
a) rss-generation-create.sql: use the fix of don (which is apparently only in the head version)
http://cvs.openacs.org/cvs/openacs-4/packages/rss-support/sql/postgresql/rss-generation-create.sql?r1=1.12&r2=1.13

b) categories: you should use version 1.1 (from oacs-5-3); the version you are using (1.1.2d1) is somewhere between 5.3 and head (1.1.2d3).

c) time functions: ns_fmttime, ns_conn start, ns_time
It would be interesting to figure out, what's wrong here.
Vlad did something recently to fix time functions for win32:
http://naviserver.cvs.sourceforge.net/naviserver/naviserver/nsd/tcltime.c?view=log
i have not checked, how far tcltime.c from naviserver is from aolserver, but most likely, the changes are not dramatically in that area, but it might be worth a look.

-gustaf

Collapse
Posted by Maurizio Martignano on
Dear Gustav,
thanks a lot for your input.

I'll try to:
1. build a distro with your recommended configuration
2. see if I manage to solve the time function problems.

I'll let you know how it goes.

Cheers,
Maurizio

Collapse
Posted by Vlad Seryakov on
The problem with time in Win32 is with time_t type, it is 64bit integer so as we used to treat time_t as 32bit most of the software especially sprintf-like function will make the server to crash. Try using %T and even that crashes nsd.exe when i compiled using VC++.
Collapse
Posted by Maurizio Martignano on
Dear Vlad,
I'm glad you spotted the problem.
Starting from Visual C++ 2005, time_t is defined as a 64 bit integer. In order to go back to time_t defined as 32 bit integer it is enough to use the following define
_USE_32BIT_TIME_T
at compile time.

That's it and that's all.

Hope it helps,
Maurizio

Collapse
Posted by Vlad Seryakov on
I know about this macro but the problem still exists with binaries already compiled with time_t as 64bits. Si in any case all time_t references need to be casted to 64 por 32 bits explicitly. So basically all our changes are just explicit casts to 64bits.
Collapse
Posted by Maurizio Martignano on
Dear Vlad,
what you say is correct.
But I compiled ALL Aolserver sources with that macro on.
So the problem you mentioned doesn't exist in this case.

Cheers and once again thanks,
Maurizio

Collapse
Posted by Maurizio Martignano on
Dear Gustav,
I managed to prepare a distro with:
1. the configuration you suggested
2. the fime functions fixed (as explained in my reply to Vlad).

Cheers and thanks,
Maurizio

Collapse
Posted by Nima Mazloumi on
True. Server is now staring up without an error. Thank you.