IBM MobileFirst server preview -


i develop application on mobilefirst v7. calls http adapter , returns data. can run in preview on eclipse. deploy mobilefirst server (using liberty profile) , run in preview, when call adapter raises error log in messages.log is:

[4/28/15 23:34:16:681 edt] 00000213 org.apache.wink.server.internal.requestprocessor 

i got following error occurred during invocation of handlers chain:

webapplicationexception (404 - not found) message 'null' while processing post request sent http://127.0.0.1:9080/testapp/authorization/v1/clients/preview

this server.xml

<server description="new server">     <featuremanager>         <feature>jsp-2.2</feature>         <feature>ssl-1.0</feature>         <feature>servlet-3.0</feature>         <feature>jdbc-4.0</feature>         <feature>appsecurity-1.0</feature>         <feature>jndi-1.0</feature>         <feature>ssl-1.0</feature>         <feature>servlet-3.0</feature>         <feature>jdbc-4.0</feature>         <feature>jndi-1.0</feature>         <feature>restconnector-1.0</feature>         <feature>appsecurity-1.0</feature>         <feature>ssl-1.0</feature>         <feature>servlet-3.0</feature>         <feature>jdbc-4.0</feature>         <feature>jndi-1.0</feature>     </featuremanager>     <httpendpoint id="defaulthttpendpoint"                   host="*"                   httpport="9080"                   httpsport="9443" >         <tcpoptions soreuseaddr="true"/>     </httpendpoint>     <basicregistry>         <user name="worklightrestuser" password="bc7cgrb9dcuf"/>         <user name="admin" password="admin"/>         <user name="demo" password="demo"/>         <user name="appcenteradmin" password="admin"/>         <group name="appcentergroup">             <member name="demo"/>             <member name="appcenteradmin"/>         </group>     </basicregistry>      <application id="appcenterconsole" name="appcenterconsole" location="appcenterconsole.war" type="war">         <application-bnd>             <security-role name="appcenteradmin">                 <group name="appcentergroup"/>             </security-role>         </application-bnd>     </application>      <application id="applicationcenter" name="applicationcenter" location="applicationcenter.war" type="war">         <application-bnd>             <security-role name="appcenteradmin">                 <group name="appcentergroup"/>             </security-role>         </application-bnd>         <classloader delegation="parentlast">             <commonlibrary>                 <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.1.jar"/>             </commonlibrary>         </classloader>     </application>      <jndientry jndiname="android.aapt.dir" value='"/opt/ibm/mobilefirst_platform_server/applicationcenter/tools/android-sdk"'/>      <library id="db2lib">         <fileset dir="${shared.resource.dir}/db2" includes="*.jar"/>     </library>      <datasource jndiname="jdbc/appcenterds" transactional="false">         <jdbcdriver libraryref="db2lib"/>         <properties.db2.jcc databasename="appcntr" servername="127.0.0.1" portnumber="50001" user="db2inst1" password="{xor}lz4slchvlts="/>     </datasource>      <keystore id="defaultkeystore" password="worklight"/>      <administrator-role>         <user>worklightrestuser</user>     </administrator-role>     <jndientry jndiname="ibm.worklight.admin.jmx.host" value="localhost"/>     <jndientry jndiname="ibm.worklight.admin.jmx.port" value="9443"/>     <jndientry jndiname="ibm.worklight.admin.jmx.user" value="worklightrestuser"/>     <jndientry jndiname="ibm.worklight.admin.jmx.pwd" value="bc7cgrb9dcuf"/>     <jndientry jndiname="ibm.worklight.topology.platform" value="liberty"/>     <jndientry jndiname="ibm.worklight.topology.clustermode" value="standalone"/>     <webcontainer invokeflushafterservice="false" deferservletload="false"/>     <executor id="default" name="largethreadpool"               corethreads="200" maxthreads="400" keepalive="60s"               stealpolicy="strict" rejectedworkpolicy="caller_runs"/>      <application id="worklightadmin" name="worklightadmin" location="worklightadmin.war" type="war">         <application-bnd>             <security-role name="worklightadmin">                 <user name="admin"/>             </security-role>             <security-role name="worklightdeployer">             </security-role>             <security-role name="worklightmonitor">             </security-role>             <security-role name="worklightoperator">             </security-role>         </application-bnd>         <classloader delegation="parentlast">             <commonlibrary id="worklightlib_worklightadmin">                 <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.1.jar"/>             </commonlibrary>         </classloader>     </application>      <library id="worklightadmin/db2lib">         <fileset dir="${shared.resource.dir}/worklightadmin/db2" includes="db2jcc4.jar,db2jcc_license_cu.jar"/>     </library>      <datasource jndiname="worklightadmin/jdbc/worklightadminds" transactional="false">         <jdbcdriver libraryref="worklightadmin/db2lib"/>         <properties.db2.jcc databasename="wladmin" servername="127.0.0.1" portnumber="50001" user="db2inst1" password="{xor}lz4slchvlts=" currentschema="wladmsc"/>     </datasource>      <application id="worklightconsole" name="worklightconsole" location="worklightconsole.war" type="war">         <application-bnd>             <security-role name="worklightadmin">                 <user name="admin"/>             </security-role>             <security-role name="worklightdeployer">             </security-role>             <security-role name="worklightmonitor">             </security-role>             <security-role name="worklightoperator">             </security-role>         </application-bnd>     </application>      <jndientry jndiname="worklightconsole/ibm.worklight.admin.endpoint" value='"*://*:*/worklightadmin"'/>      <application id="testapp" name="testapp" location="testapp.war" type="war">         <classloader delegation="parentlast">             <privatelibrary id="worklightlib_testapp">                 <fileset dir="${shared.resource.dir}/testapp/lib" includes="worklight-jee-library.jar"/>                 <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.1.jar"/>             </privatelibrary>         </classloader>     </application>      <jndientry jndiname="testapp/publicworklightprotocol" value='"http"'/>     <jndientry jndiname="testapp/publicworklightport" value='"9080"'/>      <library id="testapp/db2lib">         <fileset dir="${shared.resource.dir}/testapp/db2" includes="*.jar"/>     </library>      <datasource jndiname="testapp/jdbc/worklightds" transactional="false">         <jdbcdriver libraryref="testapp/db2lib"/>         <properties.db2.jcc databasename="wrklght" servername="127.0.0.1" portnumber="50001" user="db2inst1" password="{xor}lz4slchvlts=" currentschema="wrkschm"/>     </datasource>      <datasource jndiname="testapp/jdbc/worklightreportsds" transactional="false">         <jdbcdriver libraryref="testapp/db2lib"/>         <properties.db2.jcc databasename="wlreport" servername="127.0.0.1" portnumber="50001" user="db2inst1" password="{xor}lz4slchvlts=" currentschema="wlreschm"/>     </datasource>  </server> 

preview not meant work in production environment, preview button still there in gm release of mfpf 7.0.

i think might have hit apar pi37266:

mfp operations console: preview of common resources button must hidden in production environment.

so, should update installation latest available 7.0 ifix, preview button no longer available. latest ifix, need login ibm fix central website , search "mobilefirst platform" latest.

if still see preview button after upgrading latest ifix, try force-clear browser's cache. can verify inspecting network view > preview tab in chrome's devtools. should show list of properties request/response, 1 of them being "developmentmode:true/false"). should set false.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -