1.Deployment failure on Tomcat 6.x. Could not copy all resources to
网上都说是classpath和lib不符的原因,我一直没解决,手动复制了一下发现根本没有管理员权限复制文件(我是把tomcat装在c盘)。。
于是右键属性把权限改成完全控制就好了。
2.Unrecognized Windows Sockets error: 0: JVM_Bind
netstat查了一下,是myeclipse里的tomcat和我自己安装的tomcat6.0的端口冲突了,把tomcat6.0服务关掉后,
之前The Apache Tomcat Native library which allows optimal performance in production environments was not found的问题不报了。
3.Could not obtain connection metadata 到主机TCP/IP连接失败
打开sql server configration manager->sql配置管理器(本地)->sqlserver网络配置->mssqlserver的协议->启用tcp/ip协议->解决。
4.不支持此服务器版本。目标服务器必须是 SQL Server 2000 或更高版本。
一种原因是sqlserver2008需要的包是sqljdbc4,而不是sqljdbc;还有可能jdk版本不符合,我把版本改成1.6后发现所有用到泛型的地方都抛错了orz,右键点击项目属性,
javacompiler那儿,修改到1.6,如果还不行,window-》preference-》java-》compiler看看对不对,以及Install jres修改成自己的,反正我都改了,然后好了。。
5.Exception starting filter struts2
web.xml中2.1以后是这样配置
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
</filter-class>
</filter>