• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Error 500

 
John Hewitson
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Rather wondering if there might be a simple explanation for this error log? Tomcat8 can't load the basic servlet 'SimpleServlet'and the 'HTTP Error 500'displays. Any insight is very welcome ok
 
K. Tsang
Bartender
Posts: 3604
16
Firefox Browser Java Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is your web.xml look like? If use annotations, what does the servlet look like?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a list of items to work though in the ServletsFaq to make sure things are set up correctly.
 
John Hewitson
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies! Either out.println("<!DOCTYPE ........ or .;C:/%JAVA_HOME%\lib; made all the difference. "public class SimpleServlet extends GenericServlet {}" was the heading ok
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you extending GenericServlet versus HttpServlet?
 
John Hewitson
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to build from the bottom......up, "public void init(ServletConfig config) ...... also has been considered, thanks for the interest.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Hewitson wrote:Trying to build from the bottom......up

Why?
 
John Hewitson
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a mid nineteenth century mindset a cautious approach dominates my outlook, also the authors from 10 years or so back are more appealing, as far as I am concerned. Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still not getting what is "cautious" about extending GenericServlet. It's just not a useful thing to do. But to each...
 
Dave Tolls
Ranch Hand
Posts: 2270
23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Hewitson wrote:With a mid nineteenth century mindset a cautious approach dominates my outlook, also the authors from 10 years or so back are more appealing, as far as I am concerned. Regards


I now have the mental image of someone driving a Benz Motorwagen, because a Model T Ford is simply too much modern frippery.
;)

(I expect this is a learning exercise and a way of looking into how the nuts and bolts fit together)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!