ibm mobilefirst - Liberty Profile Server Datasource Trouble -
i'm configuring liberty server work mobile first platform 7.0, when i'm trying access worklight console, shows me message "server error. contact server administrator." , runtime environments area empty. looking information in messages.log see datasource wrong don't know configured modify it. have trace , datasource portion @ server.xml:
[1/15/16 16:10:00:874 bot] 000000bc com.ibm.worklight.dataaccess.datastore.datastoreutil getworklightdatasourceproperties read properties file. allproperties: {ibm.worklight.admin.db.jndi.name=java:comp/env/jdbc/worklightadminds} [1/15/16 16:10:00:874 bot] 000000bc com.ibm.worklight.dataaccess.datastore.datastoreutil dereferenceproperties handling propname=ibm.worklight.admin.db.jndi.name propvalue=java:comp/env/jdbc/worklightadminds [1/15/16 16:10:00:874 bot] 000000bc com.ibm.worklight.dataaccess.datastore.datastoreutil dereferenceproperties handling propname=ibm.worklight.admin.db.openjpa.log propvalue= [1/15/16 16:10:00:874 bot] 000000bc com.ibm.worklight.dataaccess.datastore.datastoreutil dereferenceproperties handling propname=ibm.worklight.admin.db.type propvalue= [1/15/16 16:10:00:890 bot] 000000bc com.ibm.worklight.dataaccess.datastore.datastoreutil w expected object of type datasource, found: null [1/15/16 16:10:00:890 bot] 000000bc org.apache.wink.server.internal.requestprocessor e unhandled exception occurred propagated container. [1/15/16 16:10:00:890 bot] 000000bc com.ibm.ws.webcontainer.util.applicationerrorutils e srve0777e: exception thrown application class 'com.ibm.worklight.dataaccess.datastore.datastoreutil.getdatastore:403' java.lang.runtimeexception: unable open data base. datastorefactory returned null unknown reason. context path '/worklightadmin'. @ com.ibm.worklight.dataaccess.datastore.datastoreutil.getdatastore(datastoreutil.java:403) @ com.ibm.worklight.admin.services.baseservice.getdatastore(baseservice.java:240) @ com.ibm.worklight.admin.services.baseservice.createentitymanager(baseservice.java:261) @ com.ibm.worklight.admin.services.baseservice.auditstart(baseservice.java:713) @ com.ibm.worklight.admin.services.baseservice.auditstart(baseservice.java:684) @ com.ibm.worklight.admin.services.baseservice.auditstart(baseservice.java:661) @ com.ibm.worklight.admin.services.managementservice.loginaudit(managementservice.java:132) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:88) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:55) @ java.lang.reflect.method.invoke(method.java:613) @ org.apache.wink.server.internal.handlers.invokemethodhandler.handlerequest(invokemethodhandler.java:63) @ org.apache.wink.server.handlers.abstracthandler.handlerequest(abstracthandler.java:33) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.createinvocationparametershandler.handlerequest(createinvocationparametershandler.java:54) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.handlers.abstracthandler.handlerequest(abstracthandler.java:34) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.findresourcemethodhandler.handlesubresourcemethod(findresourcemethodhandler.java:183) @ org.apache.wink.server.internal.handlers.findresourcemethodhandler.handlerequest(findresourcemethodhandler.java:110) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.findrootresourcehandler.handlerequest(findrootresourcehandler.java:95) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.headmethodhandler.handlerequest(headmethodhandler.java:53) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.optionsmethodhandler.handlerequest(optionsmethodhandler.java:46) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.handlers.searchresulthandler.handlerequest(searchresulthandler.java:33) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.log.resourceinvocation.handlerequest(resourceinvocation.java:92) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.internal.log.requests.handlerequest(requests.java:76) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:26) @ org.apache.wink.server.handlers.requesthandlerschain.handle(requesthandlerschain.java:22) @ org.apache.wink.server.handlers.abstracthandlerschain.dochain(abstracthandlerschain.java:67) @ org.apache.wink.server.handlers.abstracthandlerschain.run(abstracthandlerschain.java:52) @ org.apache.wink.server.internal.requestprocessor.handlerequestwithoutfaultbarrier(requestprocessor.java:207) @ org.apache.wink.server.internal.requestprocessor.handlerequest(requestprocessor.java:154) @ org.apache.wink.server.internal.servlet.restservlet.service(restservlet.java:133) @ com.ibm.worklight.admin.services.restservlet.service(restservlet.java:43) @ javax.servlet.http.httpservlet.service(httpservlet.java:668) @ com.ibm.ws.webcontainer.servlet.servletwrapper.service(servletwrapper.java:1275) @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:766) @ com.ibm.ws.webcontainer.servlet.servletwrapper.handlerequest(servletwrapper.java:472) @ com.ibm.ws.webcontainer.filter.webappfilterchain.invoketarget(webappfilterchain.java:135) @ com.ibm.ws.webcontainer.filter.webappfilterchain.dofilter(webappfilterchain.java:89) @ com.ibm.worklight.admin.services.restfilter.dofilter(restfilter.java:61) @ com.ibm.ws.webcontainer.filter.filterinstancewrapper.dofilter(filterinstancewrapper.java:192) @ com.ibm.ws.webcontainer.filter.webappfilterchain.dofilter(webappfilterchain.java:86) @ com.ibm.worklight.admin.common.filter.hstsfilter.dofilter(hstsfilter.java:110) @ com.ibm.ws.webcontainer.filter.filterinstancewrapper.dofilter(filterinstancewrapper.java:192) @ com.ibm.ws.webcontainer.filter.webappfilterchain.dofilter(webappfilterchain.java:86) @ com.ibm.ws.webcontainer.filter.webappfiltermanager.dofilter(webappfiltermanager.java:975) @ com.ibm.ws.webcontainer.filter.webappfiltermanager.invokefilters(webappfiltermanager.java:1097) @ com.ibm.ws.webcontainer.servlet.cacheservletwrapper.handlerequest(cacheservletwrapper.java:81) @ com.ibm.ws.webcontainer.webcontainer.handlerequest(webcontainer.java:912) @ com.ibm.ws.webcontainer.osgi.dynamicvirtualhost$2.run(dynamicvirtualhost.java:262) @ com.ibm.ws.http.dispatcher.internal.channel.httpdispatcherlink$taskwrapper.run(httpdispatcherlink.java:938) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1156) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:626) @ java.lang.thread.run(thread.java:780)
datasource , worklightadmin application configuration @ server.xml
<?xml version="1.0" encoding="utf-8"?> <server description="new server"> <!-- enable features --> <featuremanager> <feature>jsp-2.2</feature> <!-- begin of features added ibm worklight installer. --> <!-- following lines removed when application uninstalled --> <feature>jdbc-4.0</feature> <feature>jpa-2.0</feature> <feature>appsecurity-2.0</feature> <feature>servlet-3.0</feature> <!-- end of features added ibm worklight installer. --> </featuremanager> <!-- access server remote client add host attribute following element, e.g. host="*" --> <httpendpoint id="defaulthttpendpoint" httpport="9080" httpsport="9443" host="*"> <!-- option soreuseaddr added ibm worklight installer. --> <tcpoptions soreuseaddr="true"/> </httpendpoint> <basicregistry> <!-- worklight user. [added ibm worklight installation manager context root '/applicationcenter'] --> <user name="demo" password="demo"/> <!-- worklight users. --> <user name="appcenteradmin" password="admin"/> <user name="wasadmin" password="wasadmin"/> <!-- ibm application center group. [added ibm worklight installation manager context root '/applicationcenter'] --> <group name="appcentergroup"> <!-- ibm application center group member. [added ibm worklight installation manager context root '/applicationcenter'] --> <member name="demo"/> <!-- ibm application center group members. --> <member name="wasadmin"/> <member name="appcenteradmin"/> </group> </basicregistry> <!-- begin of configuration added ibm worklight installer. --> <!-- declare ibm application center console application. --> <application id="appcenterconsole" name="appcenterconsole" location="appcenterconsole.war" type="war"> <application-bnd> <security-role name="appcenteradmin"> <group name="appcentergroup"/> </security-role> </application-bnd> </application> <!-- declare ibm application center services 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> <!-- declare worklight admininstrative application. --> <application context-root="worklightadmin" type="war" id="worklightadmin" location="worklightadmin.war" name="worklightadmin"> <application-bnd> <security-role name="worklightadmin"> <user name="wasadmin"/> </security-role> <security-role name="worklightdeployer"></security-role> <security-role name="worklightmonitor"></security-role> <security-role name="worklightoperator"></security-role> </application-bnd> </application> <!-- declare worklight application console application. --> <application id="worklightconsole" name="worklightconsole" location="worklightconsole.war" type="war"> <application-bnd> <security-role name="worklightadmin"> <user name="wasadmin"/> </security-role> <security-role name="worklightdeployer"></security-role> <security-role name="worklightmonitor"></security-role> <security-role name="worklightoperator"></security-role> </application-bnd> </application> <!-- declare jndi properties ibm application center. --> <!-- define appcenter services endpoint in order appcenter console able invoke rest service. need enable property if server behind reverse proxy or if context root of application center services application different '/applicationcenter'. --> <!-- <jndientry jndiname="ibm.appcenter.services.endpoint" value='"http://proxyhost:proxyport/applicationcenter"'/> --> <!-- directory binaries of 'aapt' program, android sdk's platform-tools package. --> <jndientry jndiname="android.aapt.dir" value='"c:/ibm/mobilefirst_platform_server/applicationcenter/tools/android-sdk"'/> <!-- declare jar file derby "embedded" deployment option. --> <library id="derbylib"> <fileset dir="${shared.resource.dir}/derby" includes="derby.jar"/> </library> <!-- declare ibm application center database. --> <datasource jndiname="jdbc/appcenterds" transactional="false" statementcachesize="10"> <jdbcdriver libraryref="derbylib"/> <properties.derby.embedded databasename="c:\programdata\ibm\mobilefirst_platform_server\derby/appcntr" user="appcntr" shutdowndatabase="false" connectionattributes="upgrade=true"/> </datasource> </server>
thanks help.
based on error, seems console , administration services didn't installed datasource defined in server.xml application center. @ ibm knowledge center topic deploying mobilefirst operations console , administration services ant tasks
Comments
Post a Comment