# Caused by: java.lang.ClassNotFoundException: org.elasticsearch.index.analysis.uaxurlemail.UaxUrlEmailAnalyzerProvider

**URL:** <https://discuss.elastic.co/t/caused-by-java-lang-classnotfoundexception-org-elasticsearch-index-analysis-uaxurlemail-uaxurlemailanalyzerprovider/12062>\
**Category:** Elasticsearch\
**Created:** [May 22, 2013, 12:48am UTC](https://discuss.elastic.co/t/caused-by-java-lang-classnotfoundexception-org-elasticsearch-index-analysis-uaxurlemail-uaxurlemailanalyzerprovider/12062 "2013-05-22T00:48:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmccann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benmccann/32/420_2.png) [@benmccann](https://discuss.elastic.co/u/benmccann)\
**Post date:** [May 22, 2013, 12:48am UTC](https://discuss.elastic.co/t/caused-by-java-lang-classnotfoundexception-org-elasticsearch-index-analysis-uaxurlemail-uaxurlemailanalyzerprovider/12062/1 "2013-05-22T00:48:30Z")

</div>

Is there something special I need to do install  
the UaxUrlEmailAnalyzerProvider? I'm getting an exception when I try to  
set it as the default analyzer on an index.

Thanks,  
Ben

Exception in thread "main" com.google.inject.ProvisionException: Guice  
provision errors:

1. Error injecting constructor,  
org.elasticsearch.ElasticSearchIllegalArgumentException: failed to find  
analyzer type [uax\_url\_email] or tokenizer for [default]  
at  
controllers.batch.PopulateElasticSearch.(PopulateElasticSearch.java:21)  
while locating controllers.batch.PopulateElasticSearch

1 error  
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)  
at  
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)  
at  
controllers.batch.PopulateElasticSearch.main(PopulateElasticSearch.java:45)  
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: failed  
to find analyzer type [uax\_url\_email] or tokenizer for [default]  
at  
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:372)  
at  
org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60)  
at  
org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:201)  
at  
org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:82)  
at  
org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:130)  
at  
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:99)  
at  
org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:129)  
at  
org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:66)  
at  
org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:380)  
at  
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:263)  
at  
org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:229)  
at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:95)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:722)  
Caused by: org.elasticsearch.common.settings.NoClassSettingsException:  
Failed to load class setting [type] with value [uax\_url\_email]  
at  
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:347)  
at  
org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:335)  
at  
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:356)  
... 14 more  
Caused by: java.lang.ClassNotFoundException:  
org.elasticsearch.index.analysis.uaxurlemail.UaxUrlEmailAnalyzerProvider  
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)  
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)  
at  
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:345)  
... 16 more

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ben\_McCann\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_mccann_2/32/1097_2.png) [@Ben\_McCann\_2](https://discuss.elastic.co/u/Ben_McCann_2)\
**Post date:** [May 22, 2013, 1:14am UTC](https://discuss.elastic.co/t/caused-by-java-lang-classnotfoundexception-org-elasticsearch-index-analysis-uaxurlemail-uaxurlemailanalyzerprovider/12062/2 "2013-05-22T01:14:37Z")

</div>

I think I got it figured out. I was trying to set  
index.analysis.analyzer.default.type and I think I should have been setting  
the index.analysis.tokenizer.default.type. The docs could definitely expand  
a bit more on some of these settings.

Thanks again,  
Ben

On Tue, May 21, 2013 at 5:48 PM, Ben McCann [benjamin.j.mccann@gmail.com](mailto:benjamin.j.mccann@gmail.com)wrote:

> Is there something special I need to do install  
> the UaxUrlEmailAnalyzerProvider? I'm getting an exception when I try to  
> set it as the default analyzer on an index.
> 
> Thanks,  
> Ben
> 
> Exception in thread "main" com.google.inject.ProvisionException: Guice  
> provision errors:
> 
> 1. Error injecting constructor,  
> org.elasticsearch.ElasticSearchIllegalArgumentException: failed to find  
> analyzer type [uax\_url\_email] or tokenizer for [default]  
> at  
> controllers.batch.PopulateElasticSearch.(PopulateElasticSearch.java:21)  
> while locating controllers.batch.PopulateElasticSearch
> 
> 1 error  
> at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)  
> at  
> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)  
> at  
> controllers.batch.PopulateElasticSearch.main(PopulateElasticSearch.java:45)  
> Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: failed  
> to find analyzer type [uax\_url\_email] or tokenizer for [default]  
> at  
> org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:372)  
> at  
> org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60)  
> at  
> org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:201)  
> at  
> org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:82)  
> at  
> org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:130)  
> at  
> org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:99)  
> at  
> org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:129)  
> at  
> org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:66)  
> at  
> org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:380)  
> at  
> org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:263)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:229)  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:95)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:722)  
> Caused by: org.elasticsearch.common.settings.NoClassSettingsException:  
> Failed to load class setting [type] with value [uax\_url\_email]  
> at  
> org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:347)  
> at  
> org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:335)  
> at  
> org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:356)  
> ... 14 more  
> Caused by: java.lang.ClassNotFoundException:  
> org.elasticsearch.index.analysis.uaxurlemail.UaxUrlEmailAnalyzerProvider  
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)  
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)  
> at java.security.AccessController.doPrivileged(Native Method)  
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)  
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)  
> at  
> org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:345)  
> ... 16 more
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/AA2k83yoKqc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/AA2k83yoKqc/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[Ben McCann on about.me](https://about.me/benmccann)**
>
> I am a Founder, Entrepreneur, and Investor in Mountain View, California. Visit my website.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:35am UTC](https://discuss.elastic.co/t/caused-by-java-lang-classnotfoundexception-org-elasticsearch-index-analysis-uaxurlemail-uaxurlemailanalyzerprovider/12062/3 "2017-07-06T02:35:29Z")

</div>


