These are chat archives for spring-cloud/spring-cloud

5th
Mar 2018
LIN
@magixsource
Mar 05 2018 02:25
hi ,is any finchley intro link ?
Abhishek Dujari
@abshkd
Mar 05 2018 09:22
Hi. Why cant resttemplate simply find the hosts when I have enabled DiscoverClient in the application context
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://sso/": sso; nested exception is java.net.UnknownHostException: sso
I am just using a new instance on RestTemplate in a method to call this other microservice
using netflix eureka
all the services are up and running. they register fine too.
Marcin Grzejszczak
@marcingrzejszczak
Mar 05 2018 09:30
the rest template instance has to be a bean
and also annotated with @LoadBalanced
@Bean @LoadBalanced rT() { new RestTemplate(); }
Abhishek Dujari
@abshkd
Mar 05 2018 09:31
@marcingrzejszczak thank you very much. I also notice that doing that causes restemplate to not resolve FQDN
Marcin Grzejszczak
@marcingrzejszczak
Mar 05 2018 09:31
yes
Abhishek Dujari
@abshkd
Mar 05 2018 09:31
is there a way to have my cake and eat it too?
Marcin Grzejszczak
@marcingrzejszczak
Mar 05 2018 09:33
yeah, create the bean ;)
Abhishek Dujari
@abshkd
Mar 05 2018 09:33
when I try to use the same coad you have above I get this error
@bean is not applicable constrcutor
Marcin Grzejszczak
@marcingrzejszczak
Mar 05 2018 09:34
eee what?
@Configuration
class MyConfig {

@Bean @LoadBalanced rT() { new RestTemplate(); }

}
Abhishek Dujari
@abshkd
Mar 05 2018 09:35
oh wait a sec. so I need this in my config?
sorry is that the exact code?
sorry nvm
Abhishek Dujari
@abshkd
Mar 05 2018 09:40
how do you use this config?
is there any example of using resttemplate with actual code? not the ones that show autowiring in place
i'v been googling
is it ok to use Autowire?
Abhishek Dujari
@abshkd
Mar 05 2018 09:45
    @LoadBalanced
    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }

    @Autowired
    RestTemplate restTemplate;
i am always told that Autowiring constructors is not appropriate
but every example I have seen does this
Marcin Grzejszczak
@marcingrzejszczak
Mar 05 2018 10:13
hmm
I think you have to read the basics of Spring Boot
start reading from here I guess
maybe current snapshot is a bad idea
Fabian Wallwitz
@cforce
Mar 05 2018 10:16
using txt/binary files from spring cloud cfg server .. on @Refreshscope of microservice for a bean that shall load this (somehow bigger file) only if the git revision is newer than the one i have loaded already ..
using simple yml or properties files ..on refresh i can implement the EnvironmentChnage Venet.. that gives me hints if a property has chnaged.... but if i want to be evented on refresh of a file has chnaged .. how can i do thta?
how would spring cloud config client what txt/binary files is consumed, so it may track the gi revisiuon chnage for that file?
Fabian Wallwitz
@cforce
Mar 05 2018 10:26
can i ask spring cloud config server for "what is latest revision" of /{name}/{profile}/{label}/{path}?
so on /refresh call thze bean which loads this txt file from cfg-server checks f current outdated by comrparing git revison of local against cfg-server remote and only (down)load if necesarry..
Abhishek Dujari
@abshkd
Mar 05 2018 12:17
@marcingrzejszczak thanks, atleast its working now. I will read the config guide again
I need to forward custom headers that I create in the Spring Security filter to downstream services. I added the header in doFilter but that doesnt get forwarded. i was half expecting it not to. Form docs I see that one can write a ZuulFilter for routing stage, but thats seems overly complex to me https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html#zuul-developer-guide-sample-route-filter
is there a simpler way to add custom headers for downstream services?
Abhishek Dujari
@abshkd
Mar 05 2018 13:00
for whatever reason it works not with pre filter and zuul
when i logged the process it seemed zuul filter executes before spring security.
but now its working fine and it would seem spring security preceeds zuul. can someone confirm this?
Fabian Wallwitz
@cforce
Mar 05 2018 14:53
ContextRefreshedEvent happens too often
Fabian Wallwitz
@cforce
Mar 05 2018 14:59
ist happens every few seconds.. expetcted that it only happens of call of "/refresh" or mayb one time at start.. or in case troggered by spring cloud bus (we won't use)
Mark Corkery
@KramKroc
Mar 05 2018 17:06

Hi folks, jumping from Camden to Edgware and not yet started code changes. Firing up our system to see if it holds water after dependencies are updated and all start fine which is promising. We use an API GW with zuul and also some @LoadBalanced rest template calls and I’ve noticed these are failing:

2018-03-05T16:15:36,766 traceId=cbf29614a3d887d3 spanId=b69050847775e0f5 [qtp808653065-32] WARN  o.s.c.n.z.f.p.SendErrorFilter : Error during filtering
com.netflix.zuul.exception.ZuulException: Failed to instantiate [org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient]: Is it an abstract class?; nested exception is java.lang.InstantiationException: org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient                                                                                   
        at org.springframework.cloud.netflix.zuul.util.ZuulRuntimeException.<init>(ZuulRuntimeException.java:33) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                                
        at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:119) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]

