Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#223497 - 20/08/2003 15:04 tRio Wed Front End
BenO
stranger

Registered: 20/08/2003
Posts: 3
I installed tRio version 0.1.4 and everything is working well (JRec, tRio, RioReceiver), but I can't access the tRio web page. The log says that the program is looking in <user home>/docs instead of <TRIO_HOME>/docs. I changed the <root> attribute in trio.xml to the trio home directory, and now it appears to be looking in /var/log/docs.
Does anyone know about this?

Thanks for any help you can give.

Ben

Top
#223498 - 20/08/2003 16:28 Re: tRio Wed Front End [Re: BenO]
Jerz
addict

Registered: 13/07/2002
Posts: 634
Loc: Jesusland
I installed tRio version 0.1.4 and everything is working well (JRec, tRio, RioReceiver), but I can't access the tRio web page.

Huh?

I bookmarked:
http://raid0:8090/trio-applet.htm (this is the address to my web interface)

Where "raid0" is the computer that trio is located. Open a web browser, copy the above http except replace raid0 with the name of the computer that is running trio and it should work.


Top
#223499 - 21/08/2003 03:14 Re: tRio Wed Front End [Re: BenO]
pauln
enthusiast

Registered: 03/12/2001
Posts: 332
Loc: UK
Ben,

Which script are you using to run tRio? They usually change directory to TRIO_HOME. tRio then picks up the current directory (via the java "user.dir" system property) as the default root setting.

Anyway, specifying the root attribute should have sorted it:
- it must be added to the <http> element
- what value did you specify?

Cheers
Paul
_________________________
Paul (the tRio guy)

Top
#223500 - 21/08/2003 08:34 Re: tRio Web Front End [Re: pauln]
BenO
stranger

Registered: 20/08/2003
Posts: 3
Paul,

Thanks for making such a cool program. I have really been enjoying tRio, and am looking forward to the web front-end.

I am using the plain "trio" script that came in the bin directory. Here is a snip from the trio.xml where I specified the root setting:

<http-server port="8090"/>
<http-server root="/usr/local/trio/tRio-0.1.4.alpha4/docs"/>

I am sure that this is wrong. I don't know what I'm doing.

This is from the trio log:

Defaulted http document root to: //var/log
Loading TRioPlayerLayout: universal
Loading TRioPlayerLayout: windows
ImageTranslation: byte-binary
RMI Registry created sucessfully on port 1099
binding rmi: rmi://127.0.0.1:1099/TRioServerRemote
binding rmi: rmi://localhost:1099/TRioServerRemote
Http server opening port 8090
Http server listening on port 8090

Then when I try the web page, it doesn't find it in /var/log/docs:

Got http request: GET /trio-applet.htm HTTP/1.1
java.io.FileNotFoundException: /var/log/docs/trio-applet.htm (No such file or directory)

Thanks in advance for your insight.

Ben




Top
#223501 - 21/08/2003 12:34 Re: tRio Web Front End [Re: BenO]
pauln
enthusiast

Registered: 03/12/2001
Posts: 332
Loc: UK
I've got to specify them both in the same <http-server> element. Like this:

<http-server port="8090" root="/usr/local/trio/tRio-0.1.4.alpha4/docs"/>

Cheers
Paul
_________________________
Paul (the tRio guy)

Top
#223502 - 29/08/2003 08:32 Re: tRio Web Front End [Re: pauln]
BenO
stranger

Registered: 20/08/2003
Posts: 3
Hi Paul,

I tried what you suggested, but I still get the same symptoms. I did get the web applet to work though. It seems that the "trio" script is broken. It sets the trio document root to whatever directory the script is started from. For example, if the script starts from /etc/rc.d/rc5.d (upon reboot) then that is what the trio doc root is. Strange I know, but I have recreated the problem many times.

My solution is to use the 'trio2.sh' script. It works well when started after booting. Still can't get it to fire up automatically upon reboot, though....And it stays attached to the shell window. Any tips on how to get it to run in daemon mode?
Thanks
Ben

Top
#223503 - 01/09/2003 00:55 Re: tRio Web Front End [Re: BenO]
pauln
enthusiast

Registered: 03/12/2001
Posts: 332
Loc: UK
Ben,

I'll have a go at getting it running as a deamon myself during the course of this week and let you know.

Cheers
Paul
_________________________
Paul (the tRio guy)

Top