aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring AOP TX management error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring AOP TX management error..." Watch "Spring AOP TX management error..." New topic
Author

Spring AOP TX management error...

Sri Vinay Pammi
Greenhorn

Joined: Feb 23, 2007
Posts: 1
I am using spring(v 2.0) 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...

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'.

The xml file is as follows:

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

<!-- this is the service object that we want to make transactional -->
<bean id="serviceBean" class="BusinessBean"/>

</beans>
-------------------------------------------------------
Please do the needful as I am stuck at this point...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring AOP TX management error...