wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Hi, I am using eclipse galileo, but it does not work on right way with servlets. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Hi, I am using eclipse galileo, but it does not work on right way with servlets." Watch "Hi, I am using eclipse galileo, but it does not work on right way with servlets." New topic
Author

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

Mohammad Ashrafuddin Ferdousi
Ranch Hand

Joined: Jan 14, 2010
Posts: 111
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

Joined: Jan 14, 2010
Posts: 111
someone please help me on this issue.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Jun 25, 2001
Posts: 15964
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hi, I am using eclipse galileo, but it does not work on right way with servlets.
 
Similar Threads
How to run JUnit test in Netbeans 4.0
store image in mysql using visual jsf in netbeans 6
Tomcat errors while developing web services using Eclipse 3.5, Tomcat 6.0, Axis2 1.4
Netbeans6.8 encoding problem
Deploying Project