作者mussinaa ()
看板java
标题[问题] JSP找不到class
时间Mon Apr 18 08:29:59 2011
最近在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
1F:推 aadean:有更新class时需要restart tomcat? 04/20 20:41