felixlu / jap

Automatically exported from code.google.com/p/jap
0 stars 0 forks source link

Jap Local Node Issue #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
when i run JAP_WS_LOCAL.bat there is an error that says:

C:\Users\BIG_BUG\Desktop\JAP_WS_LOCAL_NODE-2.0.0-SNAPSHOT>node JAP_WS_LOCAL.js
Warning: Native modules not compiled.  XOR performance will be degraded.
Warning: Native modules not compiled.  UTF-8 validation disabled.

module.js:485
    throw err;
          ^
SyntaxError: C:\Users\BIG_BUG\Desktop\JAP_WS_LOCAL_NODE-2.0.0-SNAPSHOT\JAP_WS_LO
CAL.json: Unexpected token m
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:482:27)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\BIG_BUG\Desktop\JAP_WS_LOCAL_NODE-2.0.0-SNAP
SHOT\JAP_WS_LOCAL.js:14:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

C:\Users\BIG_BUG\Desktop\JAP_WS_LOCAL_NODE-2.0.0-SNAPSHOT>pause
Press any key to continue . . .

i installed node,websockets-node

plz help

Original issue reported on code.google.com by shayan.l...@gmail.com on 16 Apr 2013 at 10:02

GoogleCodeExporter commented 8 years ago
JAP can not parse JAP_WS_LOCAL.json (at 14:21). Try reconfiguring 
JAP_WS_LOCAL.json.
Can you attach your JAP_WS_LOCAL.json?

Original comment by jeroen.v...@gmail.com on 17 Apr 2013 at 5:29

GoogleCodeExporter commented 8 years ago
Thanks for your reply, i solved the problem

i just deleted this line "module.exports = " from the beginning of the config 
file.

but in my country all ports are closed unless port 80, how can i configure jap 
to use port 80 to connect to remote server?

Original comment by shayan.l...@gmail.com on 18 Apr 2013 at 6:12

GoogleCodeExporter commented 8 years ago
You have to configure JAP:
- REMOTE_PROXY_SERVERS.TYPE = HTTP
- REMOTE_PROXY_SERVERS.PORT = 80

PS:
- JAP_PYTHON has a UI for JAP.
- The WIKI is not up to date with 2.0-SNAPSHOT.

Original comment by jeroen.v...@gmail.com on 18 Apr 2013 at 2:26