This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Piotr Gorajski

Greenhorn
+ Follow
since Jan 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Piotr Gorajski

Ok. By turning on trace, you mean debug? If yes then where should I place break points? And How can i check what is being actually deployed to the tomcat server? Honestly I've never done it.. And I've got a hunch, this is my deploying fault.
When I deploy my app for the first time, I rgiht click on project, New -> Server, and than add Tomcat. After this, I open added tomcat configuration and in Modules tab -> Add External Web Module, and from browse i set path to my app's target folder. Is it correct? Should I do this in another way? After this i start server in debug mode. The rest you already know..


EDIT: Ok, I've just figured it out Just like i thought, i deployed to tomcat the whole target folder instead of the one correct subfolder of it, with the name of my project Now it seems to work properly. Thanks very much for pointing these thigs.
9 years ago
Thanks for pointing me these mistakes. After correction, my web.xml looks now like this:



Unfortunately, my problem still exists the same way it did before. Any further advices?
It seems like struts dispatcher is ommited.. I don't know why :/
9 years ago
Hi, I'm trying to build web application using Struts2 (2.2.1.1), Maven2 in Eclipse (Helios). I was trying to do it according to official tutorial:
http://struts.apache.org/2.x/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html
However for making maven app skeleton I used plugin from: http://m2eclipse.sonatype.org/installing-m2eclipse.html and created Maven Project.
In the result when I try to enter: http://localhost:8080/test_app/index.action, I'm getting HTTP Status 404 - /test_app/index.action.
Moreover, there are completly no logs apart from server starting in console :/ Not any struts logs :/

Below is my source code:

--log4j.xml--


--struts.xml--


--web.xml--


--pom.xml--


Folder structure of project:
http://img339.imageshack.us/i/navigatorfolderstructur.jpg

I'm running it on Tomcat 7.0
Please help, what am I doing wrong? I'm quite deseperate..

Thanks.
9 years ago