在 ubuntu 14.04 中在哪里添加 tomcat 和移动优先服务器(worklight)的权限?

Posted

技术标签:

【中文标题】在 ubuntu 14.04 中在哪里添加 tomcat 和移动优先服务器(worklight)的权限?【英文标题】:where to add permission to tomcat and mobile first server (worklight) in ubuntu 14.04? 【发布时间】:2017-06-20 06:56:42 【问题描述】:

我正在 Ubuntu 14.04 上配置 Mobile First Server v7.1。我已经在同一台机器上安装了tomcat。我不明白在哪里指定权限。是否需要给worklight server setup文件夹执行权限?

对于 Apache Tomcat,您必须有权执行以下操作:

读取配置目录。 创建备份文件,修改配置目录下的文件,如server.xml和tomcatusers.xml 创建备份文件,修改bin目录下的文件,如setenv.bat。 在 lib 目录中创建文件。 在 webapps 目录中创建文件。

实际上,我收到以下错误,所以我认为这可能是因为权限。

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

【问题讨论】:

【参考方案1】:

我认为您不需要授予任何特定权限,除非您遇到任何特定错误(您可以分享)。

一旦你安装了 Mobile First Server,你可以使用服务器配置工具来配置 mobile first 与 tomcat 作为 web 服务器。

可以在此处找到配置所需步骤的详细信息:https://www.ibm.com/support/knowledgecenter/en/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/deploy/c_using_server_config_tool.html

【讨论】:

你能解释一下导致上述错误的步骤吗?

以上是关于在 ubuntu 14.04 中在哪里添加 tomcat 和移动优先服务器(worklight)的权限?的主要内容,如果未能解决你的问题,请参考以下文章

安装了ubuntu14.04,怎么在桌面添加终端

Ubuntu 14.04 中的 webgrind 分析文件存储在哪里?

Ubuntu 14.04 中的 production.log 在哪里 - Rails 4

ubuntu14.04怎么安装配置idea

ubuntu 14.04 server(amd64) 安装ros indigo

ubuntu 14.04查看java的安装路径