• 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

500 internal server error

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
i have installed 4.0.5
but on typing http://localhost:8080
i am getting 500 Internal Server error in the browser.
what shoul i do
also where should i place my servlets to access them as
http://localhost:8080/servlet/myservlet
the book says in the server_root/webapps/ROOT/WEB-INF/classes
directory but there is no such classes dir. in WEB-INF
should i create it.
thanx
madhur.
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


hi!
i have installed 4.0.5


Tomcat?


but on typing http://localhost:8080
i am getting 500 Internal Server error in the browser.
what shoul i do


Hmmm....
Run Tomcat in verbose mode and see if you can see an exception stack trace.


also where should i place my servlets to access them as
http://localhost:8080/servlet/myservlet
the book says in the server_root/webapps/ROOT/WEB-INF/classes
directory but there is no such classes dir. in WEB-INF
should i create it.


Yes create it. Compile your servlets and put them there. You will also need to create a web application deployment descriptor, and then create a servlet mapping to map your servlet to the URL you listed.
What book are you using?
 
Onion rings are vegetable donuts. Taste this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic