tomcat - Spring Autowired with abstract inheritance error -


consider situation:

i have class , b , c.

class b extends abstract class , class c want use class b member perform operations.

@service public abstract class a{  }  @component public class b extends a{  }   @service public class c {     private class b b;    @autowired   public c(class b b){  // constructor     this.b = b;   }        private void setb(b b){     this.b = b;   }    private b getb(){     return b;   } } 

when ever try component scan, tomcat not load. have successful inject beans in way non inherit objects.

the error receive listen start error:

jun 14, 2015 12:09:04 pm org.apache.catalina.core.standardcontext startinternal severe: error listenerstart jun 14, 2015 12:09:04 pm org.apache.catalina.core.standardcontext startinternal severe: context [] startup failed due previous errors jun 14, 2015 12:09:05 pm org.apache.catalina.loader.webappclassloader checkthreadlocalmapforleaks

thanks assistance.

there dependencies issue able print tomcat stack trace adding logging.properties file in web-inf/conf

with value:

org.apache.catalina.core.containerbase.[catalina].level = info org.apache.catalina.core.containerbase.[catalina].handlers = java.util.logging.consolehandler


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -