[rabbitmq-discuss] twiddling with rabbitmq-http2 on windows
Juhani Ränkimies
juhani at juranki.com
Wed Jul 8 17:31:00 BST 2009
Hi,
After some exploration I got rabbitmq-http2 to work on Windows XP.
This is roughly what I did (countless dead ends omitted):
1) compile rabbitmq-http2 and erlang-rfc4627 using make module
(attached EMakefile has also instructions for erlang-client, you
should delete or comment them)
2) create folder ...\rabbitmq-http2-default\server_root\logs
3) in ...\rabbitmq-http2-default\server_root\logs\ copy http.conf.in
to http.conf and replace @SERVER_ROOT@ with real path (forward
slashes)
4) create script that sets RABBITMQ_SERVER_START_ARGS and calls
rabbitmq-server.bat (the attached run.bat, check the paths)
5) run.bat
The examples work with recent versions of Chrome, Safari and Firefox.
But when I enable firebug, Firefox starts to behave strangely.
Sometimes messages are received only in combination with send.
Sometimes only sending works.
And then sending stops to work and errors are printed on page
JsonRPC error:
Service: "/rpc/38E41B75EEED17CDDC28D8CAA0CC1EF8"
Method: "cast"
Params: ["basic.publish",[1,"canvasPainter","",false,false],"{\"event\":\"drawAction\",\"args\":{\"startPos\":{\"x\":89,\"y\":175},\"curPos\":{\"x\":92,\"y\":241},\"drawColor\":\"rgb(0,0,0)\",\"lineWidth\":10,\"actionNumber\":2}}",[null,null,null,null,null,null,null,null,null,null,null,null,null,null]]
Response: {"version":"1.1","id":46,"error":{"name":"JSONRPCError","code":404,"message":"Service
not found","error":"38E41B75EEED17CDDC28D8CAA0CC1EF8"}}
If I disable FB console and net tabs, and refresh, messages flow again.
And continue to do so even if console and net are enabled again.
There are no error messages on FB console.
br,
-juhani
-------------- next part --------------
set SRC=C:\src\rabbit
set SERVER_ROOT=c:/src/rabbit/rabbitmq-http2-default/server_root
set ERL_HOME=c:\Program Files\erl5.6.1
set RABBIT_SBIN=%ERL_HOME%\lib\rabbitmq_server-1.6.0\sbin
set JSON=%SRC%\erlang-rfc4627-default\ebin
set CLIENT=%SRC%\rabbitmq-erlang-client-default\ebin
set HTTP2=%SRC%\rabbitmq-http2-default\ebin
set PATHS=-pa %JSON% -pa %HTTP2%
rem -pa %CLIENT%
set RABBITMQ_SERVER_START_ARGS= %PATHS% ^
-rabbit rabbit_http_conf \""%SERVER_ROOT%/conf/httpd.conf"\" ^
extra_startup_steps [{\"HTTP-JSON-listeners\",rabbit_http,kickstart,[]}]
"%RABBIT_SBIN%\rabbitmq-server.bat"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EMakefile
Type: application/octet-stream
Size: 556 bytes
Desc: not available
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090708/8203c331/attachment.obj
More information about the rabbitmq-discuss
mailing list