The way we did it at our company was to have a virtual directory
from which the jsp's were served and all references to images were
to the root of the IIS web site.  For example:

JRun's application mapping is set to /app, so all jsp files are
referenced /app/test.jsp

Images, etc. are referenced /images/image.gif.

The reason WE did this was because the images weren't being cached
correctly - the browser would ALWAYS reload the image when the image
references were /app/images/image.gif - somehow the JRun server was
bollixing the IIS caching causing every image to be reloaded.

Hope this helps.
Mark

-----Original Message-----
From: Rickard Schoultz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 5:07 AM
To: JRun-Talk
Subject: RE: JRun 3.0 serving *.html *.gif files etc.


This is an old thread, but has anyone made an attempt
to configure apache or something similar to not forward
requests for gif or pdf files and similar things to JRun.
 JRun is not a problem per se, but we want to reduce
both network traffic and unnecessary downtime while we
restart JRun.

Best regards,
Rickard

> -----Original Message-----
> From: Hanke, Roger A, ALSVC [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 03, 2000 8:04 PM
> To: 'JRun List (E-mail)'
> Subject: RE: JRun 3.0 serving *.html *.gif files etc.
> 
> 
> Well finally found the section in the dev guide discussing 
> how all requests
> are sent to JRun and then non servlet and jsp ones are 
> quickly sent back
> to the webserver. So now I realize in JRun 3.0 we can no 
> longer serve any
> page without it being running, so that this is another area 
> it differs 
> from 2.3 that I did not realize :-(
>       Roger Hanke
> 
> >  -----Original Message-----
> > From:       Hanke, Roger A, ALSVC  
> > Sent:       Thursday, August 03, 2000 12:02 PM
> > To: JRun List (E-mail)
> > Cc: Hanke, Roger A, ALSVC
> > Subject:    JRun 3.0 serving *.html *.gif files etc.
> > 
> > 
> > Dear All,
> >  We have been struggling to figure out why all requests,
> > not just *.jsp, and /servlet ones seem to be going to JRun 3.0.
> > Below is an excerpt from the apache error log with verbose
> > set to true showing how JRun handled a request for a html page.
> > Next we take down JRun but not Apache and try to reload the page.
> > Instead of a 200 successful page displayed 
> > I get a 503 error page with the following message on it:
> > Could not connect to JRun Server
> > This same behavior applies to other non servlet and non jsp
> > website files like images as well.
> > 
> >  The rules section is also shown below from the default servers
> > local.properties file that Apache conf is pointing to in 
> > the JRun mappings directive. These are just the default 3.0
> > rules, and seemed the same as we were using with JRun 2.3 
> > basically. Except with JRun 2.3 we would only get passed thru
> > to JRun for servlets or jsp pages, not every single web page.
> > So is this really expected behavior that JRun 3.0 serves up 
> > all website files, or is the default configuration we are
> > using missing something?
> > 
> >  And just in case the /demo and / mappings are the issue shown
> > in the error file below. We dont need the demoapp running.
> > We actually would like to know what is the minimum set that 
> > needs to be started to just serve jsp/servlets by JRun.
> > No ejb, jdbc, jndi, jms, etc features are being used by us.
> > And we are running on Solaris 2.6.
> >     Thanks,
> >     Roger Hanke
> > 
> > -- rules section from servers default local.properties
> > webapp.servlet-mapping./servlet={default}
> > webapp.servlet-mapping.*.jrun={default}
> > webapp.servlet-mapping.*.shtml={default}
> > webapp.servlet-mapping.*.jsp={default}
> > webapp.servlet-mapping.*.thtml={default}
> > 
> > -- apache error log with verbose = true on
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> refreshing mappings for
> > 127.0.0.1:8085
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> 127.0.0.1:8085 fetching
> > servlet-mappings
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> PROXY_PUT_PROPS <- [7]
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213]   /demo 
> = demo-app^M
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213]   / = 
> default-app^M
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> 127.0.0.1:8085 returned
> > [7] to pool
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> installing new mappings
> > for 127.0.0.1:8085
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213]    HOST:
> > sas-source.etsdev.lz.att.com:447
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] filtering
> > /att/prot/admin/index.html (/att/prot/admin/index.html)
> > HOST=sas-source.etsdev.lz.att.com:447
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213]    matched
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] enter 
> jrun_service
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> jrun_service found
> > jrun-proxy-target 127.0.0.1:8085
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 127.0.0.1:8085
> > handleJrppRequest()
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213] 
> PROXY_SERVICE_30 -> [7]
> > [Thu Aug  3 14:23:50 2000] [notice] jrApache[1213]    QUERY_STRING:
> > 
> > 
> --------------------------------------------------------------
> ----------------
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe: 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to