There's no URL mapping in workers2.properties that would send your servlet request to Tomcat.


The only requests for www.tgds.net that will ever get to Tomcat are those URLs that end in "*.jsp" because of this mapping:

[uri:www.tgds.net/*.jsp]

If you want to map another URI, such as "www.tgds.net/servlet/*" you have to add it.

John

On 23 Jun 2003 10:14:48 +0200, Tony Grant <[EMAIL PROTECTED]> wrote:

On Fri, 2003-06-20 at 14:33, John Turner wrote:

Please post:
- workers2.properties

# Define the communication channel

[shm]
file=/var/log/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:212.100.232.223/*.jsp]
worker=ajp13:localhost:8009

[uri:www.tgds.net/*.jsp]
worker=ajp13:localhost:8009

- relevant Host section from server.xml

<Host name="www.tgds.net" debug="0" appBase="/var/tomcat4/webapps" unpackWARs="true" autoDeploy="true"> <Alias>localhost</Alias> <Alias>www</Alias> <Alias>212.100.232.223</Alias>

<Context path="" docBase="" debug="1"/>

                <Context path="/lmstk" docBase="/var/tomcat4/webapps/lmstk"
debug="0"/>

<Context path="/jFormMail"
docBase="/var/tomcat4/webapps/jformmail" debug="1"/>

                <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"  prefix="tgds_access_log."
suffix=".txt"
pattern="common" resolveHosts="false"/>
        
        </Host>


- relevant Context section from server.xml
- servlet and servlet-mapping tags for this servlet from web.xml

<servlet> <servlet-name>jFormMail</servlet-name> <servlet-class>FormMail</servlet-class> </servlet> <servlet-mapping> <servlet-name>jFormMail</servlet-name> <url-pattern>/jFormMail</url-pattern> </servlet-mapping>

As I said the webapps work just fine. This servlet will only work if
Tomcat is running standalone.

Cheers

Tony Grant



-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to