In your web.xml, you might want to try add the following <web-app> ................... <!-- must add the following servlet mapping after tomcat v.4.12 --> <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> </web-app>
This is required after version 4.12 or 13. But this seem to break your servlet program again in Tomcat 5. But since you are using Tomcat 4, it should work. Kimmy ----- Original Message ----- From: "Shaun Campbell" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 5:01 PM Subject: Getting 404 error deploying my servlet I've developed a servlet on my windows laptop using a product called Turbine and it normally starts using http://localhost:8080/apt/servlet/apt. I'm now trying to deploy this to a Linux server running Redhat Linux and SSL. I've tarred the webapp up into a war file and transferred it to my Linux server and Tomcat has unpacked it. I've restarted Tomcat and no matter what I do I keep getting a 404 error saying that resource apt/servlet/apt is not available. I'm running Tomcat 4.1.30 and I've installed Java 1.4. SSL and Tomcat seems to be working ok as I can run the standard applications using https://servername:8443/examples/servlet/HelloWorldExample. I can even copy this example into my apt webapp classes directory and get it to run but I cannot get my application to run. To check my war file is ok I copied it into another Tomcat setup I have on my Windows machine and it works okay so I'm at a loss to see why it doesn't work straight away on my Linux server. The only thing I can see that is going on is this message in my logfile: StandardContext[/apt]: Resource start failed: java.lang.IllegalArgumentException:Document base /usr/local/jakarta-tomcat-4.1.30/webapps/../server/webapps/apt does not exist or is not a readable directory I can see this is wrong as there is an extra "../server/webapps" in there. Any ideas where this is coming from or what else I can try to get this going? I've tried everything and am clean out of ideas. Regards Shaun Campbell --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
