Angela Day wrote:
Sorry for just getting back to this problem.  I had to go out of town.  Nothing 
is in the logs.  It just goes straight to 404 without hitting any code or 
erroring to the logs.  Below is what is in server.xml.  I also added the 
respective contexts to context.xml under META-INF.  Still the same error

Without being a great specialist of that kind of thing, it looks like you have your context (webapp) "csea" listed in BOTH a <Context> element in server.xml, AND in a context.xml file in the META-INF subdirectory. I think it is supposed to be either/or, with the one in server.xml strongly discouraged nowadays.


server.xml

      <Host
          name="localhost">
<Context path="/aims2" docBase="aims2" debug="0" reloadable="true" 
crossContext="true">
      <ResourceLink name="liarRealm"            global="liarRealm"/>
      <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
      <ResourceLink name="tdhca.liar.hashSalt"  global="tdhca.liar.hashSalt"/>
      <ResourceLink name="cmts-url"             global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="csea-url"             global="csea-url"/>
      <ResourceLink name="pm-url"               global="pm-url"/>
      <ResourceLink name="jdbc/cmts"            global="jdbc/cmts"/>
      <Environment name="serverName" type="java.lang.String" value="cmts"/>
        <ResourceLink name="envName" global="envName"/>
</Context>
<Context path="/base" docBase="base" debug="0" reloadable="true" 
crossContext="true">
      <ResourceLink name="liarRealm"            global="liarRealm"/>
      <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
      <ResourceLink name="tdhca.liar.hashSalt"  global="tdhca.liar.hashSalt"/>
      <ResourceLink name="cmts-url"             global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="pm-url"              global="pm-url"/>
      <ResourceLink name="jdbc/cmts"            global="jdbc/cmts"/>
      <Environment name="serverName" type="java.lang.String" value="cmts"/>
        <ResourceLink name="envName" global="envName"/>
</Context>

    <Context path="/mhweb" docBase="mhweb" debug="0" reloadable="true" 
crossContext="true">
          <ResourceLink name="dbinstance" global="dbinstance"/>
          <ResourceLink name="password" global="password"/>
          <ResourceLink name="mhweb-url" global="mhweb-url"/>
          <ResourceLink name="envName" global="envName"/>
      <Environment name="serverName" type="java.lang.String" value="mhweb"/>
        </Context>
<!--
<Context path="/helloworld" docBase="helloworld" debug="0" reloadable="true" 
crossContext="true">
      <ResourceLink name="liarRealm"            global="liarRealm"/>
      <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
      <ResourceLink name="tdhca.liar.hashSalt"  global="tdhca.liar.hashSalt"/>
      <ResourceLink name="cmts-url"             global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="pm-url"              global="pm-url"/>
      <ResourceLink name="jdbc/cmts"        global="jdbc/cmts"/>
      <Environment name="serverName" type="java.lang.String" value="cmts"/>
        <ResourceLink name="envName" global="envName"/>
</Context>
-->
<Context path="/csea" docBase="csea" reloadable="true" >
      <ResourceLink name="liarRealm"            global="liarRealm"/>
      <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
      <ResourceLink name="tdhca.liar.hashSalt"  global="tdhca.liar.hashSalt"/>
      <ResourceLink name="cmts-url"             global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="pm-url"              global="pm-url"/>
      <ResourceLink name="jdbc/cdb"        global="jdbc/cmts"/>
      <Environment name="serverName" type="java.lang.String" value="cmts"/>
          <ResourceLink name="envName" global="envName"/>
          <ResourceLink name="cseaPropertiesFile" global="cseaPropertiesFile"/>
</Context>

<Context path="/alligator" docBase="alligator" reloadable="true">
<ResourceLink name="liarRealm" global="liarRealm"/>
<ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
<ResourceLink name="tdhca.liar.hashSalt" global="tdhca.liar.hashSalt"/>
<ResourceLink name="cmts-url" global="cmts-url"/>
<ResourceLink name="mf-url" global="mf-url"/>
<ResourceLink name="cdb-url" global="cdb-url"/>
<ResourceLink name="csea-url" global="csea-url"/>
<ResourceLink name="jdbc/cdb" global="jdbc/cmts"/>
<Environment name="serverName" type="java.lang.String" value="contract"/>
<ResourceLink name="envName" global="envName"/>
<ResourceLink name="contractPropertiesFile" global="contractPropertiesFile"/>
</Context>

        <Context path="/hrc" docBase="hrc" debug="0" reloadable="true" 
