Hi,
The KarafMBeanServerBuilder is no more used in Karaf (refactoring of the
JMX security). So, you have to NOT enable it in Pax Exam config.
Regards
JB
On 10/07/2015 11:01 PM, Roman Sakno wrote:
The problem caused by Pax Exam test container configuration:
1. Pax Exam 4.x must annotate class
org.ops4j.pax.exam.karaf.options.KarafDistributionConfigurationSecurityOption
as deprecated
2. Pax Exam 4.x must annotate method
org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureSecurity()
as deprecated
3. Remove configureSecurity().enableKarafMBeanServerBuilder() from
@Configuration annotated method in itest class
@org.ops4j.pax.exam.Configuration
public final Option[] configureContainer(){
final MavenArtifactUrlReference karafUrl = maven()
.groupId("org.apache.karaf")
.artifactId("apache-karaf")
.versionAsInProject().type("tar.gz");
return new Option[]{
karafDistributionConfiguration().frameworkUrl(karafUrl).name("Apache
Karaf").unpackDirectory(new File("exam")),
//configureSecurity().enableKarafMBeanServerBuilder(), MUST BE
COMMENTED!!
debugConfiguration("32441", true)
};
}
--
View this message in context:
http://karaf.922171.n3.nabble.com/Class-not-found-KarafMBeanServerBuilder-in-Karaf-3-0-5-tp4042936p4042938.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com