Forum OpenACS Q&A: chat port
Please anyone correct me if I am wrong.
The first DRAFT are stored in the file storage
TIPS before install:
put the path in .bash_profile for the user who start the service and and nsd-postgres
compile the java server to your enviroment ../packages/chat/java/javac *.java
.bash_profile and nsd-postgres
I put the last version of ported chat module to download
Thank's for sharing
is it the file Chat module 0.1;
Has someone of you tested it on OpenACS 5.0?
Beside Java Runtime do I need anything else - like a Jabber server or so to get the chat working?
Yesterday I tested chat module ported by Rodrigo on OpenACS5.1.
It works fine with this openacs instalation and I didn't need anything else beside jre to have it work.
What have I done till now:Unhappyly I didn't not have enough time to go Bjorn work into deep but I still pretend to do this. I had nsjabber intalled but I didn't test data model provided by Bjorn yet. If you want I'll send to you the files or maybe I could try contact Bjorn directly .
What needs to bee done:
- -ported the nsjabber module to work with postgres. (still needs to be tested).
- -ported great parts of the jabber core package this includes (the data model jabber-create.sql , and most of the page-postgresql.xql files (still needs to be tested)).
- - port of jabber-notification-create.sql , jabber-notification-forum-create.sql.
I just got the chat package running. It's awesome. I was just wondering if the html version does an auto-refresh at all. I logged in twice and sent messages form one user to the other but couldn't see the messages on the other side.
The java version works well.
www.cgecon.mre.gov.br (run by Rodrigo, Felipe, myself and others) has an auto-refresh version of acs 3.3 html chat, but it's too heavy on our database. We'll stick to the java-based version by now for our e-learning tool.
"Why the HTML version can't autorefresh The HTML page cannot have a Refresh header to force a redraw of the page; if it did, the user would be at risk of losing what he or she was typing into the post form."
In the classic ACS version we uses frames to solve this problem, one for the form tags and other to display messages
$ java -classpath=[root]/packages/chat/java start 8300 $ Sun Dec 18 08:55:09 EST 2005 - Chat server listens on port 8300 $ Sun Dec 18 08:57:59 EST 2005 - Connection from Socket[addr=192.168.0.2/192.168.0.2,port=32785,localport=8300] Sun Dec 18 08:57:59 EST 2005 - Connection from Socket[addr=192.168.0.2/192.168.0.2,port=32786,localport=8300] In broadcast: message>status>approved/status>body> deixou a sala./body>message> In broadcast: message>status>approved/status>body> deixou a sala./body>message> Sun Dec 18 08:58:00 EST 2005 - Connection from Socket[addr=192.168.0.2/192.168.0.2,port=32787,localport=8300] Sun Dec 18 08:58:00 EST 2005 - Connection from Socket[addr=192.168.0.2/192.168.0.2,port=32788,localport=8300] User name: AOL_WRITER, moderator = true User name: AOL_READER, moderator = true
Be sure that the port is not blocked.
you can try to run the java sever on 8080 too.
2. You can verify if the server responds with a telnet connection
$telnet host 8300
3. Run first the chat server then the aolserver
java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at adChatApplet.init(adChatApplet.java:85) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception in thread "thread applet-adChatApplet.class" java.lang.NullPointerException at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source) at sun.plugin.AppletViewer.showAppletException(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
It's now about 3 years after I posted my initial message. We have 3 or 4 different chat packages in CVS, but the core distribution still does not have a functional chat service that will install from the start. Who's got an idea how to solve this? I am now using a shoutbox pasted into ETP.
I can't help getting a feeling this problem has been solved a few times, but never commited to the core. It worked in OACS 3.25, so what's the problem? Surely Jabber is only for uebergeeks sofar and in any case overkill for simple communication, so relating Jabber to Openacs chat seems no longer an issue. Chat is simple speak, Jabber is an al-inn communication sollution.
In order to solve this I suggest we check with the community what workarounds have been created, but never commited. I remember a few posts from universities looking into the issue. The tips & Hints blog can be used for that.
Alternatively, we dump the chat module!! .... and concentrate on getting Jabber working form a default install.
In a broader perspective, since it's likely many folks will be using IM services, enhancing /pvt home with clickable links to public systems like Gtalk, AIM, MSN, YAHOO and Skype, connected to "who's on-line" might be an alternative route.
If users indicate a prefered communication channel in their profile related to "I am online". It's not ideal, but better than a broken jabber and a broken chat package.
It would save time in coding, documenting and make it easier for newbies to connect to OpenACS!