AW: [NEWBIE] Static html pages do not show image files
This is the scr of the img tag: td WIDTH=198img SRC=Tuev.gif BORDER=0 height=203 width=198/td This url works: http://127.0.0.1:8080/Request/index.htm This url does not work (Error 404 - File not found): http://127.0.0.1:8080/Request/Tuev.gif Both files exists and they are in the same directory. Leila What is the src of the img tag in your html file? Some tools will put fully qualified file names in there instead of relative paths. Randy I am running Tomcat 4.0b5 standalone in Windows NT 4.0. I've created a new web-application in $tomcathome$\webapps without creating a war file (I am at the early stage of development), with one html static page and one servlet. I can access the html page and the servlet without problem but I cannot see any image (gif). The html and the images are in the same directory ($tomcathome$\webapps\MyWebApp), if I open the html file (without using Tomcat) the images just show fine.
AW: [NEWBIE] Static html pages do not show image files
Thank everyone for the help and tips. I found the problem and I am posting the solution for the archive. I had to change the html page from: img SRC=Tuev.gif BORDER=0 height=203 width=198 to: img SRC=TUEV.GIF BORDER=0 height=203 width=198 The name of the file is Tuev.gif but I have to write the src of the img tag with capital letters I guess the cause of the problem is that Windows is case insenstiv. Is that a bug from Tomcat? Leila Try, http://127.0.0.1:8080/Request/ This will show the list of files in the directory, check if you can see Tuev.gif. Click on it, if the file is ok, it should be displayed -Original Message- This is the scr of the img tag: td WIDTH=198img SRC=Tuev.gif BORDER=0 height=203 width=198/td This url works: http://127.0.0.1:8080/Request/index.htm This url does not work (Error 404 - File not found): http://127.0.0.1:8080/Request/Tuev.gif Both files exists and they are in the same directory. Leila What is the src of the img tag in your html file? Some tools will put fully qualified file names in there instead of relative paths. Randy I am running Tomcat 4.0b5 standalone in Windows NT 4.0. I've created a new web-application in $tomcathome$\webapps without creating a war file (I am at the early stage of development), with one html static page and one servlet. I can access the html page and the servlet without problem but I cannot see any image (gif). The html and the images are in the same directory ($tomcathome$\webapps\MyWebApp), if I open the html file (without using Tomcat) the images just show fine.
[NEWBIE] Static html pages do not show image files
Hi!!! I am running Tomcat 4.0b5 standalone in Windows NT 4.0. I've created a new web-application in $tomcathome$\webapps without creating a war file (I am at the early stage of development), with one html static page and one servlet. I can access the html page and the servlet without problem but I cannot see any image (gif). The html and the images are in the same directory ($tomcathome$\webapps\MyWebApp), if I open the html file (without using Tomcat) the images just show fine. The only thing that I changed in the server.xml was that I added a new context for my web-application. In the $tomcathome$\webapps\MyWebApp\WEB-INF directory I have my web.xml: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app display-nameServlet Applicationt/display-name descriptionThis the servlet aplication /description servlet servlet-nameMyServlet/servlet-name servlet-classMyServletClass/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping /web-app What am I missing? Thanks Leila
AW: Get Me Out Of This
Just send an email to this address: [EMAIL PROTECTED] If you subscribes the digest list, send an email to: [EMAIL PROTECTED] Leila
AW: Servlet and Multiple Instances
Check if your servlet class implements SingleThreadModel, in this case one instance of the servlet will be able to handle just one request. Leila -Ursprngliche Nachricht- Von: Cam DeBuck [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 07:12 An: [EMAIL PROTECTED] Betreff: Servlet and Multiple Instances I've written a servlet that is getting hit pretty hard. It works fine when just one user access hit. However, when they are multiple people hitting the servlet, it seems like that it is only serving one person at a time. Is there some confirguration option that I am missing so that it can spawn multiple threads. Any help would be appreciated. Thanks. --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: IDE
I suppose that you intalled Tomcat at c:\tomcat. I am not using Jbuilder4 but I got Tomcat running with Visual Cafe. I had to add all the Tomcat libraries to my project, set the main class to org.apache.tomcat.startup.Tomcat and put in the program arguments "-home c:\tomcat". I based in this email to configure the Visual Cafe (it explains the configuration for Jbuilder4), but the name of the class is with wrong case and "-Dtomcat.home=/tomcat_home" didn't work with me (try -home). http://archives.java.sun.com/cgi-bin/wa?A2=ind0011L=servlet-interestD=0P= 55344 If you want to see the options type in the program arguments -help or just look at c:\tomcat\scr\org\apache\tomcat\startup\Tomcat.java, in the method printUsage() (near the end). I hope that helps. Leila -Ursprungliche Nachricht- Von: chew [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 22. Dezember 2000 10:15 An: [EMAIL PROTECTED] Betreff: IDE Hi, Anybody of you have tested using tomcat3.2.1 in Jbuilder4 foundation. I have followed the article "Apache Tomcat Servlet JavaServer Pages Development with JBuilder Foundation" written by Debbie Carson amnd Ken Chan. Under running tomcat section, I got a message "unable to start runtime due to imcomplete configuration".Any one know what configuratuion needed. I have only enter the "-Dtomcat.home=C:/tomcat" in the VM parameter.Thanks in advance for your help.