Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2009-05-01
Medium Priority
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

ServerAdmin mbr@hum.ku.dk
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="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">










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 28

Assisted Solution

rrz earned 800 total points
ID: 24279908
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

michaelbarnerrasmussen earned 0 total points
ID: 24303149
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

The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

580 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