unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

Steps for running JAXL on windows #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Download the source code and extract under C:\JAXL

1. Goto C:\JAXL\app\echobot
Edit these lines in jaxl.ini to
define('JAXL_BASE_PATH', 'C:\\jaxl');
define('JAXL_APP_BASE_PATH', 'C:\\jaxl\app\echobot');
define('JAXL_LOG_PATH', 'C:\\jaxl\jaxl.log');
define('JAXL_PID_PATH', 'C:\\jaxl\jaxl.pid');

2. create jaxl.log and jaxl.pid in c:\jaxl
( you can use notepad to create these files )

3. From the command line enter into the directory c:\jaxl\app\echobot 
Finally run echobot sample example as follows from command line

php C:\JAXL\env\jaxl.php echobot.php

--------
PS : Thanx abhinav for such a great library and also for solving my queries. 

Original issue reported on code.google.com by RajGoel...@gmail.com on 26 Sep 2010 at 10:14

GoogleCodeExporter commented 9 years ago
Thanks a lot Raj for penning down the necessary steps for running Jaxl on 
windows system....

Original comment by mailsfor...@gmail.com on 27 Sep 2010 at 7:05

GoogleCodeExporter commented 9 years ago
Hi, could you provide information on how to do this on XAMPP Windows? Thanks.

Original comment by mive...@gmail.com on 29 Sep 2010 at 8:05

GoogleCodeExporter commented 9 years ago
create a new php file . 
and add this line to it ,
exec(php c:\jaxl\env\jaxl.php echobot.php);
This will run your echobot application , see your log file for details .

Original comment by gyl.rajat on 29 Sep 2010 at 8:27

GoogleCodeExporter commented 9 years ago
Hi, I've followed the steps above, but when I run php C:\JAXL\env\jaxl.php 
echobot.php from the command line I get an error : 
Missing conf file...

Any ideas what I'm doing wrong?  thanks much

Original comment by neen.mo...@gmail.com on 25 Nov 2010 at 2:21

GoogleCodeExporter commented 9 years ago
My bad, typo in the .ini file.

But now I get "Unable to open socket to the jabber host localhost:5222

thanx for your help

Original comment by neen.mo...@gmail.com on 25 Nov 2010 at 8:44

GoogleCodeExporter commented 9 years ago
this is because you probably haven't installed any server on your localhost 
,you should try connecing to your gmail account , edit the details in the same 
.ini file 

// Connecting user credentials
    define('JAXL_USER_NAME', 'yourgmailusername');
    define('JAXL_USER_PASS', 'yourgmailpassword');

    // Connecting jabber server details
    define('JAXL_HOST_NAME', 'talk.google.com');
    define('JAXL_HOST_PORT', 5222);
    define('JAXL_HOST_DOMAIN', 'gmail.com');

now if it connects it will show you a message that you are connected and when 
someone will send you a chat message on this account it will be replied back 
with the same message . 

Original comment by RajGoel...@gmail.com on 25 Nov 2010 at 9:06

GoogleCodeExporter commented 9 years ago
confused?????????????????????/

Original comment by ajan...@gmail.com on 12 Jan 2011 at 10:13

GoogleCodeExporter commented 9 years ago
hi gyl.rajat, i tried with ur idea... bt it is working while am running the 
command in cmd. when am using browser its not working cud u plz guide me?? 
asap....urgent.......... 

Original comment by ajan...@gmail.com on 12 Jan 2011 at 10:14

GoogleCodeExporter commented 9 years ago
@ajandan 
have You followed these steps which i mentioned in previous comments ??

" create a new php file . 
and add this line to it ,
exec(php c:\jaxl\env\jaxl.php echobot.php);
This will run your echobot application , see your log file for details ."

It worked fine for me after i did this .

Can you paste the content of your log file so that we can see what is wrong . 

Original comment by RajGoel...@gmail.com on 12 Jan 2011 at 12:07

GoogleCodeExporter commented 9 years ago
hi
frm pt-2. i created a 2 notepad file each blank and saved it by jaxl.log and 
jaxl.pid
, is it right step?
,because after doing this i jumped to cmd and typed c:\jaxl\app\echobot and it 
shows me "system cannot find path".
pls tell me in detail ,wt is wrong

the ebot file is created by this steps:-

" create a new php file. 
and add this line to it ,
exec(php c:\jaxl\env\jaxl.php echobot.php);

Original comment by infinity...@gmail.com on 27 Jan 2011 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
sry for 2nd comment but i want jaxl for facebookchat to my website(still 
developing..)
can u mail me steps to build fbchat at my website...thank u

Original comment by infinity...@gmail.com on 27 Jan 2011 at 10:58

GoogleCodeExporter commented 9 years ago
i think the problem is that your file is not named "jaxl.pid" it's named 
"jaxl.pid.txt" , so just take care of that . And also you ebot file is also 
named ebot.php.txt instead of ebot.php .

Original comment by RajGoel...@gmail.com on 27 Jan 2011 at 11:05

GoogleCodeExporter commented 9 years ago
modified to jaxl.pid and ebot.php still the cmd showing:- "system cannot find 
path"

Original comment by infinity...@gmail.com on 27 Jan 2011 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago
check your path in .ini file , it should have two "/" .

Original comment by RajGoel...@gmail.com on 27 Jan 2011 at 3:05

GoogleCodeExporter commented 9 years ago
share your .ini file.

Original comment by RajGoel...@gmail.com on 27 Jan 2011 at 3:06

