Spring AOP "aop:config" nicht gefunden

Juggl3r

Mitglied
Hallo,

ich probier jetzt schon seit mehreren Stunden Spring AOP gemeinsam mit Maven bei mir zum Laufen zu bekommen....

Hier mal mein pom.xml File:

Java:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>at.juggl3r.testing</groupId>
  <artifactId>MyFirstMavenTest</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>MyFirstMavenTest</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
	
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-core</artifactId>
		<version>3.1.2.RELEASE</version>
	</dependency>
    <dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context</artifactId>
		<version>3.1.2.RELEASE</version>
	</dependency>
    <dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring</artifactId>
		<version>2.5.6.SEC03</version>
	</dependency>


    <dependency>
    	<groupId>org.springframework</groupId>
    	<artifactId>spring-aop</artifactId>
    	<version>3.1.3.RELEASE</version>
    </dependency>
    <dependency>
    	<groupId>org.springframework</groupId>
    	<artifactId>spring-aspects</artifactId>
    	<version>3.1.3.RELEASE</version>
    </dependency>
  </dependencies>
</project>


Ich hab jetzt scho 100 mal auf alles mögliche geklcikt, z.b. Rechtsklick -> Spring Tools -> Update Maven Dependencs. Oder über run as -> Maven install.
Komischerweise ist aber auch Java Aspects nicht im Build Path (ich verstehe nicht warum?!).
(siehe Anhang für Build Path).


Mein Beans File schaut so aus:

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


	<aop:config>
	
	</aop:config>
</beans>

Und da bekomme ich direkt schon von Eclipse die Fehlermeldung, dass er aop:config nicht findet?
Wenn ich es starte bekomme ich eine Exception:

Line 69 in XML document from class path resource [MyBeans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 69; columnNumber: 14; cvc-complex-type.2.4.c: Übereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration für Element "aop:config" gefunden werden.


Aber zum Build Path ist ja zumindest spring-aop.jar enthalten, warum kriege ich den Fehler und was muss ich machen, damit es läuft?

lg


edit: oh mein gott-.- da ist eine Leertaste im Namespace bei aop, 5 Stunden Fehlersuche und dann sowas. OMG!
 

Anhänge

  • BuildPath.png
    BuildPath.png
    29,5 KB · Aufrufe: 23

Neue Themen


Zurück
Oben