Org. Apache. Jasper. jasperexception: file "/Struts-tags" not found: No problem locally, but an error is returned when the file is uploaded.

Source: Internet
Author: User
Tags apache tomcat

Apache Tomcat/6.0.18-Error Report <! -- H1 {font-family: tahoma, Arial, sans-serif; color: White; Background-color: #525d76; font-size: 22px;} H2 {font-family: tahoma, Arial, sans-serif; color: White; Background-color: #525d76; font-size: 16px;} H3 {font-family: tahoma, Arial, sans-serif; color: White; Background-color: #525d76; font-size: 14px;} body {font-family: tahoma, Arial, sans-serif; color: black; Background-color: white;} B {font-family: tahoma, Arial, sans-serif; color: White; Background-color: #525d76;} p {font-family: tahoma, Arial, sans-serif; Background: white; color: black; font-size: 12px;} A {color: black;}. name {color: black;} HR {color: #525d76;} -->

Org. apache. jasper. jasperexception: file "/Struts-tags" not foundorg. apache. jasper. compiler. defaulterrorhandler. jsperror (defaulterrorhandler. java: 51) Org. apache. jasper. compiler. errordispatcher. dispatch (errordispatcher. java: 409) Org. apache. jasper. compiler. errordispatcher. jsperror (errordispatcher. java: 116) Org. apache. jasper. compiler. taglibraryinfoimpl. <init> (taglibraryinfoimpl. java: 160) Org. apache. jasper. compiler. parser. parsetaglibdirective (parser. java: 431) Org. apache. jasper. compiler. parser. parsedirective (parser. java: 494) Org. apache. jasper. compiler. parser. parseelements (parser. java: 1444) Org. apache. jasper. compiler. parser. parse (parser. java: 138) Org. apache. jasper. compiler. parsercontroller. doparse (parsercontroller. java: 216) Org. apache. jasper. compiler. parsercontroller. parse (parsercontroller. java: 103) Org. apache. jasper. compiler. compiler. generatejava (compiler. java: 154) Org. apache. jasper. compiler. compiler. compile (compiler. java: 315) Org. apache. jasper. compiler. compiler. compile (compiler. java: 295) Org. apache. jasper. compiler. compiler. compile (compiler. java: 282) Org. apache. jasper. jspcompilationcontext. compile (jspcompilationcontext. java: 586) Org. apache. jasper. servlet. jspservletwrapper. service (jspservletwrapper. java: 317) Org. apache. jasper. servlet. jspservlet. servicejspfile (jspservlet. java: 342) Org. apache. jasper. servlet. jspservlet. service (jspservlet. java: 267) javax. servlet. HTTP. httpservlet. service (httpservlet. java: 717) COM. AAA. struts. action. cf. dofilter (cf. java: 23)
Web. xml file
<? XML version = "1.0" encoding = "UTF-8"?>
<Web-app version = "2.5" xmlns = "http://java.sun.com/xml/ns/javaee"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemalocation = "http://java.sun.com/xml/ns/javaee
Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd>

<! -- Define the basename for a resource bundle for i18n -->
<Context-param>
<Param-Name> javax. servlet. jsp. jstl. FMT. localizationcontext </param-Name>
<Param-value> applicationresources </param-value>
</Context-param>
<! -- Fallback locale if no bundles found for browser's preferred locale -->
<! -- Force a single locale using param-name 'javax. servlet. jsp. jstl. FMT. locale' -->
<Context-param>
<Param-Name> javax. servlet. jsp. jstl. FMT. fallbacklocale </param-Name>
<Param-value> en </param-value>
</Context-param>
<! -- Load the spring listener -->
<Context-param>
<Param-Name> contextconfiglocation </param-Name>
<Param-value> classpath: applicationcontext. xml </param-value>
</Context-param>
<Listener>
<Listener-class>
Org. springframework. Web. Context. contextloaderlistener
</Listener-class>
</Listener>

<! -- Character Set filter -->
<Filter>
<Filter-Name> cfilter </filter-Name>
<Filter-class>
Org. springframework. Web. Filter. characterencodingfilter
</Filter-class>
<Init-param>
<Param-Name> encoding </param-Name>
<Param-value> UTF-8 </param-value>
</Init-param>
<Init-param>
<Param-Name> forceencoding </param-Name>
<Param-value> true </param-value>
</Init-param>
</Filter>
<Filter-mapping>
<Filter-Name> cfilter </filter-Name>
<URL-pattern>/* </url-pattern>
</Filter-mapping>

<! -- Hibernate lazy loading -->
<Filter>
<Filter-Name> OSF </filter-Name>
<Filter-class>
Org. springframework. Orm. hibernate3.support. opensessioninviewfilter
</Filter-class>
<Init-param>
<Param-Name> singlesession </param-Name>
<Param-value> true </param-value>
</Init-param>
</Filter>
<Filter-mapping>
<Filter-Name> OSF </filter-Name>
<URL-pattern>/* </url-pattern>
</Filter-mapping>

<! -- Struts2 processes request Mapping -->
<Filter>
<Filter-Name> struts2 </filter-Name>
<Filter-class>
Org. Apache. struts2.dispatcher. filterdispatcher
</Filter-class>
</Filter>
<Filter-mapping>
<Filter-Name> struts2 </filter-Name>
<URL-pattern>/* </url-pattern>
</Filter-mapping>
<! -- DWR -->
<Servlet>
<Servlet-Name> DWR </servlet-Name>
<Servlet-class> org. directwebremoting. servlet. dwrservlet </servlet-class>
<Init-param>
<Param-Name> debug </param-Name>
<Param-value> true </param-value>
</Init-param>
</Servlet>
<Servlet-mapping>
<Servlet-Name> DWR </servlet-Name>
<URL-pattern>/DWR/* </url-pattern>
</Servlet-mapping>
<Session-config>
<Session-Timeout> 30 </session-Timeout>
</Session-config>

<Welcome-file-List>
<Welcome-File> index. jsp </welcome-File>
</Welcome-file-List>
</Web-app>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.