This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts issue on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts issue on tomcat" Watch "Struts issue on tomcat" New topic
Author

Struts issue on tomcat

Nitesh Shah
Greenhorn

Joined: Aug 10, 2011
Posts: 2
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, http://www.abc.com/branchMasterRegio...RegionalMaster works fine, but http://www.abc.com/fund/fundTypeMast...d=showFundType 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?
Sudipta Banerjee
Greenhorn

Joined: Apr 26, 2011
Posts: 4

Can I have more detail,
like
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


Thanks & Regards -
Sudipta
Nitesh Shah
Greenhorn

Joined: Aug 10, 2011
Posts: 2
Give me your email address. I will email you the struts-config.xml, struts-fund.xml and web.xml files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts issue on tomcat