This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBOSS Cache Factory creation error

 
Swathi Kodeboyina
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Swathi Kodeboyina
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic