-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: FileSystemXmlApplicationContext
PostPosted: Wed Feb 04, 2004 9:24 am 
Newbie

Joined: Wed Jan 14, 2004 11:29 am
Posts: 19
Not sure if this is a Hibernate or Spring question!

I'm using hibernate and spring in my web application. The application is working fine and I am not writing unit test (I know I should do them first!!)

As part of the testing I need to dynamically setup data so i'm trying to use the following code to obtain a bean that already has a session and persistance manager:

ApplicationContext context = new FileSystemXmlApplicationContext(new String[]{"WEB-INF/worldpay-servlet.xml","test-src/persistance.xml"});

as descripbed on the following page:

http://www.coyotesong.com/hibernate/110.html

but i'm getting the following error:

org.springframework.context.ApplicationContextException: Invalid application context: needs to be of type 'org.springframework.web.context.WebApplicationContext'

The XML files are parsed, but there's no real indeication what's going wrong.

Has anyone got any ideas?

Thanks,

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 11:07 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Please use the Hibernate doc, not a mirror
http://www.hibernate.org/
http://www.hibernate.org/Documentation/DataAccessWithTheSpringFramework

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2004 1:08 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 6:04 am
Posts: 161
Location: Linz, Austria
See http://sourceforge.net/forum/message.php?msg_id=2409468

Juergen


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.