Thanks JB, it works now! Basically, i added the framework features dependency, removed the runtime scope from the standard features and moved the eventadmin to startupFeatures. The pax logging service is started now and the IllegalStateExceptions are gone. I also have the <libraries> config active (for java mail and postgres driver) by the way.
Regards Jan Am 09.03.2016 um 16:48 schrieb jbonofre [via Karaf]: > I helped an user yesterday with its custom distro: > > - eventadmin should be a startup feature (to avoid some refresh) > - for the dependencies, you should have: > > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>framework</artifactId> > <type>kar</type> > <version>4.0.3</version> > </dependency> > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>framework</artifactId> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > <version>4.0.3</version> > </dependency> > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>standard</artifactId> > <classifier>features</classifier> > <type>xml</type> > <version>4.0.3</version> > </dependency> > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>spring</artifactId> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > <version>4.0.3</version> > </dependency> > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>enterprise</artifactId> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > <version>4.0.3</version> > </dependency> > > - for the karaf-maven-plugin configuration, you should have something > like: > > <startupFeatures> > <feature>eventadmin</feature> > </startupFeatures> > <bootFeatures> > <feature>standard</feature> > </bootFeatures> > > - eventually, depending of the use cases, you may need the <libraries/> > config on the karaf-maven-plugin > > Is it the case in your assembly ? > > Regards > JB > > On 03/09/2016 02:20 PM, F.Aubele wrote: > > > Having the exact same issues. > > Pom looks the same pretty much, i have these additional bootFeatures: > > > > <feature>war</feature> > > <feature>scr</feature> > > <feature>wrapper</feature> > > <feature>webconsole</feature> > > <feature>eventadmin</feature> > > > > The rest is equal. > > > > kind regards, > > FA > > > > > > > > -- > > View this message in context: > http://karaf.922171.n3.nabble.com/Karaf-4-0-4-Custom-distribution-issues-tp4045709p4045734.html > > Sent from the Karaf - User mailing list archive at Nabble.com. > > > > -- > Jean-Baptiste Onofré > [hidden email] </user/SendEmail.jtp?type=node&node=4045736&i=0> > http://blog.nanthrax.net > Talend - http://www.talend.com > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://karaf.922171.n3.nabble.com/Karaf-4-0-4-Custom-distribution-issues-tp4045709p4045736.html > > > To unsubscribe from [Karaf 4.0.4] Custom distribution issues, click > here > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4045709&code=amFuLmtyZXV0emZlbGRAZG91Ymxlc2xhc2guZGV8NDA0NTcwOXwtNjAwMjc0ODc2>. > NAML > <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > -- ----- Der IT und Business-Blog unter http://blog.doubleSlash.de --------------------------------------------------------------------------------------------- *Jan Kreutzfeld* Software Architect doubleSlash Net-Business GmbH Otto-Lilienthal-Str. 2 D-88046 Friedrichshafen Fon: +49 7541 / 70078-164 Fax: +49 7541 / 70078-111 [email protected] <mailto:[email protected]> http://doubleSlash.de --------------------------------------------------------------------------------------------- doubleSlash Net-Business GmbH Geschäftsführung: Konrad Krafft, Oliver Belikan, Andreas Strobel Sitz, Registergericht: Friedrichshafen, Amtsgericht Ulm HRB 631718 --------------------------------------------------------------------------------------------- -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-4-Custom-distribution-issues-tp4045709p4045737.html Sent from the Karaf - User mailing list archive at Nabble.com.
