PDA

View Full Version : Help needed in AOP tx management


vinaypammi
02-20-2007, 10:20 AM
I am using spring aop on java 1.4 version. When I write the config.xml for aspect oriented tx management I get the following error in the java program...

org.springframework.beans.factory.BeanDefinitionSt oreException: Line 9 in XML document from class path resource [config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
at weblogic.apache.xerces.parsers.DOMParser.parse(DOM Parser.java:271)
at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.pa rse(DocumentBuilderImpl.java:201)
.................................................. .....
The config.xml starts like this.....

<?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"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"/>




PLEASE HELP ME AS I AM STUCK........

Mark Pollack
02-20-2007, 12:39 PM
Hi,

You've found the forums for Spring .NET, please post your questions on the "Spring.Java" forum, i.e forums.springframework.org.

Cheers,
Mark