tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee, Paul NYC" <P...@citco.com>
Subject RE: RE: RE: Connection Apache - Tomcat
Date Mon, 03 Nov 2003 16:45:05 GMT
You have to declare and map every servlet in web.xml like below.  Also,
check out the documentation and the tomcat examples for more info.

<servlet>
   <servlet-name>
      servletToJsp
   </servlet-name>
   <servlet-class>
      servletToJsp
   </servlet-class>
<servlet-mapping>
   <servlet-name>
      servletToJsp
   </servlet-name>
   <url-pattern>
      /servletToJsp
   </url-pattern>
</servlet-mapping>

-----Original Message-----
From: por@onebox.com [mailto:por@onebox.com] 
Sent: Monday, November 03, 2003 11:19 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: RE: RE: Connection Apache - Tomcat



This is my web.xml entry..

    <servlet>
        <servlet-name>kDBServlet</servlet-name>
        <servlet-class>
          org.apache.catalina.servlets.DBServlet
        </servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>


How can I determine what a servlets are loaded?


-Peter



-----Original Message-----
From:     Lee, Paul                    NYC <PLee@citco.com>
Sent:     Mon, 3 Nov 2003 10:47:03 -0500
To:       'Tomcat Users List' <tomcat-user@jakarta.apache.org>
Subject:  RE: RE: Connection Apache - Tomcat

Look in your apps web.xml and make sure your servlet is defined and mapped
to your url.

-----Original Message-----
From: por@onebox.com [mailto:por@onebox.com] 
Sent: Monday, November 03, 2003 10:42 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: RE: Connection Apache - Tomcat


This is the workers.properties,

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Where do I check the servlet mappings?

Thanks,
-Peter



-----Original Message-----
From:     Asif Chowdhary <AsifC@xeye.com>
Sent:     Mon, 3 Nov 2003 10:18:01 -0500
To:       "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Subject:  RE: Connection Apache - Tomcat

Did you add the URI in workers2.properties.
You have to have this context in this file

Once you add it should solve your problem.
Also check the servlet mappings.



-----Original Message-----
From: por@onebox.com [mailto:por@onebox.com]
Sent: Monday, November 03, 2003 10:10 AM
To: tomcat-user@jakarta.apache.org
Subject: Connection Apache - Tomcat


I followed this excellet HOWTO;
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

Everything is tested correctly.  I can browse localhost port 80 and port
8080, and run the test servlets. (I can also browse www.ip.com port 80 and
port 8080, and run the test servlets.)

I can't get it working with my servlet and I'm not sure what else to try?

This is the error message.
"The requested URL /servlet/DBServlet was not found on this server."

This is the web page html,

    <FORM NAME="sell_login" METHOD="GET"
    ACTION="../servlet/BookDBServlet"
    ONSUBMIT="return runLogin(this)">

This is the path on the server for the servlet...
/opt/tomcat/webapps/bd/WEB-INF/classes

Re-starting tomcat re-creates this file as expected, 
/opt/tomcat/conf/auto/mod_jk.conf

Workers.properties is located in ; /opt/tomcat/conf/jk/Workers.properties


Thanks,
-Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message