thank you very much.
On Fri, Aug 12, 2011 at 8:05 PM, Michael Gorovoy <[email protected]>wrote:
> If that is what you would like to do, you should subclass the
> WebAppProvider and have the subclass call the protected method to set the
> recursive flag in the constructor, or you could create a public setter
> method that would supersede the protected one, similar to the following.
>
> @Override
> public void setRecursive(boolean value)
> {
> super.setRecursive(value);
> }
>
> You could then change your jetty-webapps.xml to use your subclass of
> WebAppProvider and configure it appropriately. This way you don't have to
> change Jetty code and recompile it every time a new version is released.
>
> -Michael
>
> On Fri, Aug 12, 2011 at 7:07 AM, zhiwei chen <[email protected]> wrote:
>
>> hello Michael,
>> I found a method setRecursive in class ScanningAppProvider, I changed it
>> from protected to public, so I can use <Set name="recursive">true</Set> in
>> jetty-webapp.xml .
>>
>>
>> On Wed, Aug 10, 2011 at 10:40 PM, Michael Gorovoy <[email protected]>wrote:
>>
>>> Unfortunately, you cannot put the web application in a subdirectory of a
>>> /webapp directory, and have Jetty pick it up and deploy it with respective
>>> subdirectory being part of the context. All web applications have to reside
>>> in /webapp directory in order to be automatically deployed.
>>>
>>> On the other hand, if you need to deploy an application from an arbitrary
>>> path, or with a context path other when default that is picked for you, you
>>> could do that by creating a context configuration file in /contexts
>>> directory. Please see the text.xml context configuration file in Jetty
>>> distributions for an example. Depending on the version of Jetty you are
>>> using, you should be able to find information about ContextDeployer by
>>> searching for "Jetty ContextDeployer" in either Codehaus or Eclipse
>>> documentation.
>>>
>>> -Michael
>>>
>>> On Wed, Aug 10, 2011 at 5:51 AM, zhiwei chen <[email protected]> wrote:
>>>
>>>> hello,veryone.
>>>>
>>>> webapps directory tree:
>>>>
>>>> webapps
>>>> ├── child
>>>> │ └── hello.war
>>>> ├── test.war
>>>>
>>>> I can access test.war by using http://localhost:8080/test/ , but I
>>>> can't access hello.war by using http://localhost:8080/child/hello/.
>>>>
>>>> How to let jetty load all the .war files under webapps directory and
>>>> it's children directory?
>>>>
>>>> Thank you!
>>>>
>>>> _______________________________________________
>>>> jetty-users mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> jetty-users mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>
>>>
>>
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users