ibm mobilefirst - No Worklight 6.2 Runtime in Console -


i running strange behaviour wl 6.2. wl console not listing of installed apps/wars (runtimes) in aix environment. have setup worklight 6.2 on 2 different platforms:

platform: linux (ubuntu) websphere nd 8.5.5.1 db2 v9.7  platform: aix websphere nd 8.5.5.1 oracle 11g 

both platforms have global security enabled simple file based registry (using federated repository). both configured using following steps in same way. in ubuntu, can see installed runtime (worklightstarter war). in aix, see horrid message in wl console: "server error. contact server administrator"

i used worklightstarter app test ubuntu , aix installations. in specific, used worklightstarter app no js frameworks. imported wl 6.2 studio build war file deployment.

then followed simplified installation/configuration steps:

  1. created databases manually, a) wladmin b) wrklght c) wlreports. followed instructions listed under "create db2 databases manually" , "create oracle databases manually" sections of instructions above configure databases on both ubuntu(linux) , aix environments:

  2. configured global security such admin console access secure. file based registry federated repository used.

  3. installed wl 6.2 server binaries command line (using installation manager 1.6.x installc command).

    ./installc -acceptlicense -log /tmp/im_install.log

  4. logged in admin console , created "worklightcluster" cluster.

  5. used ant task deploy a) worklight console + admin service b) worklightstarter war cluster created in step 4.

    following command successful:

    /opt/ibm/worklight/62/shortcuts/ant -f /opt/ibm/worklight/62/worklightserver/configuration-samples/configure-wasnd-cluster-oracle_custom.xml databases

    /opt/ibm/worklight/62/shortcuts/ant -f /opt/ibm/worklight/62/worklightserver/configuration-samples/configure-wasnd-cluster-oracle_custom.xml admdatabases

    /opt/ibm/worklight/62/shortcuts/ant -f /opt/ibm/worklight/62/worklightserver/configuration-samples/configure-wasnd-cluster-oracle_custom.xml adminstall

    /opt/ibm/worklight/62/shortcuts/ant -f /opt/ibm/worklight//62/worklightserver/configuration-samples/configure-wasnd-cluster-oracle_custom.xml install

in aix, far worked after installation. able start wars (worklight console , admin service, , worklight starter) in cluster. no startup errors reported in systemout.log. logging aix console shows "server error. contact server administrator". looked @ chrome console log , showing 500 internal server error when wl console invokes rest uris:

/worklightconsole/services/management-apis/1.0/loginaudit?_=1408335538793 /worklightconsole/services/management-apis/1.0/runtimes/?_=1408335559099 

so in order debug further in aix, went ahead , turned on traces in nd worklight server. since didn't know trace specification turn on worklight war's spit out more message, had turn websphere traces on blindly:

*=info: com.ibm.ws.*=all: com.ibm.worklight.*=all: com.ibm.websphere.*=all 

this showed component in worklight (or perhaps was) failing. can't figure component or why it's happening.

[8/16/14 4:32:50:106 edt] 000000c6 serviceproxy  > serviceproxy getstatuscodefromexception entry java.net.connectexception: connection timed out [8/16/14 4:32:50:106 edt] 000000f0 srtservletres 1 com.ibm.ws.webcontainer.srt.srtservletresponse getrequestrequest=com.ibm.ws.webcontainer.srt.srtservletrequest@62121da3 [com.ibm.ws.webcontainer.srt.srtservletresponse@c3342c0f] [8/16/14 4:32:50:106 edt] 000000c6 serviceproxy  < serviceproxy getstatuscodefromexception return [8/16/14 4:32:50:106 edt] 000000f0 srtservletreq 1 com.ibm.ws.webcontainer.srt.srtservletrequest getwebappdispatchercontext [8/16/14 4:32:50:106 edt] 000000c6 srtservletres > com.ibm.ws.webcontainer.srt.srtservletresponse setstatus entry  status --> 500 [com.ibm.ws.webcontainer.srt.srtservletresponse@f3808481] [8/16/14 4:32:50:106 edt] 000000f0 srtservletres 1 com.ibm.ws.webcontainer.srt.srtservletresponse iscommitted false [com.ibm.ws.webcontainer.srt.srtservletresponse@c3342c0f] [8/16/14 4:32:50:106 edt] 000000c6 srtservletres 1 com.ibm.ws.webcontainer.srt.srtservletresponse getrequest request=com.ibm.ws.webcontainer.srt.srtservletrequest@f4847ba7 [com.ibm.ws.webcontainer.srt.srtservletresponse@f3808481] [8/16/14 4:32:50:106 edt] 000000f0 httpresponsem 1   setstatuscode(sc): status code: 500 [8/16/14 4:32:50:106 edt] 000000c6 srtservletreq 1 com.ibm.ws.webcontainer.srt.srtservletrequest getwebappdispatchercontext [8/16/14 4:32:50:106 edt] 000000f0 srtservletres < com.ibm.ws.webcontainer.srt.srtservletresponse setstatus return [8/16/14 4:32:50:106 edt] 000000c6 srtservletres 1 com.ibm.ws.webcontainer.srt.srtservletresponse iscommitted false [com.ibm.ws.webcontainer.srt.srtservletresponse@f3808481] [8/16/14 4:32:50:106 edt] 000000f0 srtservletres > com.ibm.ws.webcontainer.srt.srtservletresponse addheader entry name --> com.worklight.admin.error value --> connection timed out [com.ibm.ws.webcontainer.srt.srtservletresponse@c3342c0f] [8/16/14 4:32:50:106 edt] 000000c6 httpresponsem 1   setstatuscode(sc): status code: 500 [8/16/14 4:32:50:106 edt] 000000f0 srtservletres 1 com.ibm.ws.webcontainer.srt.srtservletresponse getrequest request=com.ibm.ws.webcontainer.srt.srtservletrequest@62121da3 [com.ibm.ws.webcontainer.srt.srtservletresponse@c3342c0f] 

any in further debugging issue appreciated.

the first message "serviceproxy > serviceproxy getstatuscodefromexception entry java.net.connectexception: connection timed out" indicates service proxy between worklight console , worklight admin services not work. following messages might originated this. might need set jndi property ibm.worklight.admin.endpoint, or have set wrongly. should set https://someserver.net:9080/worklightadmin (please replace protocol, server , port according needs).

two hints:

  1. how find correct value ibm.worklight.admin.endpoint? in browser, enter, say:

    https://myserver.net:9080/worklightadmin/userandconfiginfo

    (please modify protocol, host , port). if asks user name , password , shows json string, end point address excluding 'userandconfiginfo' (that in example: https://myserver.net:9080/worklightadmin). if returns connection time out or other error, entered wrong value , need verify server configuration find correct value.

  2. what service proxy? browser sends rest requests first worklight console web application, , redirects them worklight admin services web application. there technical reasons this, improves authentication behavior , error messages.

    the service proxy can disabled setting jndi property ibm.worklight.admin.ui.cors false. in case, browser sends rest requests directly worklight admin services. still need set ibm.worklight.admin.endpoint correctly, otherwise still connection time out.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -