Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
---------


"



 
Sheriff
Posts: 24074
54
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: 9551
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.
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!