I don't have a /buy at all it is  just a Virtual Name

-----Original Message-----
From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:49 AM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: July 30, 2001 11:44 AM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:37 AM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:27 AM
To: '[EMAIL PROTECTED]'
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

Reply via email to