This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes HttpServletRequest cannot be resolved 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 "HttpServletRequest cannot be resolved" Watch "HttpServletRequest cannot be resolved" New topic
Author

HttpServletRequest cannot be resolved

Nguyen Phuoc
Greenhorn

Joined: Apr 23, 2011
Posts: 15
Hi all
I see a problem when create new servlet

I using Eclipse Helios ,JDK 1.6.0_25 .Please help me fix this err
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Nguyen,
Welcome to CodeRanch! Do you have a servlet.jar or jee.jar in the classpath of your Eclipse project? This jar comes with your server (Tomcat, JBoss, etc)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Nguyen Phuoc
Greenhorn

Joined: Apr 23, 2011
Posts: 15
Jeanne Boyarsky wrote:Nguyen,
Welcome to CodeRanch! Do you have a servlet.jar or jee.jar in the classpath of your Eclipse project? This jar comes with your server (Tomcat, JBoss, etc)

thank Jeanne
are you help me add file servlet.jar to classpath ?I begin using eclipse.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

In your Eclipse project, got to Project | Properties, select Java Build Path then click the Libraries tab. Then click Add JARs and browse to the location for the file within the Tomcat directory.

By the way, since you are new to Eclipse I highly recommend reading the help text (Help | Help Contents), especially the Workbench User Guide, Java Development User Guide and Web Tools Platform User Guide. Those topics should tell you almost everything you need to be productive with Eclipse.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpServletRequest cannot be resolved
 
Similar Threads
The type javax.servlet.http.HttpServletRequest cannot be resolved. iIt is ndirectly referenced...
java.lang.NoClassDefFoundError: javax/el/ValueExpression
Tomcat deployement Problem SEVERE: Error listenerStart
Constant specific class body
Help me writing an ACTION class in eclipse