This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans + Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans + Servlets" Watch "Netbeans + Servlets" New topic
Author

Netbeans + Servlets

Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
In my J2EE application I use a servlet, but Netbeans doesn't appears to recongnice the libraries javax.servlet.http.HttpServlet, javax.servlet.http.HttpServletRequest, or javax.servlet.http.HttpServletResponse, is valid to mention that I use Netbena 6.7...how can I fix the problem???
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

Did you select new web project?


Swastik
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
yes I did
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

If you expand the libraries tree, do you get servlet-api.jar under that?
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
mmm, no,meaby that's the problem
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

However if glassfish is selected as server, the file name is probably javaee.jar.
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
Actually I use jbos
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

You can try adding the required jar manually from project properties.
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
That's what I want to do...only that I need the servlet-api.jar...I try to download from the sun page, but the page says: Your download transaction cannot be approved...is there any other source where I can download this file???
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

This might help you


http://www.coderanch.com/t/89210/JBoss/did-not-get-javax-servlet
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Please be sure to ask IDE questions in the IDE forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
I don't have the specified file...the only file that seems a litle is jboss-javaee... however I put it among the other libraries but netbeans still dont recognices javax.servlet
Laura Barroso
Ranch Hand

Joined: Sep 21, 2009
Posts: 30
well problem solve! I use servlet-api Thanks!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans + Servlets
 
Similar Threads
Tomcat 6 on NetBeans 5.5
How to Making remote event?
maven - dbunit - derby
change language English French label
servlet 404 error