TomCat Error: The requested resource (/search.jsp) is not available.

Posted on 2009-05-01
Last Modified: 2013-12-14
Hello everyone,

I am having a problem getting my web-app to run on a new server.
I am getting the popular:
HTTP Status 404 - /search.jsp
type Status report
message /search.jsp
description The requested resource (/search.jsp) is not available.
Apache Tomcat/5.5

I am running it on UBUNTU 9.04, Apache 2.2, TomCat 5.5 with the following settings:

Using CATALINA_BASE:   /usr/share/tomcat5.5
Using CATALINA_HOME:   /usr/share/tomcat5.5
Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun
Server version: Apache Tomcat/5.5
Server built:   Nov 18 2008 02:14:57
Server number:
OS Name:        Linux
OS Version:     2.6.28-11-generic
Architecture:   i386
JVM Version:    1.6.0_13-b03
JVM Vendor:     Sun Microsystems Inc.

My JK-connector is working and all other Java-apps, Manager, Admin, Examples run just fine.

The webapp that is acting up is on a virtual server with this configuration file:
NameVirtualHost *:80
<VirtualHost *:80>
<Directory /srv/www/dgcssintranet/www>
      Options -Indexes
      AllowOverride All

ServerName dgcssspare
DocumentRoot /srv/www/dgcssintranet/www
AddDefaultCharset Off

JkMount /*.jsp worker1
JkMount /servlet/* worker1

ErrorLog /srv/www/dgcssintranet/logs/error.log
CustomLog /srv/www/dgcssintranet/logs/access.log common

LogLevel debug
ServerSignature off

RewriteEngine on
RewriteLog /srv/www/dgcssintranet/logs/rewrite.log
RewriteLogLevel 9

The  directory has an WEB-INF folder with this web-xml-file:
<web-app id="WebApp_ID" version="2.4" xsi:schemaLocation="">










The only differences between this installation and the previous is that this is being asked to run on an upgraded system: On the original system it runs just fine on UBUNTU 6.04, TomCat 5 and Java 1.5...

Please help - this is driving me up the wall!

Michael Barner
    LVL 27

    Assisted Solution

    Can you see that your web app is deployed or not    in the manager page ?
    What are the special characters (seen as boxes) ?  in your web app's web.xml  ?
    Any messages in the console or logs ?  

    Accepted Solution

    This problem is now swolved.

    Turns out, that TomCat by default installs a ROOT context in it's /WebApps folder, so when I tried to run my webapp as a root context, /, it couldn't because there was already something there.
    I deleted the ROOT.XML-file fom /etc/tomcat5.5/Catalina/localhost folder and setup the real defaulthost in server.xml:

    - <Engine name="Catalina" defaultHost="dgcssintranet">
    ...- <Host name="dgcssintranet" appBase="/srv/www/dgcssintranet/www/" unpackWARs="true" autoDeploy="true">
    - <Host name="dgcssintranet" appBase="/srv/www/dgcssintranet/www/" unpackWARs="true" autoDeploy="true">
      <Context path="/" docBase="" reloadable="true" />

    Finally, that made everything work.

    Thanks for the input rrz - it was a message in one of the access logs that put me on the right track!


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now