日期:2014-05-20  浏览次数:20723 次

关于SSH整合问题,困扰了我几天了,还是找不到答案,请各位班忙
用我SSH做了一个简单注册的例子,如果直接启动tomcat6.0时,然后在网页上运行是没问题的这个项目,可以顺利的运行,一但我用eclipse的tomcatPlugin来打开tomcat时,就出错了.log那里显示
2008-2-3 18:40:28 org.apache.catalina.core.ApplicationContext log
信息: Initializing WebApplicationContext for Struts ActionServlet 'actionServlet', module ''
然后后面就没有显示了,接下来出现调试画面,
里面说
the source attachment does not contain the source for the file SignatureParser.class.
you can change the source attachment by clicking Change Attached source below:
然后它出现一个按钮,按了之后显示
select the location(folder,JAR or zip)containing the source for 'rt.jar'
但尽管我选择了包含该jar后,它下次启动时还是出现如上错误。
我真是不明白,为什么直接运行tomcat可以顺利运行项目,而如果用tomcatPlugin来打开就出现如上问题呢?
我之所以要用eclipse打开tomcat是由于这样可以看到当前项目运行的log,方便调试项目。
请高手们帮我看下。

------解决方案--------------------
进来了帮你up
------解决方案--------------------
你的IDE是什么?
------解决方案--------------------
1 请参考这个文章看看 http://blog.csdn.net/glumtree/archive/2007/10/09/1817068.aspx

2 如果你采用的是服务形式的Tomcat,他的日志可以用专门的工具查看,很方便的,可以自动更新和滚动

我的空间里只有3个精品工具,请自己下载 http://download.csdn.net/hicsdn/java2000_net
------解决方案--------------------
你得ide有问题吧!!
------解决方案--------------------
把你的工程发布到下载资源区,让大家下载下来,帮你调式。
------解决方案--------------------
换tomcat5.0试一下?
------解决方案--------------------
我感觉就是你的web.xml写的有些问题
你检查一下
然后重新加载下这个工程
the source attachment does not contain the source for the file SignatureParser.class. 
you can change the source attachment by clicking Change Attached source below: 
貌似是你在tomcat下删过一些东西
在eclipse中仍存在,具体说不好,认真检查下吧
------解决方案--------------------
日志的问题吗?
------解决方案--------------------
没有帮你找到原因,
不过,看日志不一定需要在elipse里,用log4j写日志就行了。
------解决方案--------------------
探讨
我感觉就是你的web.xml写的有些问题
你检查一下
然后重新加载下这个工程
the source attachment does not contain the source for the file SignatureParser.class.
you can change the source attachment by clicking Change Attached source below:
貌似是你在tomcat下删过一些东西
在eclipse中仍存在,具体说不好,认真检查下吧

------解决方案--------------------
建议楼主下个appfuse研究下。。