This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

HF p176 example compile error

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe there is a typo in my code, but my codes are compiled without error.
I got this error msg when i try to run the example.

Thanks

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you want to paste yr servlet code here? clearly the container is calling service() and service can't find doGet()

your servlet will compile with doGet() "incorrectly" over-riddden : there's no law against that.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ming,
I think I need a little more info as well... there isn't any code on page 176, so I'm not sure exactly where your issue is.

Thanks!!
-Kathy
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got compile errors as below:

D:\tomcat\webapps\listenerTest\classes\com\example\ListenerTester.java:11: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog= (Dog) getServletContext().getAttribute("dog");
^
D:\tomcat\webapps\listenerTest\classes\com\example\ListenerTester.java:11: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog= (Dog) getServletContext().getAttribute("dog");
^
2 errors

Any one can help?
 
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/730700/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic