Thanks Rainer. I have thought about both server name and port issues and I can't see where they might be part of the problem. I may try on my own development PC to see if I can replicate the issue.

On the host server a localhost/MyApp generates the same broken link/image issue as the full mydomain/MyApp URL. I tried them both on the server itself because I was worried that a firewall/DNS issue might be getting in the way. But both localhost/MyApp and myDomain/MyApp display the same behavior. Going to localhost:8080/MyApp renders fine also MyDomain:8080/MyApp renders fine on the host server. If you want to actually see the broken version go to altusschools.k12.ok.us/ASAAP using http and see the problem. A working version would be (www.) asaap.com/asaap3/ASAAP. I assume you can figure out the correct URLs for http (sorry I have to munge them to get past the spam filtering).

In the "broken" version, the application is installed at ROOT with the following context in web.xml:

<servlet>
   <servlet-name>AsaapServlet</servlet-name>
   <servlet-class>com.valadd.asaap.selfserve.AsaapServlet</servlet-class>
 </servlet>

 <servlet-mapping>
   <servlet-name>AsaapServlet</servlet-name>
   <url-pattern>/ASAAP</url-pattern>
 </servlet-mapping>

I am using   JKMount /ASAAP asaap3w in Apache

Thanks for the ideas and the help. I can't make immediate changes to the Apache instance and bounce it because the server is in production and I have a very limited "testing" window late in the evening.

Pete

Rainer Jung wrote:
On 19.02.2009 15:24, Pete Helgren wrote:
It does resolve to h t t p : // w w w . a c o r r e c t d o m a i n n a
m e . c o m /images/bg_hdr_logo.gif

I would post the real link if the firewall allowed 8080 traffic through
because then you could see the difference between the 'domain
reference'/images/bg_hdr_logo.gif and the 'domain
reference':8080/images/bg_hdr_logo.gif. The 8080 URL displays fine. The
one at :80 displays nothing but a missing image.

OK, I can now see the original image link. What was the original page URL, that you were calling in your browser? Originally you wrote about /MyApp, but below you write about having it deployed as the ROOT context, so your JkMount would be something like

JkMount /* myappw

Was the page retrieved via the URL

h t t p : // w w w . a c o r r e c t d o m a i n n a m e . c o m /

or via a different URL?

mod_jk automatically forwards server name and port used to contact httpd to the Tomcat connector, and when the webapp asks tomcat how it got contacted it will answer with the originl httpd data. That's what one wants for a reverse proxy, and what's build in into the AJP protocol used between httpd and Tomcat with mod_jk.

You can overwrite this automatic game by setting proxy-Attributes on the AJP connector, but that's very unusual and should only be used, if for instance there is yet another reverse proxy in front of your httpd and thus the httpd/mod_jk already do not know the correct host name, port and protocol.

The Tomcat application is installed at ROOT so tonight I may try
installing it at a different context and change the JKMount point and
see if that makes a difference. I do have an identical application
installed on a different server using Tomcat and Apache at a different
context and behind ISA server and it works fine. I am just trying to get
to the bottom of why this particular application instance installed at
ROOT on Tomcat is responding OK and rendering OK at :8080/MyApp but
through AJP it has no images at :80/MyApp.

Try rethinking: do you have a server name problem, a port problem or a context path problem. I had the impression you had either a server name or a port problem. Then the ROOT context will not help.

Regards,

Rainer


Pete

Rainer Jung wrote:
On 19.02.2009 05:35, Pete Helgren wrote:
What do the URL's look like? Here is an example. If I right click and
get the properties on the "missing" image, I see this (well I'd add a
more "real" looking URL but the this mailing list has rejected my last 9
attempts as spam...):

MyDomain/images/bg_hdr_logo.gif and the image does NOT display.

What is MyDomain? Some placeholder you chose instead of showing us the
real value, or is it actually sying "MyDomain"?

If so, where does that come from? The config you showed us doesn't
contain a glimpse of "MyDomain".

The actual source from that page <view source> shows this:

<td valign="top" class="body12"><img src="images/bg_hdr_logo.gif"
width="254" height="132" border="0"></td>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to