The problem of hanging on boot after a folder rename still did not disappear. 
Leaving out pax-web install on boot only made the issue appear less frequent.
Somewhere a thread gets deadlocked on first boot.

Van: Maurice Betzel
Verzonden: zaterdag 25 maart 2023 12:10
Aan: user@karaf.apache.org
Onderwerp: RE: Custom Karaf hangs on first boot if containing folder is renamed

Do you have the standard features in runtime scope (not compile scope) ?

Yes, and I blacklisted all Pax Web related Karaf features using only the 
Pax-Web features down the line.

<dependencies>
    <dependency>
        <groupId>eu.abeel.platform</groupId>
        <artifactId>platform-framework</artifactId>
        <version>${project.version}</version>
        <type>kar</type>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>eu.abeel.platform</groupId>
        <artifactId>platform-framework</artifactId>
        <version>${project.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>eu.abeel.platform</groupId>
        <artifactId>features</artifactId>
        <version>${abeel.platform.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.karaf.features</groupId>
        <artifactId>standard</artifactId>
        <version>${karaf.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.karaf.features</groupId>
        <artifactId>specs</artifactId>
        <version>${karaf.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.karaf.features</groupId>
        <artifactId>spring</artifactId>
        <version>${karaf.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.karaf.features</groupId>
        <artifactId>enterprise</artifactId>
        <version>${karaf.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.ops4j.pax.transx</groupId>
        <artifactId>pax-transx-features</artifactId>
        <version>${pax.transx.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.ops4j.pax.web</groupId>
        <artifactId>pax-web-features</artifactId>
        <version>${pax.web.version}</version>
        <classifier>features</classifier>
        <type>xml</type>
        <scope>runtime</scope>
    </dependency>
</dependencies>


<startupFeatures>
    <feature>eventadmin</feature>
    <feature>platform-environment</feature>
</startupFeatures>
<bootFeatures>
    <feature>wrap</feature>
    <feature>shell</feature>
    <feature>jaas</feature>
    <feature>deployer</feature>
    <feature>feature</feature>
    <feature>management</feature>
    <feature>bundle</feature>
    <feature>config</feature>
    <feature>diagnostic</feature>
    <feature>instance</feature>
    <feature>kar</feature>
    <feature>package</feature>
    <feature>service</feature>
    <feature>system</feature>
    <feature>log</feature>
    <feature>scr</feature>
    <feature>platform-security</feature>
</bootFeatures>


<blacklistedFeatures>
    <feature>ssh</feature>
    <feature>war</feature>
    <feature>cdi</feature>
    <feature>groovy</feature>
    <feature>jackson</feature>
    <feature>felix-http</feature>
    <feature>eclipselink</feature>
    <feature>felix-http</feature>
    <feature>felix-httplite</feature>
    <feature>jackson-jaxrs</feature>
    <feature>jms</feature>
    <feature>obr</feature>
    <feature>jdbc</feature>
    <feature>jetty</feature>
    <feature>hibernate</feature>
    <feature>minimal</feature>
    <feature>standard</feature>
    <feature>hibernate-envers</feature>
    <feature>blueprint-web</feature>
    <feature>transaction-manager-atomikos</feature>
    <feature>application-without-isolation</feature>
    <feature>transaction-manager-narayana</feature>
    <feature>spring-jms</feature>
    <feature>spring-orm</feature>
    <feature>spring-test</feature>
    <feature>spring-jdbc</feature>
    <feature>spring-security</feature>
    <feature>spring-messaging</feature>
    <feature>pax-transx-jms</feature>
    <feature>pax-transx-jdbc</feature>
    <feature>pax-transx-tm-atomikos</feature>
    <feature>pax-transx-tm-narayana</feature>
    <feature>pax-web-http</feature>
    <feature>pax-web-http-war</feature>
    <feature>pax-web-http-whiteboard</feature>
    <feature>pax-web-tomcat</feature>
    <feature>pax-web-http-tomcat</feature>
    <feature>pax-web-tomcat-keycloak</feature>
    <feature>pax-web-tomcat-keycloak18</feature>
    <feature>pax-web-tomcat-websockets</feature>
    <feature>pax-web-undertow</feature>
    <feature>pax-web-http-undertow</feature>
    <feature>pax-web-undertow-keycloak</feature>
    <feature>pax-web-undertow-keycloak18</feature>
    <feature>pax-web-undertow-websockets</feature>
    <feature>pax-web-jetty-http2-jdk8</feature>
    <feature>pax-web-jetty-keycloak18</feature>
</blacklistedFeatures>

Met vriendelijke groet / Mit freundlichen Grüßen / Kind regards,
Maurice Betzel
Principal Software Engineer
Gaston Schul Group
Department ICT

Al onze verrichtingen geschieden op basis van de Algemene voorwaarden der 
Expediteurs van België, gepubliceerd in de bijlage tot het Belgisch Staatsblad 
dd. 24 juni 2005 onder nr. 0090237. De tekst van deze voorwaarden wordt op uw 
verzoek gratis toegezonden.
All our transactions are subject to the General Conditions of the Belgian 
Forwarders Association which have been published under nr. 0090237 in the 
"Bijlage tot het Belgisch Staatsblad" dated June 24th, 2005, and is available 
free of charge upon request.
Toutes nos opérations se font sur base des Conditions Générales des Expéditeurs 
de Belgique. Le texte en a été publié dans l' Annexe au Moniteur Belge du 24 
juin 2005 sous le n° 0090237. Ce texte sera vous envoyé gratuitment sur demande.
Email confidentiality notice:
This email and any files transmitted with it are confidential and intended only 
for the use of the recipient. If you have received this email in error please 
notify its sender.

Reply via email to