Forum OpenACS Q&A: Response to nsjava status

Collapse
20: Response to nsjava status (response to 1)
Posted by Dan Wickstrom on
I tried integrating webdav into AOLserver/nsjava and it basically works. To do it, I copied the AOLserver directories into the jigsaw install directory, and edited the classpath to include the jigsaw jar files. I then started AOLserver and opened an nscp window and started jigsaw as follows:


1021 nsadmin@localhost:~/webdav >telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
login: nsadmin
Password: *****
 
Welcome to nsjava running at /home/nsadmin/jigsaw/Jigsaw/bin/nsd (pid 8849)
AOLserver/3.2+ad12 (aolserver3_2_ad12) for linux built on Jan 30 2001 at 20:36:35
CVS Tag: $Name: aolserver3_2 $
nsjava:nscp 1>  set args [nsjava::new {String[]} 2 {-root /home/nsadmin/jigsaw/Jigsaw/Jigsaw}]
nsjava0x1e5
nsjava:nscp 2> nsjava::call org.w3c.jigsaw.Main {main String[]} $args
 
nsjava:nscp 3>         

Which resulted in the following output in the log file:

[20/Aug/2002:23:40:22][8849.8201][-nssock-] Notice: nssock: listening on http://localhost:8000 (127.0.0.1:8000)
[20/Aug/2002:23:40:22][8849.8201][-nssock-] Notice: nssock: accepting connections
[20/Aug/2002:23:40:25][8849.9226][-nscp:1-] Notice: nscp: connect: 127.0.0.1
[20/Aug/2002:23:40:28][8849.9226][-nscp:1-] Notice: nscp: logged in: 'nsadmin'
[20/Aug/2002:23:40:28][8849.9226][-nscp:1-] Notice: registerTclJavaFunctions: registering commands
[20/Aug/2002:23:40:41][8849.9226][-nscp:1-] Debug: NsJava_GetThreadEnv: attach to JVM
[20/Aug/2002:23:40:41][8849.9226][-nscp:1-] Debug: NsJava_GetThreadEnv: attach to JVM worked
[20/Aug/2002:23:40:41][8849.9226][-nscp:1-] Debug: NsJava_GetThreadEnv: save env 140526272 tid = 9226
loading properties from: /home/nsadmin/jigsaw/Jigsaw/Jigsaw/config/server.props
Jigsaw[2.1.2]: serving at http://localhost.localdomain:8001/
*** Warning : JigAdmin[2.1.2]: no logger specified, not logging.
JigAdmin[2.1.2]: serving at http://localhost.localdomain:8009/                                                       

So at this point I basically have a webserver running inside a webserver. I'm able to get pages from aolserver using port 8000, and I'm able to get pages from 8001 using jigsaw.

I then proceeded to download WebDAV client called DAV Explorer, and voila, I was able to browse files under the jigsaw pageroot. This would need some additional work to make it useful, but using this approach, your probably 95% way to having webdav support in AOLserver without really even doing anything.