crossContext="true">
          <ResourceLink name="liarRealm" global="liarRealm"/>
          <ResourceLink name="tdhca.liar.useDomain" 
global="tdhca.liar.useDomain"/>
          <ResourceLink name="tdhca.liar.hashSalt"  
global="tdhca.liar.hashSalt"/>
          <ResourceLink name="cmts-url" global="cmts-url"/>
          <ResourceLink name="cdb-url" global="cdb-url"/>
          <ResourceLink name="jdbc/cmts" global="jdbc/cmts"/>
          <Environment name="serverName" type="java.lang.String" value="hrc"/>
          <ResourceLink name="envName" global="envName"/>
  </Context>

      </Host>


context.xml example under webapps/csea/META-INF/context.xml

<Context path="/csea" docBase="csea" reloadable="true" >
      <ResourceLink name="liarRealm"            global="liarRealm"/>
      <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
      <ResourceLink name="tdhca.liar.hashSalt"  global="tdhca.liar.hashSalt"/>
      <ResourceLink name="cmts-url"             global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="pm-url"              global="pm-url"/>
      <ResourceLink name="jdbc/cdb"        global="jdbc/cmts"/>
      <Environment name="serverName" type="java.lang.String" value="cmts"/>
          <ResourceLink name="envName" global="envName"/>
          <ResourceLink name="cseaPropertiesFile" global="cseaPropertiesFile"/>
</Context>

Thanks for any help you can give.

Angela Day
National Autism Association of Central Texas

http://www.naacentraltexas.org





________________________________
From: Pid <p...@pidster.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Wed, April 28, 2010 3:05:17 AM
Subject: Re: one path working, one not

On 27/04/2010 23:50, Angela Day wrote:

I have one path working, and the other not working

Http Status 404 - /csea/Login.m

type Status report
message /csea/Login.m
description The requested resource (/csea/Login.m) is not available.
________________________________

They are both defined on the same tomcat 5.5.28 server

Are there any messages in the logs during deployment?

Please post them.

Can you post the Host definition too?

The preferred method for deployment in 5.5 onwards is to put the Context
definition in myapp/META-INF/context.xml.  Tomcat will take care of the
deployment, and the app path is defined by the directory name.

Defining Context in server.xml is now discouraged, especially for
'normal' deployments like the one below.

If your apps are deployed:

/path/to/tomcat/webapps/csea
/path/to/tomcat/webapps/alligator

The the config files should be:

/path/to/tomcat/webapps/csea/... etc
/path/to/tomcat/webapps/csea/WEB-INF/web.xml
/path/to/tomcat/webapps/csea/META-INF/context.xml

/path/to/tomcat/webapps/alligator/... etc
/path/to/tomcat/webapps/alligator/WEB-INF/web.xml
/path/to/tomcat/webapps/alligator/META-INF/context.xml



p

server.xml

<Context path="/csea" docBase="csea" reloadable="true" >
<ResourceLink name="liarRealm" global="liarRealm"/> <ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/> <ResourceLink name="tdhca.liar.hashSalt" global="tdhca.liar.hashSalt"/> <ResourceLink name="cmts-url" global="cmts-url"/>
      <ResourceLink name="cdb-url"              global="cdb-url"/>
      <ResourceLink name="pm-url"              global="pm-url"/>
      <ResourceLink name="jdbc/cdb"        global="jdbc/cmts"/>
<Environment name="serverName" type="java.lang.String" value="cmts"/> <ResourceLink name="envName" global="envName"/> <ResourceLink name="cseaPropertiesFile" global="cseaPropertiesFile"/>
</Context>

<Context path="/alligator" docBase="alligator" reloadable="true">
<ResourceLink name="liarRealm" global="liarRealm"/>
<ResourceLink name="tdhca.liar.useDomain" global="tdhca.liar.useDomain"/>
<ResourceLink name="tdhca.liar.hashSalt" global="tdhca.liar.hashSalt"/>
<ResourceLink name="cmts-url" global="cmts-url"/>
<ResourceLink name="mf-url" global="mf-url"/> <ResourceLink name="cdb-url" global="cdb-url"/> <ResourceLink name="csea-url" global="csea-url"/> <ResourceLink name="jdbc/cdb" global="jdbc/cmts"/> <Environment name="serverName" type="java.lang.String" value="contract"/> <ResourceLink name="envName" global="envName"/> <ResourceLink name="contractPropertiesFile" global="contractPropertiesFile"/>
</Context>


alligator work great, csea does not. I cannot see any differences. What am I missing?

Thanks for your help.

Angela


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to