tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nance, Michael" <MNa...@tickets.com>
Subject RE: Help!! Apache won't redirect to tomcat
Date Mon, 30 Jul 2001 15:50:50 GMT
I don't have a /buy at all it is  just a Virtual Name

-----Original Message-----
From: Hewko, Doug [mailto:Doug.Hewko@ccra-adrc.gc.ca]
Sent: Monday, July 30, 2001 8:49 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help!! Apache won't redirect to tomcat


Hi! Just curious. Should the 'buy' directory be under webapps or root? Being
new to Tomcat, I played around. When I had my 'buy' directory under
'webapps', I got a 404. But my page loaded when I placed my 'buy' under
'root'.



-----Original Message-----
From: Nance, Michael [mailto:MNance@tickets.com]
Sent: July 30, 2001 11:44 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help!! Apache won't redirect to tomcat


One other thing I DO NOT have a /buy dir under webapps

-----Original Message-----
From: Nance, Michael [mailto:MNance@tickets.com]
Sent: Monday, July 30, 2001 8:37 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help!! Apache won't redirect to tomcat


Andrew thanks for replying...
Yes the Hello World Works

netstat -a shows     

*.8007               *.*                0      0     0      0 LISTEN
*.8009               *.*                0      0     0      0 LISTEN


requesting either http://localhost:8080/buy/MLBEventInfo or
http://localhost/buy/MLBEventInfo
gives me the same result  I get a 404 /buy/MLBEventInfo not found

This is from servlet.xml    

<servlet>
        <servlet-name>
            MLBEventInfo
        </servlet-name>
        <servlet-class>
            com.tickets.presentation.mlb.MLBEventInfo
        </servlet-class>
    </servlet>

And this is in my web.xml        

<servlet-name>
            invoker
        </servlet-name>
        <url-pattern>
            /buy/*
        </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>
            invoker
        </servlet-name>
        <url-pattern>
            /olympics/*
        </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>
            jsp
        </servlet-name>
        <url-pattern>
            *.jsp
        </url-pattern>
    </servlet-mapping>


These come from a working JSErv Config (we are converting form JSErv to Mod
JK)
What do I have wrong?
Your help is greatly appreciated.


-----Original Message-----
From: Andrew Inggs [mailto:Andrew.Inggs@teleca.com]
Sent: Monday, July 30, 2001 8:27 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help!! Apache won't redirect to tomcat


Nance, Michael wrote:
> There are no errors in mod_jk.log or in my httpd_error.log
> 
> the 8080 gets the same thing which is the 404 error

If port 8080 isn't working then you haven't got your web app
setup correctly and the problem isn't between Apache and
Tomcat.

We need to be absolutely clear here.  Are you requesting this
URL on the same machine you have Tomcat installed:
http://localhost:8080/buy/MLBEventInfo
Assuming so, is there a "buy" directory in the
TOMCAT_HOME/webapps directory?  If not, have you modified
server.xml appropriately?  Have you got <servlet-name> and
<servlet-mapping> entries in buy/WEB-INF/web.xml?  Posting
them to the list may help.

As a sanity check, does this work:
http://localhost:8080/examples/servlet/HelloWorldExample

-- Andrew

Mime
View raw message