I have set up a very simple test app that is just spring and struts2. It
works without a problem.
In my main application I have been using a
ClassPathXmlApplicationContext(springBeansDefinitionFile) in order to get
references to my beans. When I comment this out and add my spring-config
file to
I noticed that you have this:
context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/applicationContext-security.xml/param-value
/context-param
but the prosoc-spring-beans.xml is not listed, so Spring won't know to
pick it up. I did see that
It looks like I can use:
WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean(myBean);
in order to get already deployed beans. That clear up the error I was
getting when I started this thread. I am getting another error but I will
spend some time on it first before
I didn't see your reply before I sent my last post.
You were absolutely correct and I must say that, looking through that mass
of config, well spotted.
Thanks for your help Bard.
--
View this message in context:
on August 05, 2008 8:14 AM, doahh [EMAIL PROTECTED] wrote:
I didn't see your reply before I sent my last post.
You were absolutely correct and I must say that, looking
through that mass of config, well spotted.
Thanks for your help Bard.
Terrific!!!
Brad Cupit
Louisiana State University -
I can't say that I see the problem, but I do see a few small issues.
bean id=springManagedProsocActionUpdateEmail
class=uk.co.prodia.prosoc.struts2.action.ActionUpdateEmail
property name=sessionFactory
ref=sessionFactoryProsocForum/
/bean
be sure to add scope=prototype. S2 actions
Hi Brad and thank you for the reply.
I have tried setting the scope=prototype but it didn't change the error I
am seeing.
I also tried your suggestion of removing the !* part of the method name
from the action along with the method={1} but again it didn't change
anything.
I have noticed a
I have tried setting the scope=prototype but it
didn't change the error I am seeing.
right, that makes sense. This setting will stop you from having big
problems later on though.
I am unsure what could be causing this but maybe someone could
clarify that the:
Thanks again for replying, I am really stuck on this one at the moment.
I am currently using struts-2.0.11.1 and spring-2.5.4.
Another thing I have noticed on the struts plugin guide page at:
http://struts.apache.org/2.x/docs/spring-plugin.html
State University - UIS
-Original Message-
From: doahh [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 2:07 PM
To: user@struts.apache.org
Subject: RE: Struts2 and spring plugin - Action class
[springManagedProsocActionUpdateEmail] not found
Thanks again for replying, I am really
Thanks for your offer of help Brad and sorry these files are so big.
I do have a habit of editing my posts occassionally through Nabble so maybe
that is causing me to post twice?
Currently a lack of skill prevents me from setting a break point on the
SpringObjectFactory.buildBean() but that is
11 matches
Mail list logo