2013-09-10 93 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,你能寫這個作爲一個新的答案,並將其標記爲答案? –