This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes How do i create servlet program without EE pluing in  Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How do i create servlet program without EE pluing in  Eclipse" Watch "How do i create servlet program without EE pluing in  Eclipse" New topic
Author

How do i create servlet program without EE pluing in Eclipse

kaviyazhagan kajendiran
Greenhorn

Joined: Apr 24, 2011
Posts: 4

Hi all,

I am new guy of J2ee and i have to develop servlet application in eclipse IDE without EE plugin on ubuntu...plase let me kow if know

Thanks
Kavik
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

With a text editor?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19725
    
  20

That's how I've been doing it. You just need to make sure that you add the servlet.jar file to your class path when you compile the servlets.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
kaviyazhagan kajendiran
Greenhorn

Joined: Apr 24, 2011
Posts: 4

After compiling my servlet application. The server throws exception as mentioned below

HTTP Status 404 - /sample/

type Status report

message /sample/

description The requested resource (/sample/) is not available.

please can you guide me on that

Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Have you properly set up the servlet and its mapping in the deployment descriptor?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do i create servlet program without EE pluing in Eclipse