This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes resource not found error- Struts 2 (Struts2 in action- Manning) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "resource not found error- Struts 2 (Struts2 in action- Manning)" Watch "resource not found error- Struts 2 (Struts2 in action- Manning)" New topic
Author

resource not found error- Struts 2 (Struts2 in action- Manning)

Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hi All,
I'm a newbie to Struts2 ,and ive tried and deployed applications using eclipse before.But ,somehow i cant seem to deploy a struts2 application that i found in Manning's "Struts2 In action".
I tried following the instruction at this link , but without any use.

Manning Forum :Deployment guide
It throws the following error.


HTTP 404--

The requested resource (/Struts2InAction/) is not available.

Please Help.

Thanks in advance.



Learning and Learning!-- Java all the way!
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic,

Your link is broken.

Try this link. It is a link to the Forums for the book. http://www.manning-sandbox.com/forum.jspa?forumID=351

Good luck - Bob
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Robert Heath wrote:Vic,

Your link is broken.

Try this link. It is a link to the Forums for the book. http://www.manning-sandbox.com/forum.jspa?forumID=351

Good luck - Bob



I actually meant this Link...Manning thread on Deployment
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic,

Which application server are you using?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

H Rob,
Thanks for replying . Sorry for the delay . Right now I'm using the Apache Tomcat application container but I'm not sure whether that would serve the purpose of being an application server.
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic Hood wrote:H Rob,
Thanks for replying . Sorry for the delay . Right now I'm using the Apache Tomcat application container but I'm not sure whether that would serve the purpose of being an application server.


Vic,

Tomcat? Tomcat should work fine. I just got the "Struts 2 In Action" sample programs working, using Tomcat version 6.0.30. Do you try to run the sample programs from Eclipse, by right clicking on the Project, and selecting it to run from Tomcat?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Vic,

Tomcat? Tomcat should work fine. I just got the "Struts 2 In Action" sample programs working, using Tomcat version 6.0.30. Do you try to run the sample programs from Eclipse, by right clicking on the Project, and selecting it to run from Tomcat?


Yes, by right clicking on the project ->Run and then Run on server .
and then selecting the particular project and server (tomcat in this case ).
Sorry for the delay and appreciate your response Rob!!I still cant quite understand why im not being able to depoly them :s
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic,

Are you getting any output on the Console? Can you tell what is going on from the Console output?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hi Rob,
Sorry once again for the delay. Got busy with other work on the project > i tried looking at the console output but was unable to infer anything . I have placed it below for your reference .Please advise on what i should be doing next to get the application running.
Thanks.


.
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Well, Tomcat started. You are using 6.0.29, which should be OK.

What happens if you go to your browser of choice and type localhost:8080 into the url window.
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

I tried it in the browser . And it shows the same output ..
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic Hood wrote:I tried it in the browser . And it shows the same output ..


The same output as what?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Robert Heath wrote:
Vic Hood wrote:I tried it in the browser . And it shows the same output ..


The same output as what?

Hi Rob,
The same output as running in the browser also shows... resource not found


HTTP 404--

The requested resource ((/Struts2InAction/) is not available.
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic,

Are you sure that you are typing localhost:8080 in the url window? If you are, and Tomcat has started, you should get a window talking about Tomcat. If you don't get a window talking about Tomcat, then Tomcat did not start.
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hi Rob.
I am getting the tomcat manager(localhost:8080) and upon clicking the project from the tomcat application manager , it shows the resource not found error.(ie. the same error as before
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic Hood wrote:Hi Rob.
I am getting the tomcat manager(localhost:8080) and upon clicking the project from the tomcat application manager , it shows the resource not found error.(ie. the same error as before


OK, it sounds like Tomcat is running. Keep in mind that I don't see your computer screen. When I ask a question, and you don't read the question correctly, and give me an answer to the wrong question, you don't get any where if you are going to use my help.

Now, are you looking at the Servers window? You can get there by going to Window>Show View>Servers. Does Apache Tomcat appear there? If so, what is the status (eg. Stopped, Started, ...)? Is there a "plus" box to the left of Apache Tomcat that expands Apache Tomcat? If so, does the app appear in a subordinate role to Apache Tomcat?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Robert Heath wrote:
Vic Hood wrote:Hi Rob.
I am getting the tomcat manager(localhost:8080) and upon clicking the project from the tomcat application manager , it shows the resource not found error.(ie. the same error as before


OK, it sounds like Tomcat is running. Keep in mind that I don't see your computer screen. When I ask a question, and you don't read the question correctly, and give me an answer to the wrong question, you don't get any where if you are going to use my help.

Now, are you looking at the Servers window? You can get there by going to Window>Show View>Servers. Does Apache Tomcat appear there? If so, what is the status (eg. Stopped, Started, ...)? Is there a "plus" box to the left of Apache Tomcat that expands Apache Tomcat? If so, does the app appear in a subordinate role to Apache Tomcat?



Hi Rob,
I finally deployed the whole application on a fresh install of eclipse and tomcat on my laptop and it works perfectly. I still dont know what was wrong on the other computer . Thanks a ton for helping out Rob!!
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

That's great! Congratulations!!
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic,

I have one other thing that you might want to consider. MyEclipse has an excellent graphical tool for Struts 2 support. However, you will need to get their pre-release tutorial to make sense of the graphical tool. I contacted their support group for the tutorial, and they gave it to me. Make sure that you ask for the source code of the tutorial example too!
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Rob,
Pardon my ignorance if im wrong , but isnt myeclipse a paid ide?
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

Vic Hood wrote:Rob,
Pardon my ignorance if im wrong , but isnt myeclipse a paid ide?


Vic,

Yes it is. I am paying $65/year for a subscription. It has really helped me get a handle on Struts 2 with their graphical tool. I consider $65 to be a bargain if it reduces my learning curve and enables me to get a grasp of this technology quicker.

But you can get a trial version for 30 days if you just want to give it a try.

Bob
Brian Fernandes
Greenhorn

Joined: Jan 27, 2011
Posts: 2

Struts 2 support, including the graphical editor is also available in MyEclipse Standard Edition, which is ~ $30. We spent quite a bit of time on our Struts 2 tooling - besides the graphical editor, we also have good source editing support which includes Struts 2 specific content assist and validation. There is a Struts 2 specific Outline view and Struts 2 wizards as well.

As Robert pointed out, we will be making the tutorial and an example project available for the 9.0GA release, due mid Feb.


MyEclipse Product Manager
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Thanks for the info guys!
Sam House
Greenhorn

Joined: Jun 14, 2010
Posts: 5
Hello Vic, probably you could not get it to work on first computer due to version mismatch in server and jre. I had tcat 6.0 but jre pointing to 1.4 and it gave me same error as yours (resource does not exist). But I changed my jre to point to 6 and it works fine now.


Thanks a lot!
-Sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resource not found error- Struts 2 (Struts2 in action- Manning)
 
Similar Threads
migration to Struts2
Intergration of Struts2 and EJB3.0 using struts2-ejb3-plugin
web.xml problem in struts2
Struts2 Convention plugin with junit plugin
Exception starting filter struts2