Ibm mobilefirst Worklight无法启动(Mac)

Ibm mobilefirst Worklight无法启动(Mac),ibm-mobilefirst,Ibm Mobilefirst,启动worklight时发生以下错误: objc[732]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib.

启动worklight时发生以下错误:

objc[732]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_40-b43 (en_US)
[AUDIT   ] CWWKE0001I: The server worklight has been launched.
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/_MobileBrowserSimulator/
[AUDIT   ] CWWKZ0001I: Application _MobileBrowserSimulator started in 0.274 seconds.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/mobile/
[err] 22  WorklightPU  WARN   [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[ERROR   ] FWLST0003E: ========= Failed starting project /mobile [project mobile]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
[ERROR   ] SRVE0283E: Exception caught while initializing context: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
Caused by (repeated) ... : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
... 
Caused by: java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
...
[AUDIT   ] CWWKZ0001I: Application mobile started in 4.168 seconds.
[AUDIT   ] CWWKF0011I: The server worklight is ready to run a smarter planet.
我正在运行OS X(10.8.4),Eclipse Juno SR2 20130225-0426,worklight插件版本6.0.0.20130724-1819,Eclipse指向jdk1.7.0_40(“MacOS X VM”),运行在1.7编译器遵从性级别。CustomLoginModule位于服务器上,在Eclipse查看器中,它被奇怪的错误所覆盖,例如“字符串无法解析为类型”。我在windows中也有同样的错误,我相信我在切换EclipseJDK时已经修复了它,但这次没有任何帮助。我真的认为这是jdk的问题,但一切似乎都是正确的。有什么想法吗?谢谢


编辑:我通过右键单击我的项目>属性>Java构建路径>库>编辑“JRE系统库[jre7](未绑定)”并选择“工作区默认JRE(主页)”解决了这个问题,感谢您的帮助!我现在遇到了另一个问题,但这个问题看起来也很熟悉

是否已检查已安装的Worklight插件的更新?不久前发布了6.0.0.0的修复程序。请查收

否则,我不完全确定,你或许应该做以下几点:

  • 右键单击Worklight项目>>属性
  • Java构建路径>>库>>添加库>>服务器运行时
  • 选择“Worklight Development Server”>>确定
  • 清除>>重新启动服务器

  • 我昨天更新了我的worklight插件,我相信它是最新的。另一方面,我检查了项目的构建路径并检查了库,我注意到jre7显示“JRE系统库[jre7](未绑定)”,图标上有一个红色的x。顶部有一条警告:构建路径条目丢失:org.eclipse.jdt.launching.JRE_CONA…R/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7I通过编辑“JRE系统库[jre7](未绑定)”并选择“工作区默认JRE(主页)”解决了此问题,感谢您的帮助!我现在有另一个问题,但这一个看起来也很熟悉。@JonathanSweetman,你能把这个作为一个新的答案写下来并标记为已回答吗?请把你的解决方案作为一个答案写下来,以便其他人也能知道。