michaelbarnerrasmussen
asked on
TomCat Error: The requested resource (/search.jsp) is not available.
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: 5.5.26.0
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
</Directory>
ServerName dgcssspare
DocumentRoot /srv/www/dgcssintranet/www
AddDefaultCharset Off
JkMount /*.jsp worker1
JkMount /servlet/* worker1
ErrorLog /srv/www/dgcssintranet/log s/error.lo g
CustomLog /srv/www/dgcssintranet/log s/access.l og common
ServerAdmin mbr@hum.ku.dk
LogLevel debug
ServerSignature off
RewriteEngine on
RewriteLog /srv/www/dgcssintranet/log s/rewrite. log
RewriteLogLevel 9
</VirtualHost>
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">
<display-name>Intranet</di splay-name >
<servlet>
<description>
</description>
<display-name>SearchServle t</display -name>
<servlet-name>SearchServle t</servlet -name>
<servlet-class>dk.dgcss.in tranet.sea rchengine. SearchServ let</servl et-class>
</servlet>
<servlet>
<description>
</description>
<display-name>
AjaxResultServlet</display -name>
<servlet-name>AjaxResultSe rvlet</ser vlet-name>
<servlet-class>
dk.dgcss.intranet.searchen gine.AjaxR esultServl et
</servlet-class>
</servlet>
<servlet>
<description>
</description>
<display-name>
CSVExport</display-name>
<servlet-name>CSVExport</s ervlet-nam e>
<servlet-class>dk.dgcss.in tranet.sea rchengine. result.CSV Export</se rvlet-clas s>
</servlet>
<servlet-mapping>
<servlet-name>SearchServle t</servlet -name>
<url-pattern>/servlet/Sear chServlet/ *</url-pat tern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AjaxResultSe rvlet</ser vlet-name>
<url-pattern>/servlet/Ajax ResultServ let</url-p attern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CSVExport</s ervlet-nam e>
<url-pattern>/servlet/CSVE xport/*</u rl-pattern >
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</ welcome-fi le>
<welcome-file>index.htm</w elcome-fil e>
<welcome-file>index.jsp</w elcome-fil e>
<welcome-file>default.html </welcome- file>
<welcome-file>default.htm< /welcome-f ile>
<welcome-file>default.jsp< /welcome-f ile>
</welcome-file-list>
</web-app>
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!
Sincerely,
Michael Barner
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: 5.5.26.0
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
</Directory>
ServerName dgcssspare
DocumentRoot /srv/www/dgcssintranet/www
AddDefaultCharset Off
JkMount /*.jsp worker1
JkMount /servlet/* worker1
ErrorLog /srv/www/dgcssintranet/log
CustomLog /srv/www/dgcssintranet/log
ServerAdmin mbr@hum.ku.dk
LogLevel debug
ServerSignature off
RewriteEngine on
RewriteLog /srv/www/dgcssintranet/log
RewriteLogLevel 9
</VirtualHost>
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">
<display-name>Intranet</di
<servlet>
<description>
</description>
<display-name>SearchServle
<servlet-name>SearchServle
<servlet-class>dk.dgcss.in
</servlet>
<servlet>
<description>
</description>
<display-name>
AjaxResultServlet</display
<servlet-name>AjaxResultSe
<servlet-class>
dk.dgcss.intranet.searchen
</servlet-class>
</servlet>
<servlet>
<description>
</description>
<display-name>
CSVExport</display-name>
<servlet-name>CSVExport</s
<servlet-class>dk.dgcss.in
</servlet>
<servlet-mapping>
<servlet-name>SearchServle
<url-pattern>/servlet/Sear
</servlet-mapping>
<servlet-mapping>
<servlet-name>AjaxResultSe
<url-pattern>/servlet/Ajax
</servlet-mapping>
<servlet-mapping>
<servlet-name>CSVExport</s
<url-pattern>/servlet/CSVE
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</
<welcome-file>index.htm</w
<welcome-file>index.jsp</w
<welcome-file>default.html
<welcome-file>default.htm<
<welcome-file>default.jsp<
</welcome-file-list>
</web-app>
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!
Sincerely,
Michael Barner
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.