• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with compiling with Eclipse

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know, I know, I'm supposed to be using some simple text editor and command line compling but I like to use Eclipse and I like gaining experience with its use. I am having some trouble getting my servlets to work under Tomcat when I compile with Eclipse.

Eclipse gives no errors for my code but when I move the *.class file to Tomcat and try to run the servlet Tomcat comes back with the following error:

"javax.servlet.ServletException: Class com.example.web.BeerSelect is not a Servlet"

If I compile the exact same code at the command line using the example on page 81 of HFSJ it works fine.

I am using the tomcat\common\lib\servlet-api.jar file on my path in Eclipse. Any ideas of why this is happening.

Thanks,

Milton S.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not 100% sure, but I don't think Eclipse supports J2EE out-of-box. You'd have to add a third party plugin like Lomboz.
 
Milton Stemmler
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marc,

Right you are. I installed Lomboz and my servlet worked. Thank you for your help.

Milton S.
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi milton

please provide me the installation details for Lomboz

thanks
niranjan
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi milton

please provide me the installation details for Lomboz

thanks
niranjan
 
Milton Stemmler
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Niranjan,

Just go to the link below to download the 3.1.2 plugin. Unzip to the Eclipse plugin directory and either restart Eclipse or start Eclipse up and you will be ready to go.

http://lomboz.objectweb.org/downloads/download.php

Milton S.
 
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic