This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't start tomcat

 
Qualtar Demix
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i start tomcat it gives the following log:



My directory structure is:
D:\apache-tomcat-7.0.26\webapps\Coke-v1\WEB-INF

I know this question has been asked before, but that solution does not work in my case.
I added users in tomcat-users.xml, but to no avail. The issue persists.
My tomcat-users.xml looks like :



i am using apache-tomcat 7.0.26

**On a side note :
What effect would running apache have on this?
I have started and then stopped apache from taskbar. Still, no effect.
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is some issue with your web.xml file.
 
Qualtar Demix
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vinod,
I did the proper mapping in my web.xml and now the tomcat server is starting without any exception. But i don't understand. I haven't created corresponding class. Why do i need to write web.xml. All i want is to run my form.html on a browser. Shouldn't i use a simply blank web.xml.

Also my form.html is not opening. Browser says "Unable to connect".
I tried netstat -aon on my command prompt to see which pid is using port 8080 but the result shows that no service is using 8080.
URL i typed: http://localhost:8080/Coke-v1/form.html

 
Qualtar Demix
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem resolved finally....
Instead of using port 8080 i used the port given in tomcat logs (8085 in my case)....
http://localhost:8085/Coke-v1/form.html
And no mapping is needed in web.xml. We can simply write the web.xml with headers and no mapping. It will not load any class but the first form page loads just fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic