我正在使用Tomcat 8.0但是當試圖在URL中運行應用程序(http://localhost:8080/example1/services/Calculator)時,我總是提示HTTP狀態爲404。我去了Tomcat服務器8.0的屬性,並將位置更改爲「tomcat 8.0v本地主機服務器」。Eclipse上的HTTP狀態404(火星)+ Apache tomcat 8.0 + Apache CXF 3.1.3
我也雙擊了Tomcat服務器並改變了服務器的位置,以 「使用Tomcat安裝」。
我複製ROOT文件夾並粘貼到我的項目文件夾(proj folder.metadata.plugins \ org.eclipse.wst.server.core \ tmp0)。
然而結果與圖像中的相同。 HTTP Status error
我很感謝在這個問題上伸出援助之手。
感謝您的即時響應dsp_user。我將上面的代碼包含在我的web.xml源文件中,但是它在tomcat的啓動時產生了一個錯誤:「在localhost上啓動tomcat服務器遇到了問題」。而服務器將無法運行。你能否提出另一個請求。謝謝。 –
請發佈整個堆棧跟蹤 –
我正在運行基於Youtube視頻的添加Web服務;像這樣的代碼; - - - - - - - - - package com.inty.server; import javax.jws.WebService; @WebService(targetNamespace =「http://server.inty.com/」,endpointInterface =「com.inty.server.endpoint1」,portName =「CalculatorClassPort」,serviceName =「CalculatorClassService」) public class CalculatorClass implements endpoint1 (int a,int b) \t { \t \t return a + b; \t} }包含的web.xml文件; –