Home > Default > Tomcat not loading images with mod_jk

Tomcat not loading images with mod_jk

December 10Hits:5
Advertisement
I have images stored in a database which when retrieved have the extension .tmp when I view these images using tomcat they are recognised as being jpeg or bmp files etc. and are displayed as images.
When the same images are viewed using tomcat through apache using the mod_jk module, the images appear as text.
If I try viewing the same images in apache on its own they appear fine. To repeat this, take a jpeg file and change its extension to .tmp place the file in a tomcat application, lookat the image using tomcat on its own //localhost:8080/myapp/myimage.tmp it appears fine, look at it using apache using mod_jk //localhost/myapp/myimage.tmp and it appears as text. Has anyone got any clue as to how to fix this.
I am using apache 2.0 with mod_jk 1.2.15 and jakarta-tomcat-5.0.28
Any help would be most appreciated, mod_jk drives me mad!!!. Thanks Mike.

Answers

webmail which i access through safari on my imac and ipad. For the last couple of days images have stopped loading with all my emails
Try emptying the cache on your iMac and iPad.
One the iMac with Safari open, press Command + Option + E on the keyboard. Quit and relaunch Safari to test.
On the iPad. Tap Settings > Safari. Tap Clear History then tap Clear Cookies and Data. Restart your iPad.

Read other 5 answers

Tags:

Related Articles

  • Tomcat not loading images with mod_jkDecember 10

    I have images stored in a database which when retrieved have the extension .tmp when I view these images using tomcat they are recognised as being jpeg or bmp files etc. and are displayed as images. When the same images are viewed using tomcat throug

  • Tomcat not loading jsp pagesOctober 11

    I've running 10.6.2 with default install of Tomcat and Apache. Tomcat is enabled in Server Admin, and I've created a site in Server Admin that points 8080 port requests to /Library/Tomcat/webapps. And index.jsp is set as a default index file. When I

  • Tomcat Class LoaderNovember 30

    I have setup tomcat 4.1.12 on WinXP. Tomcat is integrated with IIS. I am able to work with my web applications. My problem is : I cant use my own classes in my application. Tomcat is not able to locate my .class file, i think. I have tried this: 1) c

  • Tomcat via mod_jk?December 8

    Hello. I really need to get the following to work, and help would be greatly appreciated! I have a simple header-echoing .jsp hosted on my local tomcat. I have a mod_jk connector to it installed in an apache webgate instance. I have a policy set up t

  • How can i use my helloworld servlet in apache-tomcat-mod_jk?November 30

    hi i copied helloworld.java helloworld.class to jakarta-tomcat-3.3.1/webapps/examples/WEB-INF/classes i can use example servlets in that directory by accessing localhost/examples/servlets and click links..(but if i type them in browser address bar, t

  • Loading JNI library on Tomcat startupNovember 30

    I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function: public void init(ServletConfig config) throws ServletException { super.init(config); log.info("Loading native libraries...");

  • Loading ibatis on tomcat startupNovember 30

    can I connect ibatis when tomcat loads the web.xml file of my webappThe specification specifically forbids the use of native libraries in container objects. So you might want to take that into consideration with whatever you are doing. If you do want

  • High Availabilty TomcatDecember 8

    To give some trining I'm trainig to setup a cluster in a box using Tomcat. My components: Apache 2.0.54 mod_jk 1.2.10 Tomcat 5.5 I've created two Tomcat instances each listening in different ports (AJP in 8009 & 8010 for each Tomcat). I've also modif

  • Very strange index.jsp problem (Apache2 + Jboss/Tomcat)December 8

    I've been working on this for 6 hours until the current time of 4.30 am - any help is very much appreciated. I (thought) I had successfully integrated Jboss/Tomcat with apache 2 using mod_jk 1.2.8 - and added an alias for jmx-console. But I just can'

  • Tomcat will now start.... Help!!!November 30

    I am using the mod_jk.so for apache1.3. When I try to start the tomcat with the -jkconf option, I got these errors. Can anyone tell what is wrong by looking at these errors messages? Thanks! 2001-10-06 08:36:59 - SessionIdGenerator: Opening /dev/uran

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.334 s.