• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in running the application

 
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am able to start the Apache server. I placed a folder called "test" under "webapps" and placed a html file "test1.html" under it.

Now, when i gave http://localhost:8080/test/test1.html, i get
/test is not available.
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can you tell me as to why i get this kind of error.
With regards,
Padma priya N.G.
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi priya!
I believe your localhost:8080 is mapped to webapps
now localhost:8080/test would search for webapps/test folder
and localhost:8080/test/test1.html would search for webapps/test/tes1.html

Do you have folder by name "test" in webapps? or did you try running localhost:8080/test1.html? (removing "/test")
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I did not create WEB_INF folder and did not place web.xml within it. Thats why, it did not recognize it. Now, after the addition, it is working fine.
With regards,
Padma priya N.G.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by padmapriyagururajan priya:
Hi,
I am able to start the Apache server. I placed a folder called "test" under "webapps" and placed a html file "test1.html" under it.



The Apache Web Server or Apache Tomcat?
They're two different products and the first can not host Java applications.
reply
    Bookmark Topic Watch Topic
  • New Topic