【发布时间】:2014-09-05 21:15:49
【问题描述】:
我正在运行带有 Eclipse 标准/SDK 的 OS 10.9.4 的 Mac,版本:Kepler Service Release 2,内部版本 ID:20140224-0627。
我已安装 Worklight 6.2.0.0,但无法让 Worklight 控制台工作 - 我不断收到“找不到运行时”。
我发现了这个帖子: No runtime on my Worklight 6.2 Console -- 但我找不到 IBM Java SDK 6,它说它是解决此问题的答案。
我已经卸载了 Eclipse、Worklight、Liberty 等并开始全新安装,但我仍然收到错误消息。
这是我的 server.xml 文件:
<server description="worklight">
<featureManager>
<feature>servlet-3.0</feature>
<feature>jndi-1.0</feature>
<feature>jdbc-4.0</feature>
<feature>restConnector-1.0</feature>
<feature>jsp-2.2</feature>
<feature>appSecurity-1.0</feature>
<feature>ssl-1.0</feature>
<!--
<feature>appSecurity-2.0</feature>
<feature>ldapRegistry-3.0</feature>
-->
<feature>localConnector-1.0</feature>
</featureManager>
<webContainer invokeFlushAfterService="false"/>
<webContainer com.ibm.ws.webcontainer.suppressLoggingServiceRuntimeExcep="true"/>
<webContainer deferServletLoad="false"/>
<!-- non standard ports were used to avoid future collision with other WebSphere products. -->
<httpEndpoint host="*" httpPort="10080" httpsPort="10443" id="defaultHttpEndpoint">
<tcpOptions soReuseAddr="true"/>
</httpEndpoint>
<!-- change Worklight server side logging:
change consoleLogLevel to INFO to see Worklight JavaScript Logger API output
(for example: in Worklight Adapters).
-->
<logging consoleLogLevel="AUDIT" copySystemStreams="false"/>
<!-- enable next element for Worklight Server traces.
change traceSpecification to enable fine grain printing to trace.log file.
<logging traceSpecification="com.worklight.*=debug=enabled"/>
-->
<applicationMonitor updateTrigger="mbean"/>
<administrator-role>
<user>admin</user>
</administrator-role>
<keyStore id="defaultKeyStore" password="worklight"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="localhost"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="10443"/>
<jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/>
<jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/>
<!--
Worklight Console settings START ...
-->
<basicRegistry id="worklight" realm="worklightRealm">
<user name="demo" password="demo"/>
<user name="monitor" password="demo"/>
<user name="deployer" password="demo"/>
<user name="operator" password="demo"/>
<user name="admin" password="admin"/>
</basicRegistry>
<!--
JMX admin user JNDI entries
-->
<jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="admin"/>
<jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="admin"/>
<!--
Disabling security integration
-->
<httpSession securityIntegrationEnabled="false"/>
<!--
Declare the IBM Worklight Admin Services application.
-->
<application context-root="worklightadmin" id="worklight-management-service" location="worklight-management-service.war" name="WorklightServices" type="war">
<application-bnd>
<security-role name="worklightadmin">
<user name="admin"/>
</security-role>
<security-role name="worklightdeployer">
<user name="deployer"/>
</security-role>
<security-role name="worklightmonitor">
<user name="monitor"/>
</security-role>
<security-role name="worklightoperator">
<user name="operator"/>
</security-role>
</application-bnd>
<classloader delegation="parentLast">
<privateLibrary>
<fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil*.jar"/>
</privateLibrary>
</classloader>
</application>
<!--
Declare the IBM Worklight Admin Console application.
-->
<application context-root="worklightconsole" id="worklight-management-ui" location="worklight-management-ui.war" name="WorklightConsole" type="war">
<application-bnd>
<security-role name="worklightadmin">
<user name="admin"/>
</security-role>
<security-role name="worklightdeployer">
<user name="deployer"/>
</security-role>
<security-role name="worklightmonitor">
<user name="monitor"/>
</security-role>
<security-role name="worklightoperator">
<user name="operator"/>
</security-role>
</application-bnd>
</application>
<library id="DerbyLib">
<fileset dir="${wlp.user.dir}/shared/resources/derby" includes="derby.jar"/>
</library>
<!--
Declare the IBM Worklight Console admin database.
-->
<dataSource jndiName="worklightadmin/jdbc/WorklightAdminDS" transactional="false">
<jdbcDriver libraryRef="DerbyLib"/>
<properties.derby.embedded createDatabase="create" databaseName="${wlp.user.dir}/shared/resources/derbyDB/WLADMIN" user="WLADMINISTRATOR"/>
</dataSource>
<!--
... Worklight Console settings END
--></server>
当我构建项目时,控制台日志显示如下:
[2014-08-04 12:34:12] FWLPL0010W: The current server configuration is set to "localhost".
Therefore the Worklight build uses the primary IP address of this computer (192.168.0.68) instead.
It is recommended to set the server configuration to use the fully qualified hostname or IP address of this computer.
To configure the setting, in the "Servers" view double-click the Worklight Development Server entry and edit the "Host name" field.
[2014-08-04 12:34:53] Starting build process: application 'GAPPortfolioApp', all environments
[2014-08-04 12:34:54] Application 'GAPPortfolioApp' with all environments build finished.
以下是打开 Worklight 控制台时控制台日志显示的内容:
objc[10730]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.1/wlp-1.0.4.cl50120131011-1639) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_55-b13 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://[fd00:0:0:0:3e15:c2ff:fec6:5116]:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://[fd00:0:0:0:3e15:c2ff:fec6:5116]:10080/worklightadmin/
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[AUDIT ] CWWKZ0001I: Application WorklightServices started in 5.208 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://[fd00:0:0:0:3e15:c2ff:fec6:5116]:10080/worklightconsole/
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 0.283 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
我可能缺少与 Eclipse 和 Worklight 或 Eclipse 和 Liberty 的不匹配吗?
如果有任何帮助,我将不胜感激!
谢谢!
【问题讨论】:
-
Oracle Java 6 应该也可以。
-
您的所有输出看起来都很好。当没有部署应用程序时,会显示此“无运行时”屏幕。您是否通过右键单击应用程序 > 运行方式 > 在 Worklight Development Server 上运行将应用程序部署到 Worklight Server?如果您这样做,您应该在控制台日志中看到一些内容,例如:开始构建过程:应用程序'wlapp',所有环境应用程序'wlapp',所有环境构建完成。正在将具有所有环境的应用程序“wlapp”部署到 Worklight Server...成功部署具有所有环境的应用程序“wlapp”
-
我执行了运行方式... > 1. 在应用程序文件夹(“apps”文件夹下应用程序的文件夹名称)上的 Worklight Development Server 上运行。我认为选择了最顶层的文件夹,右键单击并选择在 Firefox 中打开的“打开 Worklight 控制台”,控制台出现了。但是,我拥有的唯一链接是“作为公共资源预览”,它什么都不做。我尝试将 URL (192.168.0.68:10080/[myProjectName]/apps/services/preview/…) 更改为正确的 index.html,但它不起作用。
-
为了修复,我卸载了所有东西并下载并安装了 Eclipse Luna。 Worklight 现在工作正常。
标签: eclipse ibm-mobilefirst worklight-runtime