You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jean-Louis MONTEIRO <je...@atosorigin.com> on 2008/12/16 12:23:17 UTC
[JIRA OPENEJB-975]Re: Web application not well deployed
OK,
I proposed a patch to the related JIRA.
https://issues.apache.org/jira/browse/OPENEJB-975
Regards,
JLouis
Jean-Louis MONTEIRO wrote:
>
> Dain,
>
> Yes, you can do that to define a default application.
> Extract from the documentation
> (http://tomcat.apache.org/tomcat-5.5-doc/config/context.html):
> [...]
> If you specify a context path of an empty string (""), you are defining
> the default web application for this Host, which will process all requests
> not assigned to other Contexts.
> [...]
>
> OK, I will have a look deeper and open a JIRA (with a patch).
>
> Regards,
> Jean-Louis
>
>
>
> Dain Sundstrom wrote:
>>
>> On Nov 24, 2008, at 11:08 AM, Jean-Louis MONTEIRO wrote:
>>
>>>
>>> Hi all,
>>>
>>> I'm using openejb 3.1 embedded in tomcat 5.5.17.
>>> Deploying an application <Context docBase="path to webapp" path="/
>>> sample" />
>>> works fine.
>>> Using an empty path (ie. path="") can provide some unpredicted
>>> behavior
>>> (injection in servlets, ...).
>>>
>>> May be TomcatWebAppBuilder of the openejb-tomcat-catalina module can
>>> be
>>> enhanced.
>>> I've noticed some lines
>>> 166: standardContext.setPath("/" + webApp.contextRoot);
>>> 255: if (("/" + w.contextRoot).equals(standardContext.getPath())) {
>>> 339: if (("/" +
>>> webAppInfo.contextRoot).equals(standardContext.getPath())) {
>>>
>>> that should be changed to accept empty path.
>>>
>>> Any comment ?
>>
>> Sounds good. I didn't know you could do that in tomcat :)
>>
>>> Can I open a JIRA ?
>>
>> Yep, and attach the patch (make sure to select the button to license
>> the patch to apache).
>>
>>> I will have a look into TomcatWebAppBuilder (deeper) to submit a
>>> patch if
>>> you want.
>>>
>>
>> -dain
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Web-application-not-well-deployed-tp20665147p21031355.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.