myeclipse5.5 +tomcat6.0 环境下运行struts2(2.1.6)
一开始启动tomcat 报错: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:......
上网查到: 下一个tcnative-1.dll文件
下载地址: http://tomcat.heanet.ie/native/1.1.2/binaries/win32/tcnative-1.dll
然后复制到C:/windows/system32下面或者放在tomcat/bin里 重起tomcat。
呵呵:我是放在了tomcat/bin里面
错误2: 严重: Exception starting filter struts2
最终找到方案:原来是需要导入如下文件到工程中:
struts2-core-2.1.6.jar,
xwork-2.1.2.jar、
freemarker-2.3.13.jar、
ognl-2.6.11.jar、
commons-logging-1.0.4.jar、
commons-fileupload-1.2.1.jar、
commons-io-1.3.2.jar
总结:问题还是没有得到解决,呵呵!互联网真是厉害: 最后查到:在tomcat的路径中不能有空格,真是bug啊!!!!!!!
解决!
struts2继续学习中......