Hi, yes I have defined both hibernate-validator and hibernate as bootFeature and only hibernate-validator is added in the cfg file. Thats the case!
Regards, Andy -------------------------------------------------------------------------------------------------------------------------------------------- Andy Schmidt - KISTERS AG - Pascalstraße 8+10 - 52076 Aachen - Germany Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers Phone: +49 2408 9385 -449 | Fax: +49 2408 9385 -555 | E-Mail: [email protected] | WWW: http://www.kisters.de -------------------------------------------------------------------------------------------------------------------------------------------- Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Jean-Baptiste Onofré <[email protected]> To: [email protected], Date: 27.11.2014 19:12 Subject: Re: Hibernate not set to boot feature Hi, you mean you define both hibernate-validator and hibernate as bootFeature and only hibernate-validator is added in the cfg file ? If you just define hibernate-validator as bootFeatures, it's normal that you have only this one as hibernate feature is not a transitive feature for hibernate-validator: <feature name="hibernate-validator" description="Hibernate Validator support" version="${hibernate.validator.version}"> <bundle dependency="true">mvn:javax.validation/validation-api/1.1.0.Final</bundle> <bundle dependency="true">mvn:com.fasterxml/classmate/1.0.0</bundle> <bundle dependency="true">mvn:javax.el/javax.el-api/2.2.4</bundle> <bundle dependency="true">mvn:org.glassfish.web/javax.el/2.2.4</bundle> <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle> <bundle>mvn:org.hibernate/hibernate-validator/${hibernate.validator.version}</bundle> </feature> So, you have to define both hibernate and hibernate-validator. Is it the case ? Regards JB On 11/27/2014 01:28 PM, Andy Schmidt wrote: > Hallo JB, > > yes I added the enterprise features artifact to my pom file. > > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>enterprise</artifactId> > <version>${karaf.version}</version> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > </dependency> > > I have looked at the logs and they saif the hibernate feature was > installed and defined as boot feature. > > [INFO] Feature hibernate is defined as a boot feature > > If I remove the hibernate-validator feature the hibernate feature is > included in the featuresBoot property list. > > featuresBoot = config,standard,region,package,kar,ssh,management,hibernate > ,webconsole > > If I add the hibernate-validator feature the hibernate feature is not > listed anymore. > > featuresBoot = config,standard,region,package,kar,ssh,management,hibernate > -validator,webconsole > > Do you have an idea whats happen? > > Regards, Andy > > -------------------------------------------------------------------------------------------------------------------------------------------- > Andy Schmidt - KISTERS AG - Pascalstraße 8+10 - 52076 Aachen - Germany > Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers > Phone: +49 2408 9385 -449 | Fax: +49 2408 9385 -555 | E-Mail: [email protected] | WWW: http://www.kisters.de > -------------------------------------------------------------------------------------------------------------------------------------------- > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > > From: Jean-Baptiste Onofré <[email protected]> > To: [email protected], > Date: 26.11.2014 19:55 > Subject: Re: Hibernate not set to boot feature > > > > Hi Andy, > > during the maven execution, you should have log about what the plugin did. > Can you take a look to see some messages regarding hibernate ? > > By the way, did you define the enterprise features artifact in your pom > dependencies ? > > Regards > JB > > On 11/26/2014 03:18 PM, Andy Schmidt wrote: >> Hello, >> >> currently I am build a karaf assemby with the karaf-maven-plugin. My > maven >> configuration is like: >> >> <plugin> >> <groupId>org.apache.karaf.tooling</groupId >>> >> <artifactId>karaf-maven-plugin</artifactId >>> >> <version>3.0.2</version> >> <extensions>true</extensions> >> <configuration> >> <bootFeatures> >> <feature>standard</feature >>> >> <feature>management</ >> feature> >> <feature>scr</feature> >> <feature>webconsole</ >> feature> >> <feature>cxf</feature> >> <feature>hibernate</ >> feature> >> <feature> >> hibernate-validator</feature> >> </bootFeatures> >> </configuration> >> </plugin> >> >> All the boot freatures should be installed and available at startup >> process. I also included the dependecies for karaf, framework, standard >> and enterprise features. >> But the hibernate feature are not be installed and started at startup >> process. I has been looked into the file 'org.apache.karaf.features.cfg' >> and on the property 'featuresBoot' the hibernate feature is not set into >> the comma separated list. The feature hibernate-validator is set. If I >> remove the feature hibernate-validator from maven configuration and run >> the maven install process again the feature hibernate is set into the >> 'featuresBoot' list. >> >> Is there a bug in the karaf-maven-plugin? >> >> Thanks and best regards, >> >> Andy >> >> >> >> > -------------------------------------------------------------------------------------------------------------------------------------------- >> Andy Schmidt - KISTERS AG - Pascalstraße 8+10 - 52076 Aachen - Germany >> Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns > Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers >> Phone: +49 2408 9385 -449 | Fax: +49 2408 9385 -555 | E-Mail: > [email protected] | WWW: http://www.kisters.de >> > -------------------------------------------------------------------------------------------------------------------------------------------- >> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > Weitergabe dieser Mail ist nicht gestattet. >> This e-mail may contain confidential and/or privileged information. If > you are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorised copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. >> > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
