Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in running the application

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic