注:
本章中我使用的開發工具是UAP3.1.6,但是其基礎功能等和Eclipse一樣,因此,在Eclipse中遇到此問題的同學可以參考一下,基本可以複用;
我的問題及其解決辦法:
使用UAP3.1.6,修改了一下主題顏色,結果出事了。。。。
當我修改完主題後重啓UAP時發現打不開了,UAP啓動到一半就停止啓動並且爆出了錯誤,讓去工作空間下的配置文件中的日誌文件去查看,如下提示:
查看上圖工作空間路徑中的日誌,錯誤日誌(部分)如下所示:
!MESSAGE Could not resolve module: org.eclipse.wst.wsdl.validation [755]
Unresolved requirement: Require-Bundle: javax.wsdl; bundle-version="[1.5.0,1.6.0)"
!ENTRY oracle.eclipse.tools.webtier.jsf.facelet 2 0 2020-05-09 09:22:48.522
!MESSAGE Could not resolve module: oracle.eclipse.tools.webtier.jsf.facelet [159]
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.webtier.javawebapp; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.webtier.javawebapp; bundle-version="16.3.0.201612160743"; singleton:="true"
oracle.eclipse.tools.webtier.javawebapp [157]
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.common.services; bundle-version="[16.3.0,17.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: oracle.eclipse.tools.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
oracle.eclipse.tools.common.services [119]
Unresolved requirement: Require-Bundle: org.eclipse.wst.wsdl.validation; bundle-version="[1.1.700,2.0.0)"
-> Bundle-SymbolicName: org.eclipse.wst.wsdl.validation; bundle-version="1.1.700.v201505131719"; singleton:="true"
org.eclipse.wst.wsdl.validation [755]
Unresolved requirement: Require-Bundle: javax.wsdl; bundle-version="[1.5.0,1.6.0)"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.webtier.common.services; bundle-version="[16.3.0,17.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: oracle.eclipse.tools.webtier.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
oracle.eclipse.tools.webtier.common.services [153]
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.xml.model; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.xml.model; bundle-version="16.3.0.201612160743"; singleton:="true"
oracle.eclipse.tools.xml.model [171]
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.common.services; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.common.services; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.application.common.services; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.application.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
oracle.eclipse.tools.application.common.services [113]
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.xml.model; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.xml.model; bundle-version="16.3.0.201612160743"; singleton:="true"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.common.services; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.application.common.services; bundle-version="[16.3.0,17.0.0)"; visibility:="reexport"
-> Bundle-SymbolicName: oracle.eclipse.tools.application.common.services; bundle-version="16.3.0.201612160743"; singleton:="true"
Unresolved requirement: Require-Bundle: oracle.eclipse.tools.xml.model; bundle-version="[16.3.0,17.0.0)"
-> Bundle-SymbolicName: oracle.eclipse.tools.xml.model; bundle-version="16.3.0.201612160743"; singleton:="true"
最後理了一下頭緒,發現應該就是由於修改了Preperences(參數)中的主題配置的關係,因此爲了不再次檢出項目什麼的(項目比較大,費時間),所以選擇損失最小的辦法,把UAP部分配置信息文件 .settings 中對應的 主題配置文件 刪掉就好了;
配置信息文件路徑:“此項目的工作空間.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.e4.ui.css.swt.theme”
把 org.eclipse.e4.ui.css.swt.theme 刪掉即可;
如果修改的其他配置遇到這個問題,但是又不知道是哪個具體的文件,可以把整個.settings 文件都刪掉,只不過打開後重新配置的可能就會比較多;
注:
此文件的刪除不會涉及到代碼,但是需要注意的是,對於代碼的運行環境等信息可能會造成影響,所以當刪除了此文件時需要重新配置一下開發工具中的代碼運行環境等;