Announcement

Collapse
No announcement yet.

AspectJ - ClassNotFoundException

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • AspectJ - ClassNotFoundException

    Hallo zusammen

    Ich habe diese Fehler in mein Projekt.

    Ich habe diese Jar Datei bei ClassPath.

    Was ist hier nicht richtig?

    2007-04-16 17:22:02,502 ERROR [main ] (ContextLoader.java:205) Context initialization failed

    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from URL

    [file:/C:/NeueProjekt/Projekt/src/main/resources/applicationContext-service.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutPrimitive

    Caused by:

    java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutPrimitive

    at org.springframework.aop.aspectj.AspectJExpressionP ointcut.<clinit>(AspectJExpressionPointcut.java:61 )

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:164)

    at org.springframework.aop.config.ConfigBeanDefinitio nParser.class$(ConfigBeanDefinitionParser.java:229 )

    at org.springframework.aop.config.ConfigBeanDefinitio nParser.createPointcutDefinition(ConfigBeanDefinit ionParser.java:521)

    at
    org.springframework.aop.config.ConfigBeanDefinitio nParser.parsePointcut(ConfigBeanDefinitionParser.j ava:450)

    Viele Danke

  • #2
    Offensichtlich fehlen die Runtimes von AspectJ (aspectjrt.jar und aspectjweaver.jar) im Classpath, Wenn Du Spring mit allen Dependencies runterlädst, sollten diese Jar-Dateien dabei sein (und viele andere).

    Gruß
    Hendrik

    Comment


    • #3
      Viele danke Hendrik für ihre Antworte.

      Ich habe jetzt diese fehler

      Können Sie mich noch vieder hilfen?


      2007-04-18 10:10:14,051 ERROR [main ] (ContextLoader.java:205) Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'articleHandler' defined in URL [file:/C:/Documents%20and%20Settings/f0fp083/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/webapps/Projekt/WEB-INF/classes/applicationContext-jsf.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessException details (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:224) at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:139) at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:772)

      Noch einmal viel danke.

      Comment

      Working...
      X