| Author |
Netbeans + Servlets
|
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
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
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
|
Did you select new web project?
|
Swastik
|
 |
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
|
yes I did
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
|
If you expand the libraries tree, do you get servlet-api.jar under that?
|
 |
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
|
mmm, no,meaby that's the problem
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
|
However if glassfish is selected as server, the file name is probably javaee.jar.
|
 |
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
|
Actually I use jbos
|
 |
Swastik Dey
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
|
You can try adding the required jar manually from project properties.
|
 |
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
|
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
Ranch Hand
Joined: Jan 08, 2009
Posts: 1195
|
|
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: 56185
|
|
|
Please be sure to ask IDE questions in the IDE forum. I have moved this post there for you.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Laura Barroso
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
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
Greenhorn
Joined: Sep 21, 2009
Posts: 29
|
|
well problem solve! I use servlet-api Thanks!!!
|
 |
 |
|
|
subject: Netbeans + Servlets
|
|
|