ApplicationContext ctx = new FileSystemXmlApplicationContext error

Posted by GigaPr on Stack Overflow See other posts from Stack Overflow or by GigaPr
Published on 2010-04-22T09:32:30Z Indexed on 2010/04/22 9:43 UTC
Read the original article Hit count: 181

Filed under:
|
|

Hi I am completely new to Java, so sorry if my question may sound a bit stupid.

I am following a tutorial on hibernate and i am trying to get the context definition files from the file system.

ApplicationContext ctx  = new FileSystemXmlApplicationContext(
        new String[] { "conf/rssWebApplication-services.xml",
        "conf/rssWebApplication-data-hibernate.xml" });

But i get the following error:

found   : org.springframework.context.support.FileSystemXmlApplicationContext
required: org.jboss.weld.context.ApplicationContext
        ApplicationContext ctx  = new FileSystemXmlApplicationContext(
                new String[] { "conf/rssWebApplication-services.xml",

Any idea what is the problem?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about application-context