Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes SSH:Unable to load configuration. - [unknown location] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "SSH:Unable to load configuration. - [unknown location]" Watch "SSH:Unable to load configuration. - [unknown location]" New topic
Author

SSH:Unable to load configuration. - [unknown location]

Kurt Xu
Ranch Hand

Joined: Sep 29, 2009
Posts: 32
I'm integrating strtus,hibernate and spring into my web project, but when I launch tomcat ,below error come up:



What's the possible reason?
version:
spring:3.0.1
hibernate:3.3
struts:2.1.8

struts.xml:


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What libraries *specifically* are you deploying? Right now I'd have to guess you're not deploying the Spring plugin, but it's difficult to say without knowing what you're actually doing.

I personally haven't testing Spring 3 w/ Struts 2 yet, although my assumption is that it should work.
Kurt Xu
Ranch Hand

Joined: Sep 29, 2009
Posts: 32
David Newton wrote:What libraries *specifically* are you deploying? Right now I'd have to guess you're not deploying the Spring plugin, but it's difficult to say without knowing what you're actually doing.

I personally haven't testing Spring 3 w/ Struts 2 yet, although my assumption is that it should work.


Hi,here is my libraries:

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You are not deploying the Struts 2 Spring plugin, so the Spring object factory is not defined.

You are, however, deploying every *other* library in the known universe, and this *will* cause you problems: *only* deploy the libraries you are actually using, and that are actually *needed*. What you're doing here is dangerous, misleading, and unnecessary.

Particularly Struts 2 plugins, as each will introduce its own sets of dependencies, and may affect application behavior.
Kurt Xu
Ranch Hand

Joined: Sep 29, 2009
Posts: 32
I figured out finally. It's due to ide myeclipse, there is certain lib conflicts in there ,so I switch to my own lib ,removing the myeclipse-offered lib ,then error disappeared.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSH:Unable to load configuration. - [unknown location]