Current Position:Home > Tomcat not loading images with mod_jk

Tomcat not loading images with mod_jk

Update:12-10Source: network consolidation
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.

The Best Answer

Advertisement
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.
  • Tomcat not loading images with mod_jk Update:12-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 pages Update:10-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 via mod_jk? Update:12-08

    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? Update:11-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

  • High Availabilty Tomcat Update:12-08

    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) Update:12-08

    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!!! Update:11-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