Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » HTTP Status 404(the request resource(/struts_sample/) is not available)
HTTP Status 404 [message #693191] Tue, 05 July 2011 21:40 Go to next message
duanqi  is currently offline duanqi
Messages: 11
Registered: June 2011
Junior Member
Hi,
I have done two demos which depend on struts2 framework in Virgo.After deployed the demo in Virgo,the STS reported the core message:
<WE0001I> Starting web bundle 'struts2_sample' version '1.0.0' with context path '/struts2_sample'.
So,I tried to input "localhost:8080/struts2_sample" in browser which repsoned with the request resource(/struts_sample/) is not available
did that mean Virgo didn't load the web.xml file or the other reasons?
Re: HTTP Status 404 [message #693327 is a reply to message #693191] Wed, 06 July 2011 05:16 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
According to the response, there was a typo in your input. Please could you check.
Re: HTTP Status 404 [message #693451 is a reply to message #693327] Wed, 06 July 2011 09:57 Go to previous messageGo to next message
duanqi  is currently offline duanqi
Messages: 11
Registered: June 2011
Junior Member
Hi Glyn,
It's my careless to type the incorrect content while the browser just output the request resource(/struts2_sample/) is not available.
I had checked log file which didn't report any errors,neither the console of STS.So I suspected that the Virgo didn't load the web.xml of struts2_sample.could you give me some other suggestions,Very thanks.
duanqi

[Updated on: Fri, 08 July 2011 08:57]

Report message to a moderator

Re: HTTP Status 404 [message #693497 is a reply to message #693451] Wed, 06 July 2011 11:18 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
There is no web.xml in the bin directory of the attached rar file, so please check that the bundle actually contains a web.xml.
Re: HTTP Status 404 [message #693986 is a reply to message #693497] Thu, 07 July 2011 11:24 Go to previous messageGo to next message
duanqi  is currently offline duanqi
Messages: 11
Registered: June 2011
Junior Member
Hi Glyn,
I really hope you can read my statement over and give me some advices.your help will affect my work a lot.Very thanks advanced.My statement is:

My goal:I want integrate SSH(Struts2,Spring,Hibernate) with Virgo.Because I had own some bundles which consist of SSH framework and my applications based on the SSH.In order to take advantage of Virgo server and know more about OSGi,so I decide to run my applications in Virgo.

My process:Firstly,I integrate the Struts2 in Virgo.I have made Struts2.core bundle into repository/usr file.Then I try to write some demos based on Struts2.core in Virgo.When STS compile the demo successfully,I try to visit this demo by browser which response with the content of HTTP Status 404.

My questions: 1、how can I know the Virgo load Web applications clearly or the Virgo communicate with SSH?
2、need I analysis the code of Virgo?
3、Where can I download the code of Virgo?
4、could you help me to organize my thoughts where should I start from?
very very thanks!

[Updated on: Fri, 08 July 2011 08:46]

Report message to a moderator

Re: HTTP Status 404 [message #694282 is a reply to message #693986] Fri, 08 July 2011 05:14 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
I would look for Tomcat logging output in serviceability/logs/log.log to see what is causing the 404. If you need to look at the Virgo code, it is all available via git - see the wiki. Apart from resource finding, the path for a web request in Virgo Web Server/Virgo Tomcat Server is very much like vanilla Tomcat, so you can use Tomcat debugging techniques.
Re: HTTP Status 404 [message #694374 is a reply to message #694282] Fri, 08 July 2011 08:56 Go to previous message
duanqi  is currently offline duanqi
Messages: 11
Registered: June 2011
Junior Member
Hi Glyn,
The struts2_sample's running log.log have been added in the Attachment.Thanks for your patience.
  • Attachment: log.log
    (Size: 202.41KB, Downloaded 88 times)
Previous Topic:V3M6: Questions regarding configuration and servlet container versions
Next Topic:Spring WS
Goto Forum:
  


Current Time: Tue Jul 29 06:50:16 EDT 2014

Powered by FUDForum. Page generated in 0.02895 seconds