[ 
https://issues.apache.org/jira/browse/AMBARI-22968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivér Szabó updated AMBARI-22968:
----------------------------------
    Summary: Exclude class duplications from Log Search / Log Feeder classpath  
(was: Multiple javax.el implementation on Log Search compile classpath)

> Exclude class duplications from Log Search / Log Feeder classpath
> -----------------------------------------------------------------
>
>                 Key: AMBARI-22968
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22968
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-logsearch
>    Affects Versions: 2.7.0
>            Reporter: Olivér Szabó
>            Assignee: Olivér Szabó
>            Priority: Major
>             Fix For: 2.7.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Things like that can happen at runtime:
> (Multiple javax.el implementation on Log Search runtime/compile classpath)
> {code:java}
> Feb 12, 2018 8:03:55 PM org.glassfish.jersey.internal.Errors logErrors
> WARNING: The following warnings have been detected: WARNING: Unknown HK2 
> failure detected:
> MultiException stack 1 of 1
> javax.validation.ValidationException: HV000183: Unable to initialize 
> 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the 
> classpath, or use ParameterMessageInterpolator instead
>       at 
> org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:102)
>       at 
> org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:45)
>       at 
> org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolator(ConfigurationImpl.java:423)
>       at 
> org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultMessageInterpolatorConfiguredWithClassLoader(ConfigurationImpl.java:575)
>       at 
> org.hibernate.validator.internal.engine.ConfigurationImpl.getMessageInterpolator(ConfigurationImpl.java:364)
>       at 
> org.hibernate.validator.internal.engine.ValidatorFactoryImpl.<init>(ValidatorFactoryImpl.java:144)
>       at 
> org.hibernate.validator.HibernateValidator.buildValidatorFactory(HibernateValidator.java:38)
>       at 
> org.hibernate.validator.internal.engine.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:331)
>       at 
> org.glassfish.jersey.server.validation.internal.ValidationBinder$DefaultValidatorFactoryProvider.provide(ValidationBinder.java:164)
>       at 
> org.glassfish.jersey.server.validation.internal.ValidationBinder$DefaultValidatorFactoryProvider.provide(ValidationBinder.java:157)
>       at org.jvnet.hk2.internal.FactoryCreator.create(FactoryCreator.java:153)
>       at 
> org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
>       at 
> org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
>       at 
> org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
>       at 
> org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
>       at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
>       at 
> org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:122)
>       at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
>       at 
> org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
>       at 
> org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:695)
>       at 
> org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:78)
>       at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:212)
>       at 
> org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:235)
>       at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:358)
>       at 
> org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
>       at 
> org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
>       at 
> org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
>       at 
> org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
>       at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
>       at 
> org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:122)
>       at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
>       at 
> org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
>       at 
> org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
>       at org.jvnet.hk2.internal.FactoryCreator.create(FactoryCreator.java:135)
>       at 
> org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
>       at 
> org.jvnet.hk2.internal.PerLookupContext.findOrCreate(PerLookupContext.java:70)
>       at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
>       at 
> org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:774)
>       at 
> org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:786)
>       at 
> org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111)
>       at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker$Builder.build(ResourceMethodInvoker.java:153)
>       at 
> org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createInflector(RuntimeModelBuilder.java:128)
>       at 
> org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createMethodRouter(RuntimeModelBuilder.java:115)
>       at 
> org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createResourceMethodRouters(RuntimeModelBuilder.java:309)
>       at 
> org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.buildModel(RuntimeModelBuilder.java:173)
>       at 
> org.glassfish.jersey.server.internal.routing.Routing$Builder.buildStage(Routing.java:196)
>       at 
> org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:587)
>       at 
> org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)
>       at 
> org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)
>       at 
> org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)
>       at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>       at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>       at 
> org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
>       at 
> org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)
>       at 
> org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)
>       at 
> org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)
>       at 
> org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)
>       at javax.servlet.GenericServlet.init(GenericServlet.java:244)
>       at 
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637)
>       at 
> org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:421)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:760)
>       at 
> org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46)
>       at 
> org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext.deferredInitialize(JettyEmbeddedWebAppContext.java:36)
>       at 
> org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.handleDeferredInitialize(JettyEmbeddedServletContainer.java:205)
>       at 
> org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainer.start(JettyEmbeddedServletContainer.java:138)
>       at 
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)
>       at 
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)
>       at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
>       at 
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
>       at 
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
>       at 
> org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
>       at 
> org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
>       at 
> org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
>       at org.apache.ambari.logsearch.LogSearch.main(LogSearch.java:44)
> Caused by: java.lang.NoSuchMethodError: 
> javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
>       at 
> org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.buildExpressionFactory(ResourceBundleMessageInterpolator.java:98)
>       ... 77 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to