File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi, I am using eclipse galileo, but it does not work on right way with servlets.

 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am currently using eclipse galileo and NetBeans 6.8 IDE. I am doing the servlet programming with these IDEs. I open completely two separate projects with these.

NetBeans 6.8 working just fine. But eclipse galileo creates problem.

I create new project by clicking "file->dynamic web project". that works well. but when i create a servlet under this project, eclipse generates the default servlet where all the servlet related packages and objects marks as underline. That means that, eclipse or some points of eclipse configuration can not locate the servlet objects and packages properly.

to solve the problem i delete the eclipse ide and unpack and setup eclipse galileo sevaral times. I am using tomcat v.6.0.24 as web server. but the problem remains same.


can anyone please help on this issue, please? It's urgent.

Regards
codeperl
 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
someone please help me on this issue.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess, you never use eclipse before . Create a new web project[It will ask you to runtime configuration for a server] . and create a package(example, com.google) and then create a Servlet.

If you dont want to configure server in eclipse , then use Ant build tool to deploy the application into server location
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse doesn't contain a copy of Tomcat or for that matter, any J2EE server. If you want to reference J2EE classes, you have to tell your project where to find copies of them.

A simple way to do that is to go to the Project Properties/Build/Libraries options page and add external entries for the jsp-api.jar and servlet-api.jar files in the lib directory of a copy of Tomcat that's been installed on your system.

For project portability, you can define these libraries as symbolically-named resources using the Eclipse Preferences editor, then include their symbolic references in your project.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic