It looks like it may be one of your Hibernate mapping files. Have you checked those?
Matt On 3/2/07, Jolly <[EMAIL PROTECTED]> wrote:
Hello Matt I checked all applicationContext-hibatis.xml in I.E but there is no error. Again i get the same error. Regards Jolly mraible wrote: > > The following error means that you have invalid XML: > > > >> XML document structures must start and end within the same entity. >> > > I'd suggest using an XML editor in your IDE or opening the file in > Internet Explorer to see where the error is. > > Matt > > On 2/25/07, Jolly <[EMAIL PROTECTED]> wrote: >> >> Hello Jason >> >> Thanks for your reply. >> >> I followed this >> procedure(http://raibledesigns.com/wiki/Wiki.jsp?page=CreateDAO) But i >> get >> this error >> >> In cmd: >> ----------- >> test-dao: >> [echo] Testing dao... >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] Testsuite: com.latchiya.dao.ImageDaoTest >> [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 7.547 sec >> >> [junit] ------------- Standard Output --------------- >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] [LatchiyaBase] INFO [main] >> ImageDaoTest.loadContextLocations(133) | Loading config for: >> classpath*:/**/dao/applicationContext-*.xml,classpath*:META-INF/applicationContext-*.xml >> [junit] [LatchiyaBase] ERROR [main] XMLHelper.error(61) | Error >> parsing >> XML: XML InputStream(16) XML document structures must start and end >> within >> the same entity. >> [junit] ------------- ---------------- --------------- >> [junit] Testcase: testAddImage(com.latchiya.dao.ImageDaoTest): >> Caused an ERROR >> [junit] Error creating bean with name 'sessionFactory' defined in >> file >> [C:\apps\appfuse-1.9.3-src\LatchiyaBaseNew\build\dao\gen\META-INF\applicationContext-hibatis.xml]: >> Initialization of bean failed; nested exception is >> org.hibernate.MappingException: Could not parse mapping document in input >> stream >> [junit] org.springframework.beans.factory.BeanCreationException: >> Error >> creating bean with name 'sessionFactory' defined in file >> [C:\apps\appfuse-1.9.3-src\LatchiyaBaseNew\build\dao\gen\META-INF\applicationContext-hibatis.xml]: >> Initialization of bean failed; nested exception is >> org.hibernate.MappingException: Could not parse mapping document in input >> stream >> [junit] org.hibernate.MappingException: Could not parse mapping >> document >> in input stream >> [junit] at >> org.hibernate.cfg.Configuration.addInputStream(Configuration.java:431) >> [junit] at >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:679) >> [junit] at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) >> [junit] at >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) >> [junit] at >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) >> [junit] at >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) >> [junit] at >> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) >> [junit] at >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) >> [junit] at >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87) >> [junit] at >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72) >> [junit] at >> org.springframework.test.AbstractSpringContextTests.loadContextLocations(AbstractSpringContextTests.java:135) >> [junit] at >> org.springframework.test.AbstractDependencyInjectionSpringContextTests.loadContextLocations(AbstractDependencyInjectionSpringContextTests.java:224) >> [junit] at >> org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:115) >> [junit] at >> org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:192) >> [junit] Caused by: org.dom4j.DocumentException: Error on line 16 of >> document : XML document structures must start and end within the same >> entity. Nested exception: XML document structures must start and end >> within >> the same entity. >> [junit] at org.dom4j.io.SAXReader.read(SAXReader.java:482) >> >> GojiraDeMonstah wrote: >> > >> > >> > >> > I tried in may ways but i can't get build success. >> > >> > Regards >> > Jolly >> > >> > >> > Hi Jolly, >> > >> > There are many JUnit tutorials online - have you tried any of those >> (this >> > one for example http://open.ncsu.edu/se/tutorials/junit/)? If so, what >> > problems did you run into or what questions do you have that are >> > preventing >> > you from getting started? Is there a reason you don't want to use the >> > testing frameworks that come with AppFuse? >> > >> > My first thought is that you ought to try the tests that come with >> AppFuse >> > (see http://raibledesigns.com/wiki/Wiki.jsp?page=CreateDAO). You might >> be >> > able to save a lot of time and effort there, the frameworks are much >> more >> > suited to testing the pieces of an AppFuse app than JUnit, which is not >> as >> > specialized. >> > >> > Jason >> > >> > >> > On 2/24/07, Jolly <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Dear Friends >> >> How to work JUnit testing in appfuse 1.9.3? I want the >> >> exact >> >> procedure. Please help me ASAP. >> >> >> >> Regards, >> >> Jolly. >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/Junit-testing-tf3282812s2369.html#a9131446 >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Junit-testing-tf3282812s2369.html#a9153466 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Junit-testing-tf3282812s2369.html#a9264736 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]