On 09/07/2010 09:15, John Byrne wrote: > Hi > > Please find listed below thesituation with tomcat installation. I can > deploy html pages via the manager service or > http://localhost/comlinks/mypage > > The requested resource (/ukjava1900) is not available. > > I list below the changes I have made to sotware. Thank you for your > help in preious thread > > Software used > > jdk-6u21-windows-x64 > tomcat-6.0.26 > > > This is the start up log > > > > 09-Jul-2010 07:50:34 org.apache.catalina.core.AprLifecycleListener init > INFO: The APR based Apache Tomcat Native library which allows optimal > performanc > e in production environments was not found on the java.library.path: > C:\tomcat 6 > .0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PROGRAM > FILES > \jdk1.6.0_21\BIN > 09-Jul-2010 07:50:34 org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-80 > 09-Jul-2010 07:50:34 org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 997 ms > 09-Jul-2010 07:50:34 org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > 09-Jul-2010 07:50:34 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.26 > 09-Jul-2010 07:50:34 org.apache.catalina.startup.HostConfig deployDescriptor > INFO: Deploying configuration descriptor host-manager.xml > 09-Jul-2010 07:50:35 org.apache.catalina.startup.HostConfig deployDescriptor > INFO: Deploying configuration descriptor manager.xml > 09-Jul-2010 07:50:35 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory comlinks > 09-Jul-2010 07:50:36 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory docs > 09-Jul-2010 07:50:36 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory examples > 09-Jul-2010 07:50:36 org.apache.catalina.startup.HostConfig deployDirectory > INFO: Deploying web application directory ROOT > 09-Jul-2010 07:50:36 org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-80 > 09-Jul-2010 07:50:36 org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > 09-Jul-2010 07:50:36 org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/31 config=null > 09-Jul-2010 07:50:36 org.apache.catalina.startup.Catalina start > INFO: Server startup in 2007 ms > > ************ > > > > conf\context.xml > > <Context reloadable="true" privileged="true"> > > ********* > > webapps\comlinks\web-inf\web.xml > > <web-app xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > version="2.5"> > > <display-name>Welcome to Tomcat</display-name> > <description> > Welcome to Tomcat > </description> > > <servlet> > <servlet-name>UkJava1900</servlet-name> > <servlet-class>formprocessors.UkJava1900</servlet-class> > </servlet> > > > > <servlet-mapping> > <servlet-name>UkJava1900</servlet-name> > <url-pattern>/UkJava1900</url-pattern> > </servlet-mapping> > > </web-app> > > > *********** > webapps/conf/web.xml > > <servlet> > <servlet-name>default</servlet-name> > > <servlet-class>org.apache.catalina.servlets.DefaultServlet</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> > > ********************* > > This is the first line in servlet uk1900java.java > > > package formprocessors;
And what about the next few lines up to and including " ... extends HttpServlet {"? > ********* > > This is the form action > > <FORM action=/ukjava1900 I'll repeat what André and others have said, just in case it wasn't clear. The form action MUST match the url-pattern element of the Servlet you've defined in web.xml. In web.xml: <url-pattern>/UkJava1900</url-pattern> In your HTML page: <form action="/UkJava1900" method="... etc ^^^^^^^^^^^ ||||||||||| (I've even aligned them so you can see it clearly) p (N.B. Your HTML style is archaic, would be a good idea to improve it). > *********** > > > Kind Regards > > John >
signature.asc
Description: OpenPGP digital signature