Skip to content

migrating from jetty 9 to jetty12 #12930

@kavicoder45

Description

@kavicoder45

Jetty Version
12.0.16

Jetty Environment
ee10

Java Version
21

Question
I am currently using the following configuration in my deploy.xml file. What is the replacement for WebAppProvider and PropertiesConfigurationManager classes in Jetty 12?

<Call id="webappprovider" name="addAppProvider">
    <Arg>
        <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
            <Set name="monitoredDirName"><SystemProperty name="esecurity" default="/"/>#</Set>
            <Set name="defaultsDescriptor"><SystemProperty name=#" default="#"/>/3rdparty/jetty/webdefault.xml</Set>
            <Set name="scanInterval">1</Set>
            <Set name="extractWars">true</Set>
            <Set name="configurationManager">
                <New class="org.eclipse.jetty.deploy.PropertiesConfigurationManager">
                    <!-- file of context configuration properties
                    <Set name="file"><SystemProperty name="jetty.base"/>/etc/some.properties</Set>
                    -->
                    <!-- set a context configuration property
                    <Call name="put"><Arg>name</Arg><Arg>value</Arg></Call>
                    -->
                </New>
            </Set>
        </New>
    </Arg>
</Call>


Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions