現象:J2EE server listen port: 1050 RuntimeException: Could not initialize server
解決:停止已運行的 J2EE 服務 (j2ee -stop) 或修改 config/orb.properties 更改默認端口。
現象:LifecycleException: HttpConnector[8000].open: Address in use
解決:修改 config/orb.properties 中的默認端口 8000。
現象:FactoryConfigurationError: org.apache.xerces.jaxp.SAXParserFactoryImpl
解決:刪除 J2SE 安裝目錄下的 jre/lib/jaxp.properties。
現象:Buildfile: build.xml does not exist!
解決:切換到 j2eetutorial/examples/src 目錄運行 ant,或用 -buildfile 指定路徑。
現象:大量 cannot resolve symbol 錯誤
解決:檢查 J2EE_HOME 環境變量是否正確配置。
現象:The filename, directory name, or volume label syntax is incorrect
解決:改用 Ant 1.3 版本,因 1.4 的 JAVACMD 環境變量與 SDK 腳本衝突。
現象:Bad mapping of key{0} class{1}, not found: com.sun.enterprise.deployment.xml.ApplicationNode
解決:刪除 J2SE jre/lib/ext/jaxp.jar 或從類路徑移除 Tomcat 的 XML 解析器。
現象:LocalHomeImpl must be declared abstract...
解決:刪除該 Enterprise Bean,用向導重建並選擇 Remote Home Interface 與 Remote Interface。
runclient -client ConverterApp.ear -name ConverterClient-name 參數guest,密碼 guest123ejb/SimpleConverter使用 verifier (deploytool → Tools → Verifier) 檢測部署描述符與方法簽名的不一致。若上述方法無效,嘗試:j2ee -stop && cleanup && j2ee -verbose 重新安裝並清理服務器存儲。