Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Struts issue on tomcat

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Cpanel server with Tomcat installed. A customer has developed an application using struts. He is facing an issue with his application which I am not able to resolve. The application works fine locally. The homepage of the website opens fine, and even some modules work properly, the ones which are directly on the root directory. However, the modules which are under any directory throw 404 error. For example, works fine, but throws 404 error. I cannot find any error in the Tomcat log file and all the files seem to be proper.

How can I resolve the issue?
Posts: 4
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I have more detail,
where the action mapping declared, in struts.xml or say, fund.xml,
namespace declared in sturt.xml or fund.xml,
when the action is called what path it refers to,
filter mapping in web.xml

I think it could be due to namespace mapping, and thus it shows 404 Resource not found

Suppose, you have fund.xml where you have declared mapping for fundtypemaster action class,
check this action mapping refers to proper resources(eg class,jsp)
check what the namespace on the fund.xml,
check you have included fund.xml in struts.xml,
check there is any filter maping for this namespace
Nitesh Shah
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give me your email address. I will email you the struts-config.xml, struts-fund.xml and web.xml files.
What a show! What atmosphere! What fun! What a tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic