is plugin-convention bug ? can not find Action.class, Result.class  which 
annotation in class
---------------------------------------------------------------------------------------------

                 Key: WW-3374
                 URL: https://issues.apache.org/struts/browse/WW-3374
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Convention
    Affects Versions: 2.1.8
         Environment: windows xp professional sp3 ,  eclipse3.3 , tomcat6.0, 
            Reporter: terence


flowing is the contents of struts.xml  configuration files
<struts>
        <constant name="struts.convention.package.locators" value="test" />
        <constant name="struts.convention.classes.reload" value="true" />
        <constant name="struts.devMode" value="true" />
        <constant name="struts.objectFactory.spring.autoWire.alwaysRespect" 
value="true" />
        <constant name="struts.action.extension" value="action" />
</struts>

my class annotation 

                     @Override
        @Action(
                        value="test",
                        
result...@result(name="success",type="dispatcher",location="result.jsp")},
                        interceptorref...@interceptorref("timer")})
        public String execute() throws Exception {
                return SUCCESS;
        }

when i start up tomcat the exception is 
java.io.FileNotFoundException:
D:\tomcat\webapps\proc\WEB-INF\classes\org\apache\struts2\convention\annotation\InterceptorRef.class
D:\tomcat\webapps\proc\WEB-INF\classes\org\apache\struts2\convention\annotation\Result.class
D:\tomcat\webapps\proc\WEB-INF\classes\org\apache\struts2\convention\annotation\Action.class

struts2 is still working and annotation @Action , @Result ,  @InterceptorRef is 
also work.

coincidentally that :InterceptorRef.class ,  Result.class ,  Action.class  is 
my class annotation.


when i delete the 
<constant name="struts.convention.package.locators" value="test" />
tomcat normal startup , but the annotation doesn't work . 

i am not sure it is a bug ? 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to