我在配置我的Eclipse EE
來運行Tomcat 6時遇到了問題(我的公司尚未遷移到Tomcat 7)。我試圖按照these instructions。我進入底部面板的服務器標籤,點擊New->Server
,然後選擇Apache->Tomcat 6
。然後,我通過下面的屏幕繼承去:Eclipse中的Tomcat 6配置
終於抵達到錯誤消息:
這裏是我的Tomcat的conf目錄中的內容(C:\home\SFTWR\tomcat6\conf
):
catalina.policy
catalina.properties
context.xml
logging.properties
server.xml
web.xml
wrapper.properties
任何建議可能是錯誤的?運行單機運行良好,我可以從Eclipse部署應用程序,但我希望能夠在Eclipse中運行以進行調試。
UPDATE:
儘管錯誤消息,我注意到該服務器確實是註冊的,但不是功能 - 當我試圖打「開始」,我得到了一個錯誤彈出上市的兩個問題:
發佈到本地主機(詳細信息:不能因爲它缺少它的運行環境發佈到服務器。)
正在啓動本地主機(詳細信息:在「啓動本地主機」期間發生內部錯誤。 顯示java.lang.NullPointerException)
詳細的異常堆棧跟蹤如下:
org.eclipse.core.runtime.CoreException: Could not load the Tomcat server configuration at \Servers\localhost-config. The configuration may be corrupt or incomplete.
at org.eclipse.jst.server.tomcat.core.internal.Tomcat60Configuration.load(Tomcat60Configuration.java:313)
at org.eclipse.jst.server.tomcat.core.internal.TomcatServer.getTomcatConfiguration(TomcatServer.java:124)
at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.getTomcatConfiguration(TomcatServerBehaviour.java:80)
at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.setupLaunch(TomcatServerBehaviour.java:496)
at org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate.launch(TomcatLaunchConfigurationDelegate.java:96)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3402)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3340)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:363)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
當你點擊'詳情>>' – 2013-02-26 22:38:01
剛剛發佈了你所請求的信息的更新時,它說了什麼。謝謝 – amphibient 2013-02-26 22:43:29
錯誤日誌中的任何相關錯誤?窗口>顯示視圖>其他...>常規>錯誤日誌 – gamerson 2013-02-27 05:36:00