RE: Error 404
Hi Harry, I am also having the same problem, and I'm running redhat 6.2 as well. I haven't been able to locate a solution, although someone did recomend that I clear out the $TOMCAT_HOME/work dir and see if that solves the problem. I am going to try that tonight, I'll let you know. If that doesn't work then we're stuck, unless someone else knows what is going on here - anyone?? Lets keep each other informed if a solution is found. Thanks Matt I just recently installed tomcat to work with my apache server 1.3.12 on Linux RH6.2. I used the mod_jk module. I am getting an error 404 when I try to run my .jsp file. I know the file does exist. Is there any documentation for tomcat. I find the information on the web site to be cryptic at best. Harry Peirson winmail.dat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP 404 Problem
Hi All, Just started with Tomcat and I'm having a bit of trouble with JSPs. I have a webapp up and going that I've been using to play around with servlets, its all working fine. As far as I knew all I had to do to run JSPs was place the JSP file in the same directory as my HTML files, in this case $TOMCAT_HOME/webapps/coreapp/ Well I'm doing that and this is the error I get: Error: 404 Location: /coreapp/BGColor.jsp JSP file ta-tomcat/work/localhost_8080%2Fcoreapp/_0002fBGColor_0002ejspBGColor_jsp_0.java (Permission denied)" not found *** Can anyone tell me why? I've had a look in what Tomcat Documentation I have which is the Users Guide and the App Development Guide. Are there any other good sources of information? Cheers Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Trouble with web.xml P.S.
Thanks, you are a life saver! Matt Campbell wrote: Hi All, this is an addition to my last post, a bit more info in case its any use. I've just tried to run TOMCAT_HOME/webapps/examples/WEB-INF/classes/SnoopServlet.class after un-commenting its init-params in TOMCAT_HOME/webapps/examples/WEB-INF/web.xml The servlet runs fine, except that it doesnt find its init-params. I have made no changes except for un-commenting those params. Why wont it find them?? Cheers Matt Ah yes - this annoying little quirk. If you address SnoopServlet.class directly as above, Tomcat does NOT associate it with the entry in web.xml therefore you don't get init params. If you address it as snoop - the alias that the web.xml sets up with: servlet servlet-name snoop /servlet-name servlet-class SnoopServlet /servlet-class init-param param-namefoo/param-name param-valuebar/param-value /init-param /servlet then you will get the init params -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Trouble with web.xml
Hi All, This is my first post to this list, so hi. I've searched all the documentation I could find to no avail, I've two problems and I'm looking for some guidance. Firstly I'm using Ant and build.xml to set up my web application. This works fine except that it does not place the servlets into the classes directory of the web application it sets up. When I run build, things seem to go fine, it tells me it has compliled the correct number of servlets, but they just disappear... what is going on? I have been getting around that by compling using javac with the destination directory set to my TOMCAT_HOME/webapps/myapp/WEB_INF/classes directory. This all works, my HelloWorld.class servlet runs like a beauty :) My next problem is that I cannot get my servlets to recognize web.xml. I place this file in WEB-INF directory for the web app, but any init-param I try and use comes back as null. I am sure I have the syntax of the web.xml file correct. This even happens when I place my servlets in TOMCAT_HOME/webapps/examples/WEB-INF/classes directory and edit the pre-existing web.xml file to include my init-params. Thanks is advance for any advice. Cheers Matt Campbell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]