Has there been a specific change around this area that I need to change code for?

Mark Corkery
@KramKroc
Mar 05 2018 17:15
Actaully, I’m being dumb, it seems to be bubbling up from sleuth in some way:
Caused by: java.lang.InstantiationException: org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient                                                                                                                                                     
        at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_121]                                                                                                                                                                                                          
        at org.springframework.beans.BeanUtils.instantiate(BeanUtils.java:77) ~[spring-beans-4.3.14.RELEASE.jar!/:4.3.14.RELEASE]                                                                                                                                              
        at org.springframework.cloud.netflix.ribbon.SpringClientFactory.instantiateWithConfig(SpringClientFactory.java:94) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                      
        at org.springframework.cloud.netflix.ribbon.SpringClientFactory.getInstance(SpringClientFactory.java:115) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                               
        at org.springframework.cloud.netflix.ribbon.SpringClientFactory.getClient(SpringClientFactory.java:51) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                                  
        at org.springframework.cloud.netflix.zuul.filters.route.apache.HttpClientRibbonCommandFactory.create(HttpClientRibbonCommandFactory.java:54) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                            
        at org.springframework.cloud.netflix.zuul.filters.route.apache.HttpClientRibbonCommandFactory.create(HttpClientRibbonCommandFactory.java:33) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                            
        at org.springframework.cloud.sleuth.instrument.zuul.TraceRibbonCommandFactory.create(TraceRibbonCommandFactory.java:48) ~[spring-cloud-sleuth-core-1.3.2.RELEASE.jar!/:1.3.2.RELEASE]                                                                                  
        at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:156) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                       
        at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:111) ~[spring-cloud-netflix-core-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]                                                                                           
        ... 99 more
waleed-amer
@waleed-amer
Mar 05 2018 17:43
Trying to replace Zuul by Gateway
***************************
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) APPLICATION FAILED TO START
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) ***************************
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) 
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) Description:
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) 
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) Failed to bind properties under 'spring.cloud.gateway.routes[0]' to org.springframework.cloud.gateway.route.RouteDefinition:
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) 
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316)     Reason: HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'. Check configuration for 'id'
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) 
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) Action:
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) 
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316) Update your application's configuration
19:35:56,660 INFO  [stdout] (ServerService Thread Pool -- 316)
spring:
  jmx:
    enabled: true
  cloud:
    gateway:
      routes:
      - id : users
        uri: http://localhost:8091
        predicates:
        - path=/api/users
@spencergibb
Spencer Gibb
@spencergibb
Mar 05 2018 17:46
version? dependencies?
waleed-amer
@waleed-amer
Mar 05 2018 17:47
<springBoot.version>2.0.0.RC1</springBoot.version>
<spring-cloud.version>Finchley.M6</spring-cloud.version>
Spencer Gibb
@spencergibb
Mar 05 2018 17:47
please try with 2.0.0.RELEASE and Finchley.M8, those are the latest
waleed-amer
@waleed-amer
Mar 05 2018 17:58
@spencergibb i have just done but same reproduced
Spencer Gibb
@spencergibb
Mar 05 2018 17:58
dependencies?
waleed-amer
@waleed-amer
Mar 05 2018 18:00
<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>${springBoot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.struts</groupId>
                <artifactId>struts2-bom</artifactId>
                <version>${struts2.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-bom</artifactId>
                <version>${log4j2.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat</artifactId>
                </exclusion>
                <!-- <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-logging</artifactId>
                </exclusion> -->
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j2</artifactId>
        </dependency>
        <!-- <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> 
            <version>${log4j2.version}</version>$NO-MVN-MAN-VER$ </dependency> <dependency> 
            <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> 
            <version>${log4j2.version}</version>$NO-MVN-MAN-VER$ </dependency> -->

        <!-- <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> 
            <version>7.0</version> <scope>provided</scope> </dependency> -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
        </dependency>
</dependencies>
Spencer Gibb
@spencergibb
Mar 05 2018 18:04
gateway and spring-boot-starter-web aren't compatible
you should have seen a warning in the logs
waleed-amer
@waleed-amer
Mar 05 2018 18:05
I have just recently joined.
Should i switch to Zuul
nbenjamin
@nbenjamin
Mar 05 2018 18:51
Currently pom version we can get using @pom.version@ in application.properties, however if i am using only bootstrap.yml without application.properties its not working with @pom.version. Could you please suggest what is the right format?
waleed-amer
@waleed-amer
Mar 05 2018 19:30
@spencergibb just build a standalone API Gateway project but seems i have same issue
<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-gateway</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
        <spring-cloud.version>2.0.0.M8</spring-cloud.version>
Spencer Gibb
@spencergibb
Mar 05 2018 19:33
I've built them many times without the error. What does mvn dependency:tree say?
waleed-amer
@waleed-amer
Mar 05 2018 19:34
/home/waleed/.m2/repository/junit/junit/4.12/junit-4.12.jar
/home/waleed/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
/home/waleed/.m2/repository/org/springframework/cloud/spring-cloud-starter-gateway/2.0.0.M8/spring-cloud-starter-gateway-2.0.0.M8.jar
/home/waleed/.m2/repository/org/springframework/cloud/spring-cloud-gateway-core/2.0.0.M8/spring-cloud-gateway-core-2.0.0.M8.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.0.RELEASE/spring-boot-starter-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot/2.0.0.RELEASE/spring-boot-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/spring-context/5.0.4.RELEASE/spring-context-5.0.4.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/spring-aop/5.0.4.RELEASE/spring-aop-5.0.4.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/spring-expression/5.0.4.RELEASE/spring-expression-5.0.4.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.0.RELEASE/spring-boot-autoconfigure-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.0.RELEASE/spring-boot-starter-logging-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar
/home/waleed/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar
/home/waleed/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar
/home/waleed/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar
/home/waleed/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar
/home/waleed/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar
/home/waleed/.m2/repository/org/springframework/spring-core/5.0.4.RELEASE/spring-core-5.0.4.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/spring-jcl/5.0.4.RELEASE/spring-jcl-5.0.4.RELEASE.jar
/home/waleed/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar
/home/waleed/.m2/repository/org/springframework/spring-tuple/1.0.0.RELEASE/spring-tuple-1.0.0.RELEASE.jar
/home/waleed/.m2/repository/com/esotericsoftware/kryo-shaded/3.0.3/kryo-shaded-3.0.3.jar
/home/waleed/.m2/repository/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.jar
/home/waleed/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.4/jackson-databind-2.9.4.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.4/jackson-core-2.9.4.jar
/home/waleed/.m2/repository/io/projectreactor/addons/reactor-extra/3.1.6.RELEASE/reactor-extra-3.1.6.RELEASE.jar
/home/waleed/.m2/repository/io/projectreactor/reactor-core/3.1.5.RELEASE/reactor-core-3.1.5.RELEASE.jar
/home/waleed/.m2/repository/org/reactivestreams/reactive-streams/1.0.2/reactive-streams-1.0.2.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-starter-webflux/2.0.0.RELEASE/spring-boot-starter-webflux-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.0.RELEASE/spring-boot-starter-json-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.4/jackson-datatype-jdk8-2.9.4.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.4/jackson-datatype-jsr310-2.9.4.jar
/home/waleed/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.4/jackson-module-parameter-names-2.9.4.jar
/home/waleed/.m2/repository/org/springframework/boot/spring-boot-starter-reactor-netty/2.0.0.RELEASE/spring-boot-starter-reactor-netty-2.0.0.RELEASE.jar
/home/waleed/.m2/repository/io/projectreactor/ipc/reactor-netty/0.7.5.RELEASE/reactor-netty-0.7.5.RELEASE.jar
/home/waleed/.m2/repository/io/netty/netty-codec-http/4.1.22.Final/netty-codec-http-4.1.22.Final.jar
/home/waleed/.m2/repos
Spencer Gibb
@spencergibb
Mar 05 2018 19:35
that's not the output of mvn dependency:tree
waleed-amer
@waleed-amer
Mar 05 2018 19:42
@spencergibb
com.nounah:nounah-gateway:war:0.0.1-SNAPSHOT
+- junit:junit:jar:4.12:test
|  \- org.hamcrest:hamcrest-core:jar:1.3:test
+- org.springframework.cloud:spring-cloud-starter-gateway:jar:2.0.0.M8:compile
|  +- org.springframework.cloud:spring-cloud-gateway-core:jar:2.0.0.M8:compile
|  |  +- org.springframework.boot:spring-boot-starter:jar:2.0.0.RELEASE:compile
|  |  |  +- org.springframework.boot:spring-boot:jar:2.0.0.RELEASE:compile
|  |  |  |  \- org.springframework:spring-context:jar:5.0.4.RELEASE:compile
|  |  |  |     +- org.springframework:spring-aop:jar:5.0.4.RELEASE:compile
|  |  |  |     \- org.springframework:spring-expression:jar:5.0.4.RELEASE:compile
|  |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.0.RELEASE:compile
|  |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.0.RELEASE:compile
|  |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.3:compile
|  |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.3:compile
|  |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile
|  |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
|  |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
|  |  |  +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
|  |  |  +- org.springframework:spring-core:jar:5.0.4.RELEASE:compile
|  |  |  |  \- org.springframework:spring-jcl:jar:5.0.4.RELEASE:compile
|  |  |  \- org.yaml:snakeyaml:jar:1.19:runtime
|  |  +- org.springframework:spring-tuple:jar:1.0.0.RELEASE:compile
|  |  |  +- com.esotericsoftware:kryo-shaded:jar:3.0.3:compile
|  |  |  |  +- com.esotericsoftware:minlog:jar:1.3.0:compile
|  |  |  |  \- org.objenesis:objenesis:jar:2.1:compile
|  |  |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile
|  |  |     +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
|  |  |     \- com.fasterxml.jackson.core:jackson-core:jar:2.9.4:compile
|  |  \- io.projectreactor.addons:reactor-extra:jar:3.1.6.RELEASE:compile
|  |     \- io.projectreactor:reactor-core:jar:3.1.5.RELEASE:compile
|  |        \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
|  \- org.springframework.boot:spring-boot-starter-webflux:jar:2.0.0.RELEASE:compile
|     +- org.springframework.boot:spring-boot-starter-json:jar:2.0.0.RELEASE:compile
|     |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.4:compile
|     |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.4:compile
|     |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.4:compile
|     +- org.springframework.boot:spring-boot-starter-reactor-netty:jar:2.0.0.RELEASE:compile
|     |  \- io.projectreactor.ipc:reactor-netty:jar:0.7.5.RELEASE:compile
|     |     +- io.netty:netty-codec-http:jar:4.1.22.Final:compile
|     |     |  \- io.netty:netty-codec:jar:4.1.22.Final:compile
|     |     +- io.netty:netty-handler:jar:4.1.22.Final:compile
|     |     |  +- io.netty:netty-buffer:jar:4.1.22.Final:compile
|     |     |  \- io.netty:netty-transport:jar:4.1.22.Final:compile
|     |     |     \- io.netty:netty-resolver:jar:4.1.22.Final:compile
|     |     +- io.netty:netty-handler-proxy:jar:4.1.22.Final:compile
|     |     |  \- io.netty:netty-codec-socks:jar:4.1.22.Final:compile
|     |     \- io.netty:netty-transport-native-epoll:jar:4.1.22.Final:compile
|     |        +- io.netty:netty-common:jar:4.1.22.Final:compile
|     |        \- io.netty:netty-transport-native-unix-common:jar:4.1.22.Final:compile
|     +- org.hibernate.validator:hibernate-validator:jar:6.0.7.Final:compile
|     |  +- javax.validation:validation-api:jar:2.0.1.Final:compile
|     |  +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
|     |  \- com.fasterxml:classmate:jar:1.3.4:compile
|     +- org.springframework:spring-web:jar:5.0.4.RELEASE:compile
|     |  \- org.springframework:spring-beans:jar:5.0.4.RELEASE:compile
|     +- org.springframework:spring-webflux:jar:5.0.4.RELEASE:compile
|     \- org.synchronoss.cloud:nio-multipart-parser:jar:1.1.0:compile
|        +- org.slf4j:slf4j-api:jar:1.7.25:compile
|        \
|        \- org.synchronoss.cloud:nio-stream-storage:jar:1.1.3:compile
Spencer Gibb
@spencergibb
Mar 05 2018 19:47
I assumed you would be missing hibernate-validator. If you can create a minimal project that recreates the issue you can share, please log an issue
waleed-amer
@waleed-amer
Mar 05 2018 19:47
This one is the minim will report it
Spencer Gibb
@spencergibb
Mar 05 2018 19:49
please have a zipfile or github (or similar) project, not pasted code in the issue.
waleed-amer
@waleed-amer
Mar 05 2018 19:56
@spencergibb here is it
Spencer Gibb
@spencergibb
Mar 05 2018 20:00
it's not complete as I don't have that parent
are you deploying this to jboss?
waleed-amer
@waleed-amer
Mar 05 2018 20:01
applogize just remove the parent no dependencies. Yes on wildfly 10
Spencer Gibb
@spencergibb
Mar 05 2018 20:01
gateway doesn't work in a war or with servlets
sorry
waleed-amer
@waleed-amer
Mar 05 2018 20:02
should i use it as jar
Spencer Gibb
@spencergibb
Mar 05 2018 20:04
that is the only way to use it
it requires the netty runtime currently
waleed-amer
@waleed-amer
Mar 05 2018 20:05
I hope you update the reference document as note to ease the understanding how the tool does work
i was looking through reference with no clue so i was deal with as with Zuul
Spencer Gibb
@spencergibb
Mar 05 2018 20:10
noted spring-cloud/spring-cloud-gateway@30d85ff
waleed-amer
@waleed-amer
Mar 05 2018 20:12
Thank you for support
waleed-amer
@waleed-amer
Mar 05 2018 20:34
@spencergibb i have tried to build a jar project but got
Caused by: java.lang.IllegalArgumentException: Unable to find RoutePredicateFactory with name path
Spencer Gibb
@spencergibb
Mar 05 2018 20:36
Path