• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with compiling with Eclipse

 
Milton Stemmler
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Marc,

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

Milton S.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic