Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
View Interest List Message Details
<< Back to Search Results

Date: 11/03/2005
From: matt@newatlanta.com
Subject: Re: [ServletExec] Setting Servlet Mapping
John,
This reply assumes you are using SE version 5.x.
If that is not the case please say so.

If you have 2 brands of Servlet engine hooked into the same webserver 
installation, and you want 1 of the engines to process 1 set of JSPs, 
while the other engine processes a different set of JSPs, then it seems 
to me that you need to be using 2 different webapps.

Or more specifically... 2 different context paths.

For example, you could have a webapp that contains the JSPs and other 
content that you wish SE to process.
You would deploy that app using a context path such as "/se".
Then users would access http://<hostname>/se/1.jsp

Then you could have a different webapp that contains the JSPs and other 
content that you wish JBoss to process.
You would deploy that app using a context path such as "/jboss".
Then users would access http://<hostname>/jboss/2.jsp

It seems you are trying to have the same context path used in both engines.
Are you in fact trying to do that?

It would mean that you are trying to get this behavior:

http://<hostname>/<contextPath_A>/1.jsp to be processed by SE
http://<hostname>/<contextPath_A>/2.jsp to be processed by JBoss

(note that the context paths are identical)

If so, then I must say that this won't likely give the behavior you are 
after, no matter how the *.jsp is configured inside the webapp(s) [or 
even if it is yanked as you are requesting].

This is because once a request begins with:
http://<hostname>/<contextPath_A>/

it will either be routed to that app deployed in SE, OR be routed to 
that app deployed in JBoss.
Once either engine gets the request, that engine will process it... for 
good or ill.

So maybe consider using separate webapps, placing the desired content 
into each, and using a unique context path for each... so that the 2 
engines won't be "fighting" for who gets to handle requests to a 
single 
context path.

Matt McGinty
Software Engineer
New Atlanta Communications, LLC
http://www.newatlanta.com 



Vijay, John wrote:

> Essentially, ServletExec is hosted in an environment where AJP 
> connector to JBoss also resides - a shared env.. Effectively, am 
> looking to get all but some jsp's processed by Servlet Exec and the 
> rest by JBoss. So, overriding *.jsp to a vile servlet, doesn't help.
> It's quite imperative that *.jsp mapping/alias be yanked .
>
>     -----Original Message-----
>     *From:* servletexec-interest-owner@mail.newatlanta.com
>     [mailto:servletexec-interest-owner@mail.newatlanta.com]*On Behalf
>     Of *Paul Bonfanti
>     *Sent:* Thursday, November 03, 2005 3:54 PM
>     *To:* servletexec-interest@mail.newatlanta.com
>     *Subject:* RE: [ServletExec] Setting Servlet Mapping
>
>     The pre-configured alias for *.jsp is hardcoded in ServletExec and
>     doesnít appear in web.xml. You should be able to override it by
>     mapping *.jsp to something else in web.xml. For example, you could
>     map it to a servlet that simply returns file not found.
>
>     Paul
>
>                                                                            
------------------------------------------------------------------------
>
>     *From:* servletexec-interest-owner@mail.newatlanta.com
>     [mailto:servletexec-interest-owner@mail.newatlanta.com] *On Behalf
>     Of *Vijay, John
>     *Sent:* Thursday, November 03, 2005 4:37 PM
>     *To:* servletexec-interest@mail.newatlanta.com
>     *Subject:* RE: [ServletExec] Setting Servlet Mapping
>
>     How and where could I find *.jsp alias that is pre-configured in
>     Servlet Exec ?
>
>     I am looking to configure Servlet Exec only to process certain jsp
>     files. Thought I've listed out the essential jsp's in        
"URL
>     Pattern" mapped to "JspServlet", evidently, it is still 
processing
>     unnecessary jsp's.
>
>         -----Original Message-----
>         *From:* servletexec-interest-owner@mail.newatlanta.com
>         [mailto:servletexec-interest-owner@mail.newatlanta.com]*On
>         Behalf Of *Paul Bonfanti
>         *Sent:* Monday, October 24, 2005 8:20 AM
>         *To:* servletexec-interest@mail.newatlanta.com
>         *Subject:* RE: [ServletExec] Setting rules.properties
>
>         Iím afraid rules.properties wonít support this. If you upgrade
>         to SE 5.0 then you should be able to get this functionality
>         using the <jsp-property-group> tags in web.xml. Refer to
>         section JSP.3.3 of the JSP 2.0 specification for further details.
>
>         Paul
>
>         -----Original Message-----
>         *From:* servletexec-interest-owner@mail.newatlanta.com
>         [mailto:servletexec-interest-owner@mail.newatlanta.com] *On
>         Behalf Of *Vijay, John
>         *Sent:* Thursday, October 20, 2005 2:14 PM
>         *To:* servletexec-interest@newatlanta.com
>         *Subject:* [ServletExec] Setting rules.properties
>
>         If I need "JSP10Servlet" to process jsp only in          
particular
>         context say "http://<fqdn>/onlyJsp/jsp/*.jsp".     
Would servlet
>         exec encourage such a definition in rules.properties ?
>
>         Please advice,
>

-------------------------------------------------------------------------
ServletExec-Interest. For archives and unsubscribe instructions, visit:

    http://www.newatlanta.com/servletexec-interest.jsp

Message Thread
Date Subject Author
11/03/2005 RE: [ServletExec] Setting Servlet Mapping john.vijay@hrblock.com
11/03/2005 RE: [ServletExec] Setting Servlet Mapping paul@newatlanta.com
11/03/2005 RE: [ServletExec] Setting Servlet Mapping john.vijay@hrblock.com
11/03/2005 Re: [ServletExec] Setting Servlet Mapping matt@newatlanta.com
11/04/2005 RE: [ServletExec] Setting Servlet Mapping kellymt@upmc.edu
<< Back to Search Results


   
company media information terms of use privacy policy contact us