This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in running the application

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • 0
  • 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
  • 0
  • 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: 1599
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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