I want to be able to click a submit button and run a servlet, I tried this,
<P ALIGN="CENTER"><FONT SIZE="3"> </FONT></P> <FORM NAME="sell_login" METHOD="GET" ACTION="../servlet/BookDBServlet" ONSUBMIT="return runLogin(this)">
and this,
<P ALIGN="CENTER"><FONT SIZE="3"> </FONT></P> <FORM NAME="sell_login" METHOD="GET" ACTION="www.ip.com/WEB-INF/classes/DBServlet" ONSUBMIT="return runLogin(this)">
and this is what gets returned,
The requested URL /WEB-INF/classes/DBServlet was not found on this server.
---------- Apache/2.0.48 (Unix) mod_jk/1.2.5 Server at www.ip.com Port 80
It seems the connector's is up and running, but I can't seem to pass the web page to the connection on catalina.
What steps can I take to resolve this?
Thanks, Peter
At 01:24 PM 11/3/2003, you wrote:
Url-pattern is what you will type in your url to access the servlet. So according to your info below, you will access your servlet with something like http://localhost:8080/servlet/WEB-INF/classes.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:59 AM To: [EMAIL PROTECTED] Subject: RE: RE: RE: RE: Connection Apache - Tomcat
this is what I added...
<servlet> <servlet-name>DBServlet</servlet-name> <servlet-class>DBServlet</servlet-class> </servlet>
<servlet-mapping> <servlet-name>DBServlet</servlet-name> <url-pattern>/servlet/WEB-INF/classes</url-pattern> </servlet-mapping>
I also noticed this line in catalina.out. Is this right?
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Where does it get this IP address?
-Peter
-----Original Message----- From: Lee, Paul NYC <[EMAIL PROTECTED]> Sent: Mon, 3 Nov 2003 11:45:05 -0500 To: 'Tomcat Users List' <[EMAIL PROTECTED]> Subject: RE: RE: RE: Connection Apache - Tomcat
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:19 AM To: [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Sent: Mon, 3 Nov 2003 10:47:03 -0500 To: 'Tomcat Users List' <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 10:42 AM To: [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Sent: Mon, 3 Nov 2003 10:18:01 -0500 To: "Tomcat Users List" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 10:10 AM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]