Error from orbit example - pages

19 views
Skip to first unread message

Joh Journeyer J.

unread,
Jan 16, 2015, 12:43:49 AM1/16/15
to kepler-...@googlegroups.com
Hi,

I cannot execute the example "pages" of orbit.
But I can test the example "todo".

I launched web server and orbit as shown below under the example directory.

# wsapi -- --op

The URL below works!

http://192.168.xxx.yyy:8080/todo/todo.ws

But the URL below gives only error message:

http://192.168.xxx.yyy:8080/pages/index.op

The error message is shown below:
Could you provide some clue why this error occurs?

/usr/local/share/lua/5.1/orbit/pages.lua:157: /usr/local/share/lua/5.1/orbit/pages.lua:80: [string " ..."]:4: cannot open /home/www/orbit/samples/doc: No such file or directory in
lfs = require "lfs"
mods = {}
for file in lfs.dir(web.doc_root .. "/doc") do
local attr = lfs.attributes (web.doc_root .. "/doc/"..file)
if attr.mode == "directory" and file ~= "." and file ~= ".." then
table.insert(mods, file)
end
end
if #mods == 0 then mods[1] = "(None)" end
table.sort(mods)
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/orbit/pages.lua:80: in function 'selector'
[string "1"]:57: in function 'template_func'
[string "1"]:259: in function <[string "1"]:256>
(tail call): ?
stack traceback:
/usr/local/share/lua/5.1/orbit/pages.lua:153: in function 'err'
/usr/local/share/lua/5.1/coxpcall.lua:35: in function
(tail call): ?
(tail call): ?
/usr/local/share/lua/5.1/orbit/pages.lua:148: in function 'fill'
/usr/local/share/lua/5.1/orbit/pages.lua:169: in function
(tail call): ?
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/orbit/pages.lua:157: in function 'fill'
/usr/local/share/lua/5.1/orbit/pages.lua:169: in function
(tail call): ?
stack traceback:
/usr/local/share/lua/5.1/orbit.lua:543: in function 'err'
/usr/local/share/lua/5.1/coxpcall.lua:35: in function
(tail call): ?
(tail call): ?
/usr/local/share/lua/5.1/orbit.lua:541: in function
(tail call): ?
(tail call): ?

Reply all
Reply to author
Forward
0 new messages