tomcat与struts2配置,解决了The requested resource is not available问题
2014-08-06 14:39
706 查看
整体来讲struts的体系结构如下
最开始启动tomcat时报错说web-app后必须跟属性规范>或者/>,但是我的web.xml中web-app的标签符号没有问题,经过百度谷歌一番折腾,原来是因为web-app的头有问题,好像是版本相关的,具体怎么回事儿我也不知道,只是把另外一个能正常运行的web.xml的头拷贝过来了,这个错误提示消失了
后来启动tomcat时提示,error filter start或者javassist library is missing或者Dispatcher
initialization failed,于是我把这些相应的jar包都拷贝到lib中,问题也解决了
再后来,启动tomcat时提示,unable to locate configuration files of the name struts-plugin.xml,原来是因为没有导入相应的插件的jar包,据说这个导入一个插件的jar包就可以解决了,我认为这只是一个警告,不过还是将插件的jar包导入到lib底下,然后这个错误提示也消失了
再后来,又提示unable to load configuration,原来是我没有编译.java文件,classes包下没有.class文件,于是手动编译一下,一个javac
java文件名,就好啦
最后在输入框输入地址,成功显示了
最开始启动tomcat时报错说web-app后必须跟属性规范>或者/>,但是我的web.xml中web-app的标签符号没有问题,经过百度谷歌一番折腾,原来是因为web-app的头有问题,好像是版本相关的,具体怎么回事儿我也不知道,只是把另外一个能正常运行的web.xml的头拷贝过来了,这个错误提示消失了
后来启动tomcat时提示,error filter start或者javassist library is missing或者Dispatcher
initialization failed,于是我把这些相应的jar包都拷贝到lib中,问题也解决了
再后来,启动tomcat时提示,unable to locate configuration files of the name struts-plugin.xml,原来是因为没有导入相应的插件的jar包,据说这个导入一个插件的jar包就可以解决了,我认为这只是一个警告,不过还是将插件的jar包导入到lib底下,然后这个错误提示也消失了
再后来,又提示unable to load configuration,原来是我没有编译.java文件,classes包下没有.class文件,于是手动编译一下,一个javac
java文件名,就好啦
最后在输入框输入地址,成功显示了
相关文章推荐
- 因配置不对,导致出现The requested resource is not available的解决方法
- "The requested resource (... processLogin.action) is not available"的问题所在及解决办法
- struts2 The requested resource is not available.问题
- Tomcat6.0.18下出现The requested resource(/)is not available
- HTTP Status 404(The requested resource is not available)的几种解决方法
- SSH+Oracle整合问题7,description The requested resource (/PetDogIMS/open) is not available.
- Tomcat7下出现The requested resource(/)is not available
- servlet web.xml配置好以后还会出现 the requested resource is not available错误的可能原因
- 解决:The requested resource (/bookstore/LoginServlet.neng) is not available.
- 转:HTTP Status 404(The requested resource is not available)的几种解决方法
- Spring项目中The requested resource is not available问题
- HTTP Status 404(The requested resource is not available)的几种解决方法
- Tomcat6.0.18下出现The requested resource(/)is not available
- struts2 The requested resource is not available.
- HTTP Status 404(The requested resource is not available)的几种解决方法
- The requested resource (Servlet action is not available) is not available.这个问题让我通宵了一个晚上
- 解决The requested resource is not available的办法
- struts2项目中:HTTP Status 404 - The requested resource is not available.
- HTTP Status 404(The requested resource is not available)的几种解决方法
- 解决The requested resource is not available的办法