Closed mavencode01 closed 9 years ago
I got this to work by including the service interface in my project and generating the proxy class myself.
It seems for some reasons, the generated proxy class is not included the jar ????
If you're using vert.x 3.0.0-milestone4, can you try vertx-elasticsearch-service 2.0.0-RC3?
The proxy class should definitely be included in the jar:
$ jar tf vertx-elasticsearch-service-2.0.0-RC3.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/englishtown/
com/englishtown/vertx/
com/englishtown/vertx/elasticsearch/
com/englishtown/vertx/elasticsearch/impl/
com/englishtown/vertx/hk2/
vertx-elasticsearch-service-js/
com/englishtown/vertx/elasticsearch/AbstractOptions.class
com/englishtown/vertx/elasticsearch/AbstractWriteOptions.class
com/englishtown/vertx/elasticsearch/DeleteOptions.class
com/englishtown/vertx/elasticsearch/ElasticSearchConfigurator.class
com/englishtown/vertx/elasticsearch/ElasticSearchService.class
com/englishtown/vertx/elasticsearch/ElasticSearchServiceVerticle.class
com/englishtown/vertx/elasticsearch/ElasticSearchServiceVertxEBProxy.class
com/englishtown/vertx/elasticsearch/ElasticSearchServiceVertxProxyHandler.class
com/englishtown/vertx/elasticsearch/GetOptions.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$1.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$2.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$3.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$4.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$5.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService$6.class
com/englishtown/vertx/elasticsearch/impl/DefaultElasticSearchService.class
com/englishtown/vertx/elasticsearch/impl/DefaultTransportClientFactory.class
com/englishtown/vertx/elasticsearch/impl/EnvElasticSearchConfigurator.class
com/englishtown/vertx/elasticsearch/impl/JsonElasticSearchConfigurator.class
com/englishtown/vertx/elasticsearch/IndexOptions.class
com/englishtown/vertx/elasticsearch/package-info.class
com/englishtown/vertx/elasticsearch/SearchOptions.class
com/englishtown/vertx/elasticsearch/SearchScrollOptions.class
com/englishtown/vertx/elasticsearch/SortOption.class
com/englishtown/vertx/elasticsearch/TransportClientFactory.class
com/englishtown/vertx/elasticsearch/UpdateOptions.class
com/englishtown/vertx/hk2/BootstrapBinder.class
com/englishtown/vertx/hk2/ElasticSearchBinder.class
com.englishtown.vertx.vertx-elasticsearch-service.json
vertx-elasticsearch-service-js/elastic_search_service.js
META-INF/maven/
META-INF/maven/com.englishtown.vertx/
META-INF/maven/com.englishtown.vertx/vertx-elasticsearch-service/
META-INF/maven/com.englishtown.vertx/vertx-elasticsearch-service/pom.xml
META-INF/maven/com.englishtown.vertx/vertx-elasticsearch-service/pom.properties
If it still doesn't work, can you post a project that reproduces the problem?
@adrianluisgonzalez , it works now.
Thanks
Am trying to figure out how to use your service but I keep getting same error message.
Basically, I am using vertx maven service factory to download the service from maven repository
Now, If I tried to create a proxy to the service, ElasticSearchService service = ElasticSearchService.createEventBusProxy(vertx, "et.elasticsearch");
it just throws up an error
Is there something am missing ? I will gladly appreciate if you could help.
Thanks