You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fernandes Celinio <cf...@sopragroup.com> on 2009/05/27 18:58:58 UTC

[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",
             results={@Result(name="success",
location="/here/first.jsp")}
             ),
             @Action(value="/mySecondPath",
             results={@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by mu...@aol.com.
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 <cf...@sopragroup.com>
To: Struts Users Mailing List <us...@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",
             results={@Result(name="success",
location="/here/first.jsp")}
             ),
             @Action(value="/mySecondPath",
             results={@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by mu...@aol.com.
There is something new -- something to do with virtual classpaths that
makes JBoss 5 reject apps with dev mode on or with the Convention
plugin active while JBoss 4 accepts them.
Chris


-----Original Message-----
From: Lukasz Lenart <lu...@googlemail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Wed, 27 May 2009 4:51 pm
Subject: Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0



2009/5/27  <mu...@aol.com>:
> Me again: here is a link with a discussion. Don't hold your breath as
> it does not give a work around.
> http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html

Does it mean it solves your issue? Or there there is something new
regarding JBoss 5.1?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/5/27  <mu...@aol.com>:
> Me again: here is a link with a discussion. Don't hold your breath as
> it does not give a work around.
> http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html

Does it mean it solves your issue? Or there there is something new
regarding JBoss 5.1?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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


Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by mu...@aol.com.
Me again: here is a link with a discussion. Don't hold your breath as
it does not give a work around.
http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html
Chris


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



Yes, I did and it works.
So i am assuming there is a problem with Jboss. I have not checked the logs yet.
-----Message d'origine-----
e : Lukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
nvoyé : mercredi 27 mai 2009 19:02
 : Struts Users Mailing List
bjet : Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0
2009/5/27 Fernandes Celinio <cf...@sopragroup.com>:
 I know it works well with the Tomcat server.
JBoss is using Tomcat to serve Java web applications, did you try deploy the 
ame application to standalone Tomcat?

egards
-
ukasz
ttp://www.lenart.org.pl/
---------------------------------------------------------------------
o unsubscribe, e-mail: user-unsubscribe@struts.apache.org
or additional commands, e-mail: user-help@struts.apache.org

--------------------------------------------------------------------
o unsubscribe, e-mail: user-unsubscribe@struts.apache.org
or additional commands, e-mail: user-help@struts.apache.org


RE: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by Fernandes Celinio <cf...@sopragroup.com>.
Yes, I did and it works.

So i am assuming there is a problem with Jboss. I have not checked the logs yet.

-----Message d'origine-----
De : Lukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
Envoyé : mercredi 27 mai 2009 19:02
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009/5/27 Fernandes Celinio <cf...@sopragroup.com>:
> I know it works well with the Tomcat server.

JBoss is using Tomcat to serve Java web applications, did you try deploy the same application to standalone Tomcat?


Regards
--
Lukasz
http://www.lenart.org.pl/

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


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


Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by mu...@aol.com.
Lukasz, it is JBoss specific -- actually JBoss 5. Apps that
work on JBoss 4 with the Convention Plugin fail with
JBoss 5.

I can post the specific error messages when I get home next
week (I am in Stockholm without my code.
Cheers
Chris


-----Original Message-----
From: Lukasz Lenart <lu...@googlemail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Wed, 27 May 2009 1:02 pm
Subject: Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0



2009/5/27 Fernandes Celinio <cf...@sopragroup.com>:
> I know it works well with the Tomcat server.

JBoss is using Tomcat to serve Java web applications, did you try
deploy the same application to standalone Tomcat?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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



Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/5/27 Fernandes Celinio <cf...@sopragroup.com>:
> I know it works well with the Tomcat server.

JBoss is using Tomcat to serve Java web applications, did you try
deploy the same application to standalone Tomcat?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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