• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Migrating from Struts 2.3 to 2.5  RSS feed

 
Greenhorn
Posts: 2
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Migrating from Struts 2.3 to 2.5

Hi All,

We are trying to migrate our application from Struts2.3.35 to Struts2.5.20

I am facing a problem when i have mapped with action class with a wildcard as below.

I have followed all the instruction given by apache to migrate to Struts2.5. I am Struck here. The Same Struts.xml configuration is working fine with Struts2.3.35 jars.

Please help me to find the solution. I didn't find any help on the apache site, whether wildcard mapping support is removed in the Struts2.5.20? I am not sure. please help if any have an idea on this.


"Struts.xml
-------------------

"

"
Web.xml
---------


"



 
Marshal
Posts: 24461
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sreehari, welcome to the Ranch!

You're facing a problem: can you tell us about that problem, then?
 
sreehari valeti
Greenhorn
Posts: 2
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eroror i am facing is as below. Please find the  source in the attachments. The Same project is working fine with Struts2.3.35 jars. But is failing for Struts2.5.20 jars

ERROR Dispatcher Could not find action or result: /Struts2.5demo2/configlogin.action?username=sree&password=sree
There is no Action mapped for namespace [/] and action name [configlogin] associated with context path [/Struts2.5demo2]. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:195)
at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:57)
at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:32)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:60)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)
at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
 
Bartender
Posts: 9559
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the server logs?  Tail the logs when you deploy the application.  Some issues will occur during deployment leaving the application unavailable.
What application server are you using?  I've been having an issue deploying a Struts 2.5 app on Weblogic, but I haven't had time to determine if the issue is something I've done or related to the Struts upgrade.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!