[問題] JSP找不到class

看板java作者時間14年前 (2011/04/18 08:30), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
最近在eclipse練習用JSP呼叫上傳檔案的web service 在ecipse中建好JSP都可以正常執行(run with server) 但是移到tomcat的WWWROOT底下就不能用了 在JSP中import的Web Service Function class都找不到 需要用到的class在Eclipse專案中是存在build/classes 中 在Tomcat上我把這些class放在wwwroot\Axis2WStest\WEB-INF\classes\ 例如org\tempuri\Fileupload.class An error occurred at line: 42 in the jsp file: /Axis2WSTest/test.jsp FileuploadSoap cannot be resolved to a type An error occurred at line: 42 in the jsp file: /Axis2WSTest/test.jsp FileuploadSoapProxy cannot be resolved to a type 大概都是找不到我所import這些 請問是否該將這些class檔弄成JAR檔 或是Web.xml需要作何修改嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.45.140.113

04/20 20:41, , 1F
有更新class時需要restart tomcat?
04/20 20:41, 1F
文章代碼(AID): #1DguO9L_ (java)