This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 session bean and Container.setScopeStrategy exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 session bean and Container.setScopeStrategy exception" Watch "Struts2 session bean and Container.setScopeStrategy exception" New topic
Author

Struts2 session bean and Container.setScopeStrategy exception

Bob Dietrich
Greenhorn

Joined: Sep 02, 2010
Posts: 3
I'm using Struts2 and the built-in dependency injection. I have a bean defined in struts.xml:This POJO bean is currently injected into an action class via:

I then tried to make sure the bean contents persisted for the session, so I modified the declaration:Now when the code starts up, I get the following exception:
At this point I'm thoroughly confused by the error message, including what "Container" is referenced. Suggestions please? Thanks.
Bob Dietrich
Greenhorn

Joined: Sep 02, 2010
Posts: 3
Any suggestions please?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts2 session bean and Container.setScopeStrategy exception
 
Similar Threads
Trying to run portals in action JSF 2.0 example in liferay on glassfish
problem with starting Struts2
Error while deploying a war file in GlassFish
Null Pointer Exception using DAO, Hibernate and Struts
Filter execution threw an exception