You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Murali Challa <ch...@gmail.com> on 2025/01/12 03:22:18 UTC
Facings issues while migrating from Struts 2.5.x to 6.7
Hi,
We are migrating our application from struts2-core 2.5.33 to 6.7.0.
Post migration, we are facing issues while populating bean values in
session.
${} is printing null values. Seems the EL is not working post 6.x migration.
Can you help me to understand if I'm missing something in this migration.
Below is the code snippet for your reference.
<s:iterator value="session.list" var="menu" status="s">
<s:property value="id" /> // working
${menu.id} // Not working
<s:iterator>
Thanks,
Murali
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Dave Newton <da...@gmail.com>.
The 2.5.8 from eight years ago that was deprecated in 2023? Do you have a
minimal non-working app repo to look at?
em: davelnewton@gmail.com
mo: 908-380-8699
gh: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
On Tue, Feb 11, 2025 at 22:52 Mahabir Gupta <ma...@gmail.com> wrote:
> Dear Lukasz,
>
> Can you please advise on the above? None of my application seems to be able
> to be mapped.
>
> http://localhost:8080/TutorialFinder/tutorials/getTutorial.action
>
> HTTP Status 404 – Not Found
> ------------------------------
>
> *Type* Status Report
>
> *Message* There is no Action mapped for action name getTutorial.
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> ------------------------------
> Apache Tomcat/9.0.82
>
> On Mon, Feb 10, 2025 at 11:06 AM Mahabir Gupta <ma...@gmail.com>
> wrote:
>
> > Dear Lukasz,
> >
> > I am using Struts2 using struts2-core-2.5.8.jar with Java 17.
> >
> > http://localhost:8080/manager/html
> > HTTP Status 404 – Not Found
> > ------------------------------
> >
> > *Type* Status Report
> >
> > *Message* The requested resource [/manager/html] is not available
> >
> > *Description* The origin server did not find a current representation for
> > the target resource or is not willing to disclose that one exists.
> > ------------------------------
> > Apache Tomcat/9.0.82
> > Thank you.
> >
> > Regards
> > Mahabir
> >
> > On Sun, Feb 9, 2025 at 8:32 PM Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> >> niedz., 9 lut 2025 o 12:23 Mahabir Gupta <ma...@gmail.com>
> >> napisał(a):
> >> > Apache Tomcat/9.0.82
> >>
> >> Do you use Struts 6.7.x or 7.0? Can you confirm the app has been
> >> deployed into Tomcat using Tomcat Manager App?
> >>
> >> Cheers
> >> Lukasz
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Can you please advise on the above? None of my application seems to be able
to be mapped.
http://localhost:8080/TutorialFinder/tutorials/getTutorial.action
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for action name getTutorial.
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
On Mon, Feb 10, 2025 at 11:06 AM Mahabir Gupta <ma...@gmail.com> wrote:
> Dear Lukasz,
>
> I am using Struts2 using struts2-core-2.5.8.jar with Java 17.
>
> http://localhost:8080/manager/html
> HTTP Status 404 – Not Found
> ------------------------------
>
> *Type* Status Report
>
> *Message* The requested resource [/manager/html] is not available
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> ------------------------------
> Apache Tomcat/9.0.82
> Thank you.
>
> Regards
> Mahabir
>
> On Sun, Feb 9, 2025 at 8:32 PM Lukasz Lenart <lu...@apache.org>
> wrote:
>
>> niedz., 9 lut 2025 o 12:23 Mahabir Gupta <ma...@gmail.com>
>> napisał(a):
>> > Apache Tomcat/9.0.82
>>
>> Do you use Struts 6.7.x or 7.0? Can you confirm the app has been
>> deployed into Tomcat using Tomcat Manager App?
>>
>> Cheers
>> Lukasz
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Noted with thanks.
Regards
Mahabir
On Fri, Feb 14, 2025 at 12:21 AM Lukasz Lenart <lu...@apache.org>
wrote:
> I would suggest learning Maven and use it to build Struts app
> https://struts.apache.org/getting-started/hello-world-using-struts2
>
> śr., 12 lut 2025 o 07:46 Lukasz Lenart <lu...@apache.org>
> napisał(a):
> >
> > I just noticed we are polluting this thread with unrelated discussion,
> > please start a new thread to discuss your problem.
> >
> > śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > >
> > > Dear Lukasz,
> > >
> > > Previously I did not include the xwork-core-2.3.37.jar but added it to
> > > follow the youtube video but now I have removed it but the problem
> still
> > > persists.
> > >
> > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> > >
> > > https://github.com/MahabirGupta/Struts2Starter
> > > HTTP Status 404 – Not Found
> > > ------------------------------
> > >
> > > *Type* Status Report
> > >
> > > *Message* There is no Action mapped for action name getTutorial.
> > >
> > > *Description* The origin server did not find a current representation
> for
> > > the target resource or is not willing to disclose that one exists.
> > > ------------------------------
> > > Apache Tomcat/9.0.82
> > > Kindly advise. Thank you.
> > >
> > > Regards
> > > Mahabir
> > >
> > > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lukaszlenart@apache.org
> >
> > > wrote:
> > >
> > > > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > > > >
> > > > > Dear Lukasz and Dave,
> > > > >
> > > > > The only deploy I am seeing is the below and this is my github
> link
> > > > > https://github.com/MahabirGupta/Struts2Starter.
> > > >
> > > > I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> > > > this JAR as Xwork classes are already included in
> > > > struts2-core-2.5.8.jar
> > > >
> > > >
> > > > Regards
> > > > Łukasz
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
I would suggest learning Maven and use it to build Struts app
https://struts.apache.org/getting-started/hello-world-using-struts2
śr., 12 lut 2025 o 07:46 Lukasz Lenart <lu...@apache.org> napisał(a):
>
> I just noticed we are polluting this thread with unrelated discussion,
> please start a new thread to discuss your problem.
>
> śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz,
> >
> > Previously I did not include the xwork-core-2.3.37.jar but added it to
> > follow the youtube video but now I have removed it but the problem still
> > persists.
> >
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> >
> > https://github.com/MahabirGupta/Struts2Starter
> > HTTP Status 404 – Not Found
> > ------------------------------
> >
> > *Type* Status Report
> >
> > *Message* There is no Action mapped for action name getTutorial.
> >
> > *Description* The origin server did not find a current representation for
> > the target resource or is not willing to disclose that one exists.
> > ------------------------------
> > Apache Tomcat/9.0.82
> > Kindly advise. Thank you.
> >
> > Regards
> > Mahabir
> >
> > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> > > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com> napisał(a):
> > > >
> > > > Dear Lukasz and Dave,
> > > >
> > > > The only deploy I am seeing is the below and this is my github link
> > > > https://github.com/MahabirGupta/Struts2Starter.
> > >
> > > I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> > > this JAR as Xwork classes are already included in
> > > struts2-core-2.5.8.jar
> > >
> > >
> > > Regards
> > > Łukasz
> > >
> > > ---------------------------------------------------------------------
> > > 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: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Noted with thanks.
Regards
Mahabir
On Fri, 14 Feb 2025 at 8:51 PM, Lukasz Lenart <lu...@apache.org>
wrote:
> pt., 14 lut 2025 o 09:01 Mahabir Gupta <ma...@gmail.com> napisał(a):
> > Struts2 requires which Java minimum? Kindly advise.
>
> I already answered that, term Struts it's a synonym of Struts2 these
> days. Here is some explanation about the change in the naming
>
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=199528107#VersionNotes6.0.0-Versionchange
>
>
>
> Cheers
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Lukasz Lenart <lu...@apache.org>.
pt., 14 lut 2025 o 09:01 Mahabir Gupta <ma...@gmail.com> napisał(a):
> Struts2 requires which Java minimum? Kindly advise.
I already answered that, term Struts it's a synonym of Struts2 these
days. Here is some explanation about the change in the naming
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=199528107#VersionNotes6.0.0-Versionchange
Cheers
Łukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Struts2 requires which Java minimum? Kindly advise.
Thank you.
Regards
Mahabir
On Fri, 14 Feb 2025 at 3:05 PM, Lukasz Lenart <lu...@apache.org>
wrote:
> pt., 14 lut 2025 o 05:06 Mahabir Gupta <ma...@gmail.com> napisał(a):
> > Is Struts2 compatible with Java 17. Kindly advise.
>
> Struts 6.x requires Java 8 as minimum, Struts 7.x requires Java 17 as
> minimum
>
>
> Cheers
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
struct2 2.3.34 upgrade 6.7.0,all page show messy code
Posted by wwyyzz_001 <51...@qq.com.INVALID>.
Dear Lukasz,
My project from struct2 2.3.34 upgrade 6.7.0,all page show messy code,normal is chinese.
May I ask if there are any additional configurations needed?
Thank you.
Regards
wwyyzz
struct2 2.3.34 upgrade 6.7.0,all page show messy code
Posted by wwyyzz_001 <51...@qq.com.INVALID>.
Dear Lukasz,
My project from struct2 2.3.34 upgrade 6.7.0,all page show messy code,normal is chinese,as shown in the attached figure.
May I ask if there are any additional configurations needed?
Thank you.
Regards
wwyyzz
Re: Unable to display the jsp - 404 Resource not found
Posted by Lukasz Lenart <lu...@apache.org>.
pt., 14 lut 2025 o 05:06 Mahabir Gupta <ma...@gmail.com> napisał(a):
> Is Struts2 compatible with Java 17. Kindly advise.
Struts 6.x requires Java 8 as minimum, Struts 7.x requires Java 17 as minimum
Cheers
Łukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Is Struts2 compatible with Java 17. Kindly advise.
Thank you.
Regards
Mahabir
On Fri, Feb 14, 2025 at 12:08 AM Lukasz Lenart <lu...@apache.org>
wrote:
> I have no idea why it doesn't work, I don't use Eclipse so I cannot
> use your source code from Github.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Lukasz Lenart <lu...@apache.org>.
I have no idea why it doesn't work, I don't use Eclipse so I cannot
use your source code from Github.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Any updates on how I can resolve this issue please.
Thank you.
Regards
Mahabir
On Wed, Feb 12, 2025 at 7:07 PM Lukasz Lenart <lu...@apache.org>
wrote:
> śr., 12 lut 2025 o 11:11 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> >
> > 404 Error.
>
> I assume it doesn't work. What happens when you open this link
> http://localhost:8080/Struts2Starter/index.jsp
> Do you see this
> https://github.com/MahabirGupta/Struts2Starter/blob/main/web/login.jsp#L10
> ?
>
>
> Cheers
> Lukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Hi,
I am actually following this youtube tutorial video on Struts2
https://www.youtube.com/watch?v=wYkh87-hbiI
In the video, the tutor is not using Maven or gradle. It is using a simple
web application by defining the jar files in the class path. My main page
can be loaded but not the other pages.
http://localhost:8080/Struts2Starter/
It loads the index.jsp page.
http://localhost:8080/Struts2Starter/tutorials/getTutorial
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for action name getTutorial.
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
The problem is nothing is being displayed on the console.
https://github.com/MahabirGupta/Struts2Starter
Thank you.
Regards
Mahabir
On Thu, Feb 13, 2025 at 10:35 AM 哈哈哈哈 <ya...@gmail.com> wrote:
> Hi Mahabir
> I have try your repository
> You better use Control tools like Maven or gradle
> Cause the settings actually not get resources like struts.xml or log4j in
> Eclipse IDE
> But even I set resources in Deployment Assembly still have other problem
>
> Best regards
>
> Mahabir Gupta <ma...@gmail.com> 於 2025年2月12日 週三 下午8:56 寫道:
>
> > It goes to the index.jsp page
> >
> > http://localhost:8080/Struts2Starter/index.jsp
> >
> > Index
> >
> > On Wed, Feb 12, 2025 at 7:07 PM Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> > > śr., 12 lut 2025 o 11:11 Mahabir Gupta <ma...@gmail.com>
> > napisał(a):
> > > >
> > > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> > > >
> > > > 404 Error.
> > >
> > > I assume it doesn't work. What happens when you open this link
> > > http://localhost:8080/Struts2Starter/index.jsp
> > > Do you see this
> > >
> >
> https://github.com/MahabirGupta/Struts2Starter/blob/main/web/login.jsp#L10
> > > ?
> > >
> > >
> > > Cheers
> > > Lukasz
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>
Re: Unable to display the jsp - 404 Resource not found
Posted by 哈哈哈哈 <ya...@gmail.com>.
Hi Mahabir
I have try your repository
You better use Control tools like Maven or gradle
Cause the settings actually not get resources like struts.xml or log4j in
Eclipse IDE
But even I set resources in Deployment Assembly still have other problem
Best regards
Mahabir Gupta <ma...@gmail.com> 於 2025年2月12日 週三 下午8:56 寫道:
> It goes to the index.jsp page
>
> http://localhost:8080/Struts2Starter/index.jsp
>
> Index
>
> On Wed, Feb 12, 2025 at 7:07 PM Lukasz Lenart <lu...@apache.org>
> wrote:
>
> > śr., 12 lut 2025 o 11:11 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > >
> > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> > >
> > > 404 Error.
> >
> > I assume it doesn't work. What happens when you open this link
> > http://localhost:8080/Struts2Starter/index.jsp
> > Do you see this
> >
> https://github.com/MahabirGupta/Struts2Starter/blob/main/web/login.jsp#L10
> > ?
> >
> >
> > Cheers
> > Lukasz
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
It goes to the index.jsp page
http://localhost:8080/Struts2Starter/index.jsp
Index
On Wed, Feb 12, 2025 at 7:07 PM Lukasz Lenart <lu...@apache.org>
wrote:
> śr., 12 lut 2025 o 11:11 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> >
> > 404 Error.
>
> I assume it doesn't work. What happens when you open this link
> http://localhost:8080/Struts2Starter/index.jsp
> Do you see this
> https://github.com/MahabirGupta/Struts2Starter/blob/main/web/login.jsp#L10
> ?
>
>
> Cheers
> Lukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Lukasz Lenart <lu...@apache.org>.
śr., 12 lut 2025 o 11:11 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
>
> 404 Error.
I assume it doesn't work. What happens when you open this link
http://localhost:8080/Struts2Starter/index.jsp
Do you see this
https://github.com/MahabirGupta/Struts2Starter/blob/main/web/login.jsp#L10
?
Cheers
Lukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
404 Error.
Thank you.
Regards
Mahabir
On Wed, 12 Feb 2025 at 5:16 PM, Lukasz Lenart <lu...@apache.org>
wrote:
> śr., 12 lut 2025 o 08:56 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz,
> >
> > My current Struts2 project is also a very simple web app.
> >
> > http://localhost:8080/Struts2Starter/
> >
> > It loads the index.jsp page.
> >
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial
>
> Could you use this link
> http://localhost:8080/Struts2Starter/tutorials/getTutorial.action ?
>
> Cheers
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Lukasz Lenart <lu...@apache.org>.
śr., 12 lut 2025 o 08:56 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> Dear Lukasz,
>
> My current Struts2 project is also a very simple web app.
>
> http://localhost:8080/Struts2Starter/
>
> It loads the index.jsp page.
>
> http://localhost:8080/Struts2Starter/tutorials/getTutorial
Could you use this link
http://localhost:8080/Struts2Starter/tutorials/getTutorial.action ?
Cheers
Łukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
My current Struts2 project is also a very simple web app.
http://localhost:8080/Struts2Starter/
It loads the index.jsp page.
http://localhost:8080/Struts2Starter/tutorials/getTutorial
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for action name getTutorial.
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
The problem is nothing is being displayed on the console.
https://github.com/MahabirGupta/Struts2Starter
The execute method of the TutorialAction class is not being executed so the
System.out.println("Hello from execute method");
is not being displayed on the console either. The youtube link that you
have sent me seems to be
more complicated than my current application. And it is a continuation from
a previously created Struts
hello-world application which makes it more difficult to follow. Thank you.
Regards
Mahabir
On Wed, Feb 12, 2025 at 3:30 PM Łukasz Lenart <lu...@gmail.com>
wrote:
> Could you follow this tutorial? It uses Struts 2.5.x and starts with
> just a simple Web app and then adds Struts.
>
> https://www.youtube.com/watch?v=HVHlkWvOmOw
>
> śr., 12 lut 2025 o 07:53 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz,
> >
> > Previously I did not include the xwork-core-2.3.37.jar but added it to
> > follow the youtube video but now I have removed it but the problem still
> > persists.
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> >
> > https://github.com/MahabirGupta/Struts2Starter
> >
> > HTTP Status 404 – Not Found
> > ------------------------------
> >
> > *Type* Status Report
> >
> > *Message* There is no Action mapped for action name getTutorial.
> >
> > *Description* The origin server did not find a current representation for
> > the target resource or is not willing to disclose that one exists.
> > ------------------------------
> > Apache Tomcat/9.0.82
> >
> > On Wed, Feb 12, 2025 at 2:46 PM Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> > > I just noticed we are polluting this thread with unrelated discussion,
> > > please start a new thread to discuss your problem.
> > >
> > > śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > > >
> > > > Dear Lukasz,
> > > >
> > > > Previously I did not include the xwork-core-2.3.37.jar but added it
> to
> > > > follow the youtube video but now I have removed it but the problem
> still
> > > > persists.
> > > >
> > > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> > > >
> > > > https://github.com/MahabirGupta/Struts2Starter
> > > > HTTP Status 404 – Not Found
> > > > ------------------------------
> > > >
> > > > *Type* Status Report
> > > >
> > > > *Message* There is no Action mapped for action name getTutorial.
> > > >
> > > > *Description* The origin server did not find a current
> representation for
> > > > the target resource or is not willing to disclose that one exists.
> > > > ------------------------------
> > > > Apache Tomcat/9.0.82
> > > > Kindly advise. Thank you.
> > > >
> > > > Regards
> > > > Mahabir
> > > >
> > > > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <
> lukaszlenart@apache.org>
> > > > wrote:
> > > >
> > > > > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com>
> > > napisał(a):
> > > > > >
> > > > > > Dear Lukasz and Dave,
> > > > > >
> > > > > > The only deploy I am seeing is the below and this is my github
> link
> > > > > > https://github.com/MahabirGupta/Struts2Starter.
> > > > >
> > > > > I noticed you have xwork-core-2.3.37.jar in your libs, please
> remove
> > > > > this JAR as Xwork classes are already included in
> > > > > struts2-core-2.5.8.jar
> > > > >
> > > > >
> > > > > Regards
> > > > > Łukasz
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > 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
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Unable to display the jsp - 404 Resource not found
Posted by Łukasz Lenart <lu...@gmail.com>.
Could you follow this tutorial? It uses Struts 2.5.x and starts with
just a simple Web app and then adds Struts.
https://www.youtube.com/watch?v=HVHlkWvOmOw
śr., 12 lut 2025 o 07:53 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> Dear Lukasz,
>
> Previously I did not include the xwork-core-2.3.37.jar but added it to
> follow the youtube video but now I have removed it but the problem still
> persists.
> http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
>
> https://github.com/MahabirGupta/Struts2Starter
>
> HTTP Status 404 – Not Found
> ------------------------------
>
> *Type* Status Report
>
> *Message* There is no Action mapped for action name getTutorial.
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> ------------------------------
> Apache Tomcat/9.0.82
>
> On Wed, Feb 12, 2025 at 2:46 PM Lukasz Lenart <lu...@apache.org>
> wrote:
>
> > I just noticed we are polluting this thread with unrelated discussion,
> > please start a new thread to discuss your problem.
> >
> > śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com> napisał(a):
> > >
> > > Dear Lukasz,
> > >
> > > Previously I did not include the xwork-core-2.3.37.jar but added it to
> > > follow the youtube video but now I have removed it but the problem still
> > > persists.
> > >
> > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> > >
> > > https://github.com/MahabirGupta/Struts2Starter
> > > HTTP Status 404 – Not Found
> > > ------------------------------
> > >
> > > *Type* Status Report
> > >
> > > *Message* There is no Action mapped for action name getTutorial.
> > >
> > > *Description* The origin server did not find a current representation for
> > > the target resource or is not willing to disclose that one exists.
> > > ------------------------------
> > > Apache Tomcat/9.0.82
> > > Kindly advise. Thank you.
> > >
> > > Regards
> > > Mahabir
> > >
> > > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lu...@apache.org>
> > > wrote:
> > >
> > > > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com>
> > napisał(a):
> > > > >
> > > > > Dear Lukasz and Dave,
> > > > >
> > > > > The only deploy I am seeing is the below and this is my github link
> > > > > https://github.com/MahabirGupta/Struts2Starter.
> > > >
> > > > I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> > > > this JAR as Xwork classes are already included in
> > > > struts2-core-2.5.8.jar
> > > >
> > > >
> > > > Regards
> > > > Łukasz
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Unable to display the jsp - 404 Resource not found
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Previously I did not include the xwork-core-2.3.37.jar but added it to
follow the youtube video but now I have removed it but the problem still
persists.
http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
https://github.com/MahabirGupta/Struts2Starter
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for action name getTutorial.
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
On Wed, Feb 12, 2025 at 2:46 PM Lukasz Lenart <lu...@apache.org>
wrote:
> I just noticed we are polluting this thread with unrelated discussion,
> please start a new thread to discuss your problem.
>
> śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz,
> >
> > Previously I did not include the xwork-core-2.3.37.jar but added it to
> > follow the youtube video but now I have removed it but the problem still
> > persists.
> >
> > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
> >
> > https://github.com/MahabirGupta/Struts2Starter
> > HTTP Status 404 – Not Found
> > ------------------------------
> >
> > *Type* Status Report
> >
> > *Message* There is no Action mapped for action name getTutorial.
> >
> > *Description* The origin server did not find a current representation for
> > the target resource or is not willing to disclose that one exists.
> > ------------------------------
> > Apache Tomcat/9.0.82
> > Kindly advise. Thank you.
> >
> > Regards
> > Mahabir
> >
> > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> > > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > > >
> > > > Dear Lukasz and Dave,
> > > >
> > > > The only deploy I am seeing is the below and this is my github link
> > > > https://github.com/MahabirGupta/Struts2Starter.
> > >
> > > I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> > > this JAR as Xwork classes are already included in
> > > struts2-core-2.5.8.jar
> > >
> > >
> > > Regards
> > > Łukasz
> > >
> > > ---------------------------------------------------------------------
> > > 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: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
I just noticed we are polluting this thread with unrelated discussion,
please start a new thread to discuss your problem.
śr., 12 lut 2025 o 07:30 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> Dear Lukasz,
>
> Previously I did not include the xwork-core-2.3.37.jar but added it to
> follow the youtube video but now I have removed it but the problem still
> persists.
>
> http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
>
> https://github.com/MahabirGupta/Struts2Starter
> HTTP Status 404 – Not Found
> ------------------------------
>
> *Type* Status Report
>
> *Message* There is no Action mapped for action name getTutorial.
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> ------------------------------
> Apache Tomcat/9.0.82
> Kindly advise. Thank you.
>
> Regards
> Mahabir
>
> On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lu...@apache.org>
> wrote:
>
> > śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com> napisał(a):
> > >
> > > Dear Lukasz and Dave,
> > >
> > > The only deploy I am seeing is the below and this is my github link
> > > https://github.com/MahabirGupta/Struts2Starter.
> >
> > I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> > this JAR as Xwork classes are already included in
> > struts2-core-2.5.8.jar
> >
> >
> > Regards
> > Łukasz
> >
> > ---------------------------------------------------------------------
> > 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: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
Previously I did not include the xwork-core-2.3.37.jar but added it to
follow the youtube video but now I have removed it but the problem still
persists.
http://localhost:8080/Struts2Starter/tutorials/getTutorial.action
https://github.com/MahabirGupta/Struts2Starter
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for action name getTutorial.
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
Kindly advise. Thank you.
Regards
Mahabir
On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart <lu...@apache.org>
wrote:
> śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz and Dave,
> >
> > The only deploy I am seeing is the below and this is my github link
> > https://github.com/MahabirGupta/Struts2Starter.
>
> I noticed you have xwork-core-2.3.37.jar in your libs, please remove
> this JAR as Xwork classes are already included in
> struts2-core-2.5.8.jar
>
>
> Regards
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
śr., 12 lut 2025 o 05:17 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> Dear Lukasz and Dave,
>
> The only deploy I am seeing is the below and this is my github link
> https://github.com/MahabirGupta/Struts2Starter.
I noticed you have xwork-core-2.3.37.jar in your libs, please remove
this JAR as Xwork classes are already included in
struts2-core-2.5.8.jar
Regards
Łukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz and Dave,
The only deploy I am seeing is the below and this is my github link
https://github.com/MahabirGupta/Struts2Starter.
Feb 12, 2025 11:46:52 AM org.apache.catalina.startup.VersionLoggerListener
log
INFO: Command line argument:
-Dwtp.deploy=/Users/mahabirguptanew/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Thank you.
Regards
Mahabir
On Tue, Feb 11, 2025 at 11:36 PM Lukasz Lenart <lu...@apache.org>
wrote:
> pon., 10 lut 2025 o 04:06 Mahabir Gupta <ma...@gmail.com> napisał(a):
> >
> > Dear Lukasz,
> >
> > I am using Struts2 using struts2-core-2.5.8.jar with Java 17.
> >
> > http://localhost:8080/manager/html
> > HTTP Status 404 – Not Found
> > ------------------------------
> >
> > *Type* Status Report
> >
> > *Message* The requested resource [/manager/html] is not available
> >
> > *Description* The origin server did not find a current representation for
> > the target resource or is not willing to disclose that one exists.
> > ------------------------------
> > Apache Tomcat/9.0.82
>
> Could you confirm, based on Tomcat logs, that your app has been
> deployed? There should be something like "deploying <your project
> name>" in the logs
>
> Cheers
> Lukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
pon., 10 lut 2025 o 04:06 Mahabir Gupta <ma...@gmail.com> napisał(a):
>
> Dear Lukasz,
>
> I am using Struts2 using struts2-core-2.5.8.jar with Java 17.
>
> http://localhost:8080/manager/html
> HTTP Status 404 – Not Found
> ------------------------------
>
> *Type* Status Report
>
> *Message* The requested resource [/manager/html] is not available
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> ------------------------------
> Apache Tomcat/9.0.82
Could you confirm, based on Tomcat logs, that your app has been
deployed? There should be something like "deploying <your project
name>" in the logs
Cheers
Lukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
I am using Struts2 using struts2-core-2.5.8.jar with Java 17.
http://localhost:8080/manager/html
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* The requested resource [/manager/html] is not available
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
Thank you.
Regards
Mahabir
On Sun, Feb 9, 2025 at 8:32 PM Lukasz Lenart <lu...@apache.org>
wrote:
> niedz., 9 lut 2025 o 12:23 Mahabir Gupta <ma...@gmail.com>
> napisał(a):
> > Apache Tomcat/9.0.82
>
> Do you use Struts 6.7.x or 7.0? Can you confirm the app has been
> deployed into Tomcat using Tomcat Manager App?
>
> Cheers
> Lukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
niedz., 9 lut 2025 o 12:23 Mahabir Gupta <ma...@gmail.com> napisał(a):
> Apache Tomcat/9.0.82
Do you use Struts 6.7.x or 7.0? Can you confirm the app has been
deployed into Tomcat using Tomcat Manager App?
Cheers
Lukasz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Fwd: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Mahabir Gupta <ma...@gmail.com>.
Dear Lukasz,
I am creating a very simple Struts2 application using Tomcat Server 9 and
Java 17 but I am getting the following error.
http://localhost:8080/Struts2Starter/getTutorial.action
HTTP Status 404 – Not Found
------------------------------
*Type* Status Report
*Message* There is no Action mapped for namespace [/] and action name
[getTutorial] associated with context path [/Struts2Starter].
*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.
------------------------------
Apache Tomcat/9.0.82
This is my project structure. I am basically following this youtube
tutorial https://www.youtube.com/watch?v=pqNt8QK16JM
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="
http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version=
"3.1">
<display-name>Struts2Starter</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</
filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="getTutorial" class="org.mahabir.action.TutorialAction">
<result name="success">/success.jsp</result>
<result name="failure">/error.jsp</result>
<!-- <result name="noSession">/login.jsp</result>-->
</action>
</package>
</struts>
package org.mahabir.action;
public class TutorialAction {
// create the execute method
public String execute(){
System.out.println("Hello from execute method");
return "success";
}
}
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
Success page
</body>
</html>
/Struts2Starter/src/main/java/org/mahabir/action/TutorialAction.java
/Struts2Starter/src/main/resources/struts.xml
/Struts2Starter/web/success.jsp
There is no message displayed on the Tomcat console. I really have no idea
what is the issue. Any assistance would be appreciated.
Thank you.
Regards'
Mahabir
On Tue, Jan 14, 2025 at 2:55 PM Lukasz Lenart <lu...@apache.org>
wrote:
> I don't recall changes in this area, only this one but it was in Struts 2.3
> https://issues.apache.org/jira/browse/WW-4073
>
> niedz., 12 sty 2025 o 04:22 Murali Challa <ch...@gmail.com>
> napisał(a):
> >
> > Hi,
> >
> > We are migrating our application from struts2-core 2.5.33 to 6.7.0.
> >
> > Post migration, we are facing issues while populating bean values in
> > session.
> >
> > ${} is printing null values. Seems the EL is not working post 6.x
> migration.
> >
> > Can you help me to understand if I'm missing something in this migration.
> >
> > Below is the code snippet for your reference.
> >
> > <s:iterator value="session.list" var="menu" status="s">
> > <s:property value="id" /> // working
> >
> > ${menu.id} // Not working
> > <s:iterator>
> >
> > Thanks,
> > Murali
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Facings issues while migrating from Struts 2.5.x to 6.7
Posted by Lukasz Lenart <lu...@apache.org>.
I don't recall changes in this area, only this one but it was in Struts 2.3
https://issues.apache.org/jira/browse/WW-4073
niedz., 12 sty 2025 o 04:22 Murali Challa <ch...@gmail.com> napisał(a):
>
> Hi,
>
> We are migrating our application from struts2-core 2.5.33 to 6.7.0.
>
> Post migration, we are facing issues while populating bean values in
> session.
>
> ${} is printing null values. Seems the EL is not working post 6.x migration.
>
> Can you help me to understand if I'm missing something in this migration.
>
> Below is the code snippet for your reference.
>
> <s:iterator value="session.list" var="menu" status="s">
> <s:property value="id" /> // working
>
> ${menu.id} // Not working
> <s:iterator>
>
> Thanks,
> Murali
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org