Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Requested Resource is Not available - web.xml / servlet mapping looks perfect

Reply
Thread Tools

Requested Resource is Not available - web.xml / servlet mapping looks perfect

 
 
PythonAnimal@gmail.com
Guest
Posts: n/a
 
      11-10-2005
I am on a unix box running Tomcat 5.0.19. I keep getting a request
resource (/loneservlet) is not available. I recompiled my servlet on
the unix box just incase there was a diff version of java. I tried
everything here is my setup. I developed on JBuilder X using tomcat
4.1 and sent over the WAR file. On the unix box I know have problems.
I can have one JSP forward to another JSP, but I cna not find my
servlet

<servlet>
<servlet-name>loneservlet</servlet-name>
<servlet-class>simpleproject.LoneServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>loneservlet</servlet-name>
<url-pattern>/loneservlet</url-pattern>
</servlet-mapping>

<form method='GET' action="/loneservlet">

class location
SimpleWebProject/WEB-INF/classes/simpleproject
simpleproject.class

JSP location
SimpleWebProject

package simpleproject;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.io.IOException;

public class LoneServlet extends HttpServlet {}

This is a straight forward setup I do not understand why I receive this
message
description The requested resource (/loneservlet) is not available.

Appreciate it. It seems the JSP can not find the servlet, but I have
the directories set up correctly. Thanks-so much.

does this heaeder
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.d
td">
need to be changed among diff tomcats?
Thanks again

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! requested resource not available garhone Java 8 08-15-2008 03:03 PM
Tomcat "requested resource not available" / MVC question danntee Java 0 09-22-2007 11:51 PM
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
JSF driving me nuts - requested resource is not available timasmith@hotmail.com Java 3 08-15-2006 03:54 PM
J2EE deploytool: The requested resource is not available. Robert Mark Bram Java 1 10-12-2004 11:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57