Changeset adb1c6f for installer


Ignore:
Timestamp:
May 12, 2019 6:14:55 PM (13 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
04a985cd
Parents:
9eec357
Message:

Jetty: Fix webapps in eepsite (ticket #2477)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/eepsite/jetty.xml

    r9eec357 radb1c6f  
    236236      <Call id="webappprovider" name="addAppProvider">
    237237        <Arg>
    238           <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
     238          <New id="WebAppProvider" class="org.eclipse.jetty.deploy.providers.WebAppProvider">
    239239            <Set name="monitoredDirName">./eepsite/webapps</Set>
    240240            <Set name="parentLoaderPriority">false</Set>
    241             <Set name="extractWars">false</Set>
     241            <!-- this is required because Jetty can't handle jars inside wars,
     242                 for example in php-java-bridge's JavaBridgeTemplate.war
     243                 See https://bugs.eclipse.org/bugs/show_bug.cgi?id=433708
     244                 See our ticket 2477
     245              -->
     246            <Set name="extractWars">true</Set>
    242247            <Set name="defaultsDescriptor">./eepsite/etc/webdefault.xml</Set>
    243248          </New>
     
    245250      </Call>
    246251    </Ref>
     252
     253    <!-- Fixup for webapps to work, see our ticket 2477
     254         Note that for webapps with uncompiled jsps, you will also
     255         need a java compiler in the classpath;
     256         The easiest way (Debian/Ubuntu) is to put a symlink in $I2P/lib:
     257         sudo apt install libecj-java
     258         cd $I2P/lib
     259         ln -s /usr/share/java/ecj.jar
     260         stop and then start i2p (restart alone will not pick up the new jar in the classpath)
     261      -->
     262    <Call class="net.i2p.servlet.WebAppProviderConfiguration" name="configure">
     263      <Arg><Ref refid="WebAppProvider"/></Arg>
     264    </Call>
    247265
    248266    <!-- ===================== -->
Note: See TracChangeset for help on using the changeset viewer.