• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Can't start tomcat

 
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.
 
Ranch Hand
Posts: 466
1
IntelliJ IDE Oracle Java
  • 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.
 
pie. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic