This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "JBOSS Cache Factory creation error" Watch "JBOSS Cache Factory creation error" New topic

JBOSS Cache Factory creation error

Swathi Kodeboyina

Joined: Jul 31, 2012
Posts: 9

I am trying to create a JBOSS cache factory.

But i get an error telling that

Please shed some light on this.
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

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.

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

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

Joined: Jul 31, 2012
Posts: 9
I have tried it in the way you specified. Even then i get the same error !
Have you checked out Aspose?
subject: JBOSS Cache Factory creation error
It's not a secret anymore!