org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut serviceCall

Coderanch | Swaroop Kunduru | 5 years ago
  1. 0
    You need to deploy aspectJ (aspectjweaver.jar) together with your application. Add it to your pom.xml
  2. 0

    @AspectJ Based AOP with Spring 3.1

    Stack Overflow | 4 years ago | kamal
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'student' defined in class path resource [spring.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut selectAll
  3. 0

    How to do jndi lookup of MQ connection factory defined in Websphere app Server from Spring

    exasked.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mqConnectionFactory' defined in ServletContext resource [/WEB-INF/config/config-mq.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [com.ibm.mq.jms.MQQueueConnectionFactoryFactory] is not an interface
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to do jndi lookup of MQ connection factory defined in Websphere app Server from Spring

    Stack Overflow | 4 years ago | Arun Christopher
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mqConnectionFactory' defined in ServletContext resource [/WEB-INF/config/config-mq.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [com.ibm.mq.jms.MQQueueConnectionFactoryFactory] is not an interface
  6. 0

    Tomcat throwing an error

    Stack Overflow | 12 months ago | Omonullo Abdullaev
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/classes/connectionConf.xml]: Invocation of init method failed; nested exception is org.hibernate.metamodel.source.MappingException: Error accessing stax stream at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    error at ::0 can't find referenced pointcut serviceCall

    at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression()
  2. AspectJ weaver
    PointcutParser.parsePointcutExpression
    1. org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:302)
    1 frame
  3. Spring AOP
    AbstractAutoProxyCreator.postProcessAfterInitialization
    1. org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:207)
    2. org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:193)
    3. org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:182)
    4. org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:163)
    5. org.springframework.aop.support.AopUtils.canApply(AopUtils.java:209)
    6. org.springframework.aop.support.AopUtils.canApply(AopUtils.java:263)
    7. org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:295)
    8. org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
    9. org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
    10. org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
    11. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
    12. org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
    12 frames
  4. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:406)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1450)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    9 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    2 frames
  6. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    3 frames
  7. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
    8 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    6. java.lang.Thread.run(Thread.java:722)
    6 frames