File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes The requested resource is not available in Netbeans 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 "The requested resource is not available in Netbeans" Watch "The requested resource is not available in Netbeans" New topic
Author

The requested resource is not available in Netbeans

catrine ohm
Greenhorn

Joined: Mar 07, 2012
Posts: 13

Hi friends,
I have a web application.I have a problem about form action to Servlet.When I submit form I get this error:"The requested resource (/EventServlet) is not available ."My servlet name is: EventServlet.

web.xml


and my form.jsp code is:


My file manager is:
ROOT
|
|_public_html
|
|_cgi-bin
|_images
|_form.jsp
|_WEB-INF
|_web.xml
|_lib
|_classes
|_com
|_EventServlet.java

I researched this error and solution.But I can not find solution.I tried many solution but it does not work.What can I do?I am waiting your golden comments

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

whether your WEB-INF--->classes contains com.EventServlet.class?
catrine ohm
Greenhorn

Joined: Mar 07, 2012
Posts: 13

Hi,

No, it does not contain EventServlet.class.Only EventServlet.java
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60816
    
  65

You must compile the servlet first. The .java file is useless for deployment.

Also see the ServletsFaq for more info.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
catrine ohm
Greenhorn

Joined: Mar 07, 2012
Posts: 13

Hi,
I deployed project in NetBeans.Then I uploaded EventServlet.class in classes folder.But I get the same error. The requested resource (/EventServlet) is not available.How can I solve this Problem?What's wrong?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60816
    
  65

You need to configure things correctly in Netbeans. As that's an IDE issue, not a servlet issue, I've moved this to the IDEs forum.
catrine ohm
Greenhorn

Joined: Mar 07, 2012
Posts: 13

I hane developed project in Netbeans.Now I want to move project in server.I moved .jsp files, servlets.java, servlet.class and web.xml files.But I get error.Is it related Netbeans or server configuration?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: The requested resource is not available in Netbeans
 
Similar Threads
Need some help regarding sessions
Problem with simple HTML - Servlet login
no ContextLoaderListener exception
Is there something wrong with the RequestDispatcher?
Resource not found