GoogleCodeExporter commented 9 years ago
but i did it as mentioned above with  2 "\\"

Original comment by infinity...@gmail.com on 28 Jan 2011 at 8:01

Attachments:

GoogleCodeExporter commented 9 years ago
everything looks fine in your ini file . is there anything in your log file , 
share your log file . 

Original comment by RajGoel...@gmail.com on 28 Jan 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Hi Infinity,

Your jaxl.ini looks good in first look. However i would recommend you to kindly 
download the latest version 
(https://github.com/abhinavsingh/JAXL/archives/master) of Jaxl library which is 
far more stable and robust.

Also kindly share your jaxl.log so that we can have a closer look to the 
problem with your environment.

Original comment by mailsfor...@gmail.com on 28 Jan 2011 at 11:47

GoogleCodeExporter commented 9 years ago
okay ill try latest version..,here is my jaxl.log file but it is of 0kb

Original comment by infinity...@gmail.com on 28 Jan 2011 at 3:31

Attachments:

GoogleCodeExporter commented 9 years ago
okay i have downloaded latest version..,
now pls tell me how to use it for facebookchat,bcas the new version does not 
have any .exe file..and is it necessary to have a PHP support software or 
anything... 
This is a guide i found on net
Facebook chat connect with X-FACEBOOK-PLATFORM using 
Jaxl:-http://abhinavsingh.com/blog/2010/08/facebook-chat-connect-with-x-facebook
-platform-using-jaxl-2-0/

help me/...

Original comment by infinity...@gmail.com on 28 Jan 2011 at 3:42

GoogleCodeExporter commented 9 years ago
Hi, i have one problem with this, i'm working jaxl on wamp server, the log file 
give me this trace

[1:3584:0] 2011-03-16 15:12:22 - [[XMPP]] 
Socket opened to the jabber host talk.google.com:5222 ...

[1:3584:0] 2011-03-16 15:12:22 - [[XMPPSend]] 177
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" 
xmlns="jabber:client" to="gmail.com" xml:lang="en" 
xmlns:xml="http://www.w3.org/XML/1998/namespace">

[1:3584:1] 2011-03-16 15:12:22 - [[XMPPGet]] 4096
<stream:stream from="gmail.com" id="2F0148C3F7FB7A2E" version="1.0" 
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">

[1:3584:1] 2011-03-16 15:12:22 - [[XMPPGet]] 4096
<stream:features><starttls 
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms 
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></
mechanisms></stream:features>

[1:3584:1] 2011-03-16 15:12:22 - [[XMPPGet]] OpenSSL extension required to 
proceed with TLS encryption

I have active the PHP library php_openscl in the php.ini file.

Can you help me please!

Tnks!

Original comment by jreyne...@gmail.com on 16 Mar 2011 at 3:16

GoogleCodeExporter commented 9 years ago
see if you can see openssl when you type:
"php -m" on windows cmd

Original comment by mailsfor...@gmail.com on 16 Mar 2011 at 10:07

GoogleCodeExporter commented 9 years ago
I didn't find jaxl.php in env dir? Why not?

Original comment by leh...@gmail.com on 22 Mar 2011 at 8:02

GoogleCodeExporter commented 9 years ago
As of Jaxl 2.1.2-rc1 library deprecates use of jaxl.php. Simply run by 
executing:
"/path/to/php /path/to/echobot.php"

Original comment by mailsfor...@gmail.com on 22 Mar 2011 at 8:34

GoogleCodeExporter commented 9 years ago
I'm receiving endless messages like these:
[[JAXLPlugin]] Executing hook jaxl_get_xml for uid 1

Right after:
[[XMPPGet]] 4096 challenge 
xmlns="urn:ietf:params:xml:ns:xmpp-sasl">...</challenge> 

Jaxl 2.1.2-rc1 / windows 7

Original comment by justR...@gmail.com on 19 Jan 2012 at 6:22

GoogleCodeExporter commented 9 years ago
I fixed my problem with the patch from here: 
http://code.google.com/p/jaxl/issues/detail?id=50

Why is it not merged in?

Original comment by justR...@gmail.com on 19 Jan 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Hello 

I create file jaxl.log, jaxl.pid, ebot.php in Jaxl directory already but when i 
run file echobot.php in command line i get result as picture. And when i run 
file boshchat.php when i click jaxl.v2 i get only message as 

Warning: touch() [function.touch]: Unable to create file /var/log/jaxl.log 
because No such file or directory in C:\wamp\www\jaxl.v2\core\jaxl.class.php on 
line 692

Fatal error: Uncaught exception 'JAXLException' with message 'Log file 
/var/log/jaxl.log doesn't exists' in 
C:\wamp\www\jaxl.v2\core\jaxl.class.php:692 Stack trace: #0 
C:\wamp\www\jaxl.v2\app\boshchat.php(25): JAXL->__construct(Array) #1 {main} 
thrown in C:\wamp\www\jaxl.v2\core\jaxl.class.php on line 692

pleas help me to fix it.

Original comment by sreypov....@mapring.com on 18 Sep 2012 at 5:08

Attachments:

GoogleCodeExporter commented 9 years ago
Hello Ahbi

Could you detail me with point 3. I am use window 7 and wamp server 2.0 and 
jaxl.v2 . how can i run echobot sample example as follows from command line ? I 
know am so fool? but i check all command and do everything the same it but i 
still can run it.  

Original comment by sreypoe...@gmail.com on 19 Sep 2012 at 3:41