设置 IBM Mobilefirst 7.1 时无法使用服务器配置工具部署服务器配置
Posted
技术标签:
【中文标题】设置 IBM Mobilefirst 7.1 时无法使用服务器配置工具部署服务器配置【英文标题】:Unable to deploy server configuration using server configuration tool while setting up IBM Mobilefirst 7.1 【发布时间】:2017-06-19 13:19:37 【问题描述】:我正在尝试在 Ubantu 14.04 上设置 IBM Mobilefirst v7.1。 我有 java 版本“1.8.0_131”试图用 tomcat7 配置它。 应用程序中心工作正常。
当我尝试使用服务器配置工具部署服务器配置时,我收到如下错误日志。
Buildfile: /root/.mobilefirst_platform_server/server-configuration-tool/Configuration_SALESDEMO/SALESDEMO.xml
adminstall:
[installworklightadmin] Logging output of task <installWorklightAdmin> to file /root/.mobilefirst_platform_server/configuration-logs/installWorklightAdmin_2017_06_19_08_42_30.log
[installworklightadmin] java.lang.NullPointerException
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.AppServerTask.getBackupFileNextId(AppServerTask.java:6358)
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.AdminAppServerTask.makeTomcatJMXRMIEnvScript(AdminAppServerTask.java:1029)
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.AdminAppServerTask.buildAndProcessItems(AdminAppServerTask.java:1142)
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.AppServerTask.setupBuildAndProcessItems(AppServerTask.java:3064)
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.AppServerTask.doExecute(AppServerTask.java:307)
[installworklightadmin] at com.ibm.worklight.config.ant.appserver.InstallWorklightAdminTask.execute(InstallWorklightAdminTask.java:43)
[installworklightadmin] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[installworklightadmin] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[installworklightadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[installworklightadmin] at java.lang.reflect.Method.invoke(Method.java:498)
[installworklightadmin] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[installworklightadmin] at org.apache.tools.ant.Task.perform(Task.java:348)
[installworklightadmin] at org.apache.tools.ant.Target.execute(Target.java:435)
[installworklightadmin] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[installworklightadmin] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[installworklightadmin] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[installworklightadmin] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[installworklightadmin] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[installworklightadmin] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[installworklightadmin] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[installworklightadmin] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[installworklightadmin] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
BUILD FAILED
/root/.mobilefirst_platform_server/server-configuration-tool/Configuration_SALESDEMO/SALESDEMO.xml:74: java.lang.NullPointerException
at com.ibm.worklight.config.ant.appserver.AppServerTask.getBackupFileNextId(AppServerTask.java:6358)
at com.ibm.worklight.config.ant.appserver.AdminAppServerTask.makeTomcatJMXRMIEnvScript(AdminAppServerTask.java:1029)
at com.ibm.worklight.config.ant.appserver.AdminAppServerTask.buildAndProcessItems(AdminAppServerTask.java:1142)
at com.ibm.worklight.config.ant.appserver.AppServerTask.setupBuildAndProcessItems(AppServerTask.java:3064)
at com.ibm.worklight.config.ant.appserver.AppServerTask.doExecute(AppServerTask.java:307)
at com.ibm.worklight.config.ant.appserver.InstallWorklightAdminTask.execute(InstallWorklightAdminTask.java:43)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
提前谢谢你。
【问题讨论】:
确切的版本是什么? 什么的确切版本?移动优先? mobilefirst 版本 7.1 和内部版本号:IMF 00-20160321-2138 【参考方案1】:问题出在没有 bin 目录的 Tomcat 基本目录 (/var/lib/tomcat7) 上,worklight 正在搜索该目录。一旦我们修复了 tomcat7 安装,它就可以工作了。
感谢您的支持。
【讨论】:
【参考方案2】:从日志中,我看到安装作业在 getBackupFileNextId 处失败。
getBackupFileNextId 在尝试更改应用程序服务器配置文件之前生成一个备份文件。
一般情况下,在tomcat的conf目录下会创建一个备份文件。
检查你是否有对conf文件夹的写权限
请尝试通过 ANT 任务部署 MFP,下面的链接有更多详细信息 -
https://www.ibm.com/support/knowledgecenter/en/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/devref/r_ant_tasks_for_building.html
https://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/devref/t_ant_tasks_configure_dbs.html
https://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.installconfig.doc/install_config/r_wlconsole_ant_tasks.html
【讨论】:
以上是关于设置 IBM Mobilefirst 7.1 时无法使用服务器配置工具部署服务器配置的主要内容,如果未能解决你的问题,请参考以下文章
IBM MobileFirst 服务器 7.1 PushNotification 订阅者 ID(USERID) 未存储
IBM Mobilefirst 7.1 PushNotifications:无法从后台检索通知文本到前台