aspose file tools*
The moose likes Spring and the fly likes JBOSS Cache Factory creation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "JBOSS Cache Factory creation error" Watch "JBOSS Cache Factory creation error" New topic
Author

JBOSS Cache Factory creation error

Swathi Kodeboyina
Greenhorn

Joined: Jul 31, 2012
Posts: 7
Hi,

I am trying to create a JBOSS cache factory.


But i get an error telling that



Please shed some light on this.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

Never used it myself.

It looks like Spring is confused and is matching your argument to the constructor that is expecting a Configuration object. It is trying to cast the String to a Configuration and is throwing an exception. Try to explicitly define the type of the argument.




Just some other stuff you might find useful:

I prefer using Java Config I think it is just much easier. Here is an example of that.

http://stackoverflow.com/questions/4502992/spring-configuration-for-jbosscache

Here is an XML although the are defining the configuration object as a bean

http://jshuttle.blogspot.com/2011_03_01_archive.html


[How To Ask Questions][Read before you PM me]
Swathi Kodeboyina
Greenhorn

Joined: Jul 31, 2012
Posts: 7
I have tried it in the way you specified. Even then i get the same error !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBOSS Cache Factory creation error
 
Similar Threads
Error Message: Filter [applicationContextMapFilter]: could not be initialized
Need Help!!!!: Issues Deploying with Spring in JBoss
problens in spring CustomDataEditor!
Creating a map in Spring with enum as keytpe
Error Message: Filter [applicationContextMapFilter]: could not be initialized