• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Ranch Hand
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vic,

Which application server are you using?
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vic,

Are you getting any output on the Console? Can you tell what is going on from the Console output?
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried it in the browser . And it shows the same output ..
 
Robert Heath
Ranch Hand
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



The same output as what?
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's great! Congratulations!!
 
Robert Heath
Ranch Hand
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob,
Pardon my ignorance if im wrong , but isnt myeclipse a paid ide?
 
Robert Heath
Ranch Hand
Posts: 94
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Greenhorn
Posts: 2
MyEclipse IDE Firefox Browser Pulse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info guys!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic