• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with simple Java-AOP-Programm via Spring-Framework  RSS feed

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi community!

I have a problem with my simple Java-Programm.

Here are my classes and the xml-file:








<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

<aop:config>
<aop:aspect ref="myAspectBean">
        <aop:pointcut id="myPointCut"
             expression="execution(public void aopDemo.HalloObject.sayHelloWorld())" />
<aop:after pointcut-ref="myPointCut" method="sayGoodbye" />
</aop:aspect>
</aop:config>
<bean id="halloObject" class="aopDemo.HalloObject" />
<bean id="myAspectBean" class=" aopDemo.AspectGabbleBetween" />
</beans>  




And the Error:




I dont know how to fix the error. I hope you could help me.


Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!