struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <>
Subject [jira] [Commented] (WW-3564) Unable to find a result type for extension
Date Thu, 05 May 2011 02:10:03 GMT


Dave Newton commented on WW-3564:

Hmm, I'm half-and-half on "blocker".

I'd say we'll fix it, though :) I'm just not sure anything with a trivial, common workaround
should be a blocker.

(I also don't see any reason to keep .bak files in the same directory; that's what tags/etc.
are for--if they're that important you need a backup, take the time to do it in your SCCS,
I say.)

> Unable to find a result type for extension
> ------------------------------------------
>                 Key: WW-3564
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Convention
>    Affects Versions: 2.2.1
>         Environment: windows xp, spring 2.5, tomcat 5.0.28, struts2-convention-plugin-2.2.1.jar
>            Reporter: Dan Du
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>         Attachments: 1.jpg, 11.jpg, 2.jpg,
> I set a convention constant like this below:
> ==========================================================================================
> <constant name="struts.convention.result.path" value="/WEB-INF/jsp" />
> ==========================================================================================
> After I deployed my project to tomcat server, I backup a file "search.jsp" and named
the backup file with "search.jsp.bak", There is a class named with "SearchAction"。The action's
search method is annotated by @Action, like this:
> ==========================================================================================
> @Action(value = "search", results = { @Result(name = "search", location = "/WEB-INF/jsp/search.jsp")
> ==========================================================================================
> When I startup tomcat server, I recieved some message:
> ==========================================================================================
> Unable to find a result type for extension [bak] in location attribute [/WEB-INF/jsp/search.jsp.bak].
- [unknown location]
> ==========================================================================================
> Then I checked, I found this
exception throwing at line 527。
> I debug that snippet, At line 269, I found some problems,ServletContext.getResourcePaths()
method will scan a directory and its sub-directory and return all files in these directories,
If a file's extension is not jsp, jspx,vm,ftl,html or htm。 I would get the error。 
> So I think this code need to be change to fix this problem。

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message