You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "terence (JIRA)" <ji...@apache.org> on 2010/01/12 04:06:44 UTC

[jira] Created: (WW-3374) is plugin-convention bug ? can not find Action.class, Result.class which annotation in class

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",
			results={@Result(name="success",type="dispatcher",location="result.jsp")},
			interceptorRefs={@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.


[jira] Closed: (WW-3374) is plugin-convention bug ? can not find Action.class, Result.class which annotation in class

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-3374.
-----------------------------

    Resolution: Not A Problem
      Assignee: Lukasz Lenart

Please ask question on Struts User Group [1] and did you add convention plugin jar?

[1] http://struts.apache.org/mail.html


Regards
--
Lukasz

> 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
>            Assignee: Lukasz Lenart
>
> 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",
> 			results={@Result(name="success",type="dispatcher",location="result.jsp")},
> 			interceptorRefs={@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.