Current position:  Home > Default > Tomcat not loading images with mod_jk

Tomcat not loading images with mod_jk

Time:December 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 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.
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 jsp pages


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 Loader


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?


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?


hi i copied 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 startup


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);"Loading native libraries...");

Loading ibatis on tomcat startup


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 Tomcat


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)


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!!!


I am using the 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

Apache/Tomcat Access denied????


hello. I am trying3 to run. Apache 1.3.26 and tomcat 4.0 together on Windows 2000 Pro and have had no luck. I configured the httpd.conf file with these statements and the corresponding files are in the correct directories <statements> # Load mod_jk

How to link tomcat 5 with apache 2 on win2k?


i've just installed the new tomcat 5. i need help on how to combine tomcat 5 with apache2. so can anyone give me some URLs? thanks very much.Have a look at . I believe it's works the same

Tomcat running under apache


Hi All, I want to be able to run my tomcat3.3.1a under apache webserver, and i klnow i have to use mod_jk. The problem i am having is that my tomcat is not producing the mod_jk.conf_auto file. I have even added the apacheconfig directive to server.xm

JNI and Tomcat running on Linux


Hi all! I have a small problem with calling a native library from my Tomcat running on a linux. The code is simple enough System.loadLibrary(myLibrary);I know that when isn't in the java.library.path I get an error at this line. When

Multiple Tomcat instances on the same server


Can we have multiple tomcat instances load balanced on the same physical box without VM. Has there been any such implementations. How can CMS be distributed across. What can the know architecture for the same. Regards VijsyThis can be done, but it re

Mod_jk.conf does not autogenerate


I can't get Tomcat 5 to generate the mod_jk.conf-auto file on start up. I included: </Service> <ContextManager> <ApacheConfig modjk="modules/" jkconfig="conf/mod_jk.conf"/> </ContextManager> </Server

Building the mod_jk between apche and jboss in solaris environment


hi there, i have installed apache2 and running on one zone and jboss installed and running on another zone now when i connecting of them using the tomcat connector by building the mod_jk i am getting the error where i have followed the procedure in t

Images not displaying when using Mod_JK


Has anyone had this problem with any success? platform: Windows 2000 Professional Jakarta Tomcat 4.1.3 Apache 2.0.039 Mod_jk connector My_Sql 4.0.1 I have a successful connection between Tomcat and Apache via the mod_jk module. All JSP's are displayi

JSTL 1.1.2, TOMCAT 5.5, JDK 5, Eclipse and Problems


I have been having trouble loading the JSTL library (standard.jar & jstl.jar) I'm using Eclipse 3.0.2 to do my development work on my JSP pages. So normally I will just create my Tomcat(5.5 on JDK5.0) project using Sysdeo(tm) plugin in its default di

Can't run apache after setting mod_jk.conf-auto


Can anybody help me? In the beginning when jdk1.3.1 & tomcat3.2.2 are just set, they both can work porperly, but after setting mod_jk.conf-auto (for running jsp), Apache can't start and give out the following error msg: Starting httpd: Syntax error o