Fernandes I had the same problem -- essentially I could not get it to work 
using the Convention plugin. Also, when you configure by xml you can't
have dev mode on.

The most I have gleaned off the internet, and there are people who 
should know better than me on this list the problem is to do with
the scanning process as the framework scans for action classes.

Anyone who knows more, chime in.
Cheers
Chris



-----Original Message-----
From: Fernandes Celinio <cfernan...@sopragroup.com>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Wed, 27 May 2009 12:58 pm
Subject: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0



Hi,
Is there a problem when using the Convention plug-in with Jboss 5.1.0 ?
I mean there is no struts.xml file., the mapping is defined in the
Action classes, through the use of annotations such as :

 @Actions({
             @Action(value="/myFirstPath",
             result...@result(name="success",
location="/here/first.jsp")}
             ),
             @Action(value="/mySecondPath",
             result...@result(name="success",
location="/here/second.jsp")}
             )
    })

Http://localhost:8080/myFirstPath 
Gives me the following error :
HTTP Status 404 - There is no Action mapped for namespace / and action
name myFirstPath.

Http://localhost:8080/mySecondPath
Gives me the following error :
HTTP Status 404 - There is no Action mapped for namespace / and action
name mySecondPath.

I know it works well with the Tomcat server.

Is there a problem with Jboss ? Something else to configure ?

Thanks for helping.
Celinio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to