Hi, I have read the page on "How to use the Spring FactoryBeans for Castor XML" on the Castor website
http://www.castor.org/spring-xml-intro.html I followed the instructions on the page and setup Castor in my spring config xml file. When I try to run the code I get the following error: Caused by: org.xml.sax.SAXException: The class for the root element 'Document' could not be found. Upon investigating, I think that the error is caused by the fact that Castor is not able to find my mapping file castor-mapping.xml This is the xml that I put into my Spring config file, just as shown in the example on the Castor website: <bean id="resolver" class="org.springframework.xml.castor.CastorResolverFactoryBean"> <property name="castorProperties"> <props> <prop key="mappingLocation">castor-mapping.xml</prop> </props> </property> </bean> Does the mappingLocation property take a relative path? And if so the path is relative to what? Note: my castor-mapping.xml mapping file and my spring config xml file are both located in the same directory. Also is there any Javadoc for the org.springframework.xml.castor.CastorResolverFactoryBean class?? I browsed through the Castor website, but I could not find it. Thanks. ********************************************************** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs ********************************************************** ____________________________________________________________________________________ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

