Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
someone please help me on this issue.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 24824
172
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic