RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type class org.keycloak.representations.AccessTokenResponse

前端 未结 6 1476
滥情空心
滥情空心 2020-12-20 12:45

I\'m trying to test Keycloak REST API. Instaled the version 2.1.0.Final. I can access the admin through browser with SSL without problems.

I\'m using the code above:

6条回答
  •  离开以前
    2020-12-20 12:59

    I had the problem, that MatteoM pointed out. I solved with maven-shade-plugin and the transformes tag. Maybe it helps someone.

     
                org.apache.maven.plugins
                maven-shade-plugin
                3.2.0
                
                    
                        package
                        
                            shade
                        
                        
                            
                                
                                    *:*
                                    
                                        META-INF/*.SF
                                        META-INF/*.DSA
                                        META-INF/*.RSA
                                    
                                
                            
                            
                                
                                    
                                        de.example.MainClass
                                        1.8
                                        1.8
                                    
                                
                                
                                    META-INF/services/javax.ws.rs.ext.Providers
                                
                            
                            
                            ${project.build.directory}/${project.artifactId}-${project.version}-fat.jar
                        
                    
                
            
    

提交回复
热议问题