2013-09-10 54 views
1

出现以下错误,当我开始工作灯:工作灯无法启动(苹果机)

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的朱诺SR2 20130225-0426,工作灯插件版本6.0。 0.20130724-1819,Eclipse指向运行在1.7编译器符合级别的jdk1.7.0_40(“MacOS X VM”)。 CustomLoginModule位于服务器上,在Eclipse查看器中出现奇怪的错误,例如“字符串不能解析为类型”。我在Windows中有这个相同的错误,我相信我修改了它,当我切换日食jdk,但这次没有帮助。我真的认为这是一个jdk问题,但一切似乎都是正确的。有任何想法吗?谢谢

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

+0

请填写您的解决方案作为一个答案,从而别人也可以知道这一点。 –

回答

0

您是否检查过安装的Worklight插件的更新?前段时间发布了6.0.0.0的修复程序。请检查。

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

  1. 右键单击工作灯项目>>属性
  2. Java构建路径>>图书馆>>添加库> >服务器运行时
  3. 选择“工作灯开发服务器” >> OK
  4. 清洁>>重启服务器
+0

我昨天更新了我的worklight插件,我相信这是最新的。 在其他说明中,我检查了项目的构建路径并检查了库,我发现jre7表示“JRE System Library [jre7](unbound)”,并且图标上有一个红色的x。在顶部有一个警告说:构建路径条目丢失:org.eclipse.jdt.launching.JRE_CONA ... R/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7 –

+1

我解决了通过编辑“JRE系统库[jre7](unbound)”并选择“Workspace default JRE(Home)”,感谢您的帮助!我现在又遇到了另一个问题,但这个看起来也很熟悉。 –

+0

@JonathanSweetman,你能写这个作为一个新的答案,并将其标记为答案? –