You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by k_ocel <k_...@yahoo.com> on 2009/05/15 14:08:43 UTC
adding spring to struts2
hi.
i have annother problem!
i have a web-app project!
spring 2.5.3
(spring-web, spring-jdbc, spring-tx, spring-mock, spring-orm, spring-beans,
spring-core, spring-context), struts2 2.1.6, jboss-5.0.1.
applicationContext.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
struts.xml
Code:
/WEB_INF/jsp/error.jsp
/WEB-INF/jsp/login.jsp
/WEB-INF/jsp/home.jsp
/WEB-INF/jsp/login.jsp
/WEB-INF/jsp/acceptAGB.jsp
web.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
GamigoWebStore
contextConfigLocation
classpath*:applicationContext*.xml
org.springframework.web.context.request.RequestContextListener
org.springframework.web.context.ContextLoaderListener
struts
org.apache.struts2.dispatcher.FilterDispatcher
struts
/*
LoginAction.java
Code:
public class LoginAction extends ActionSupport {
.
.
.
public String execute() {
my problem:
Code:
Unable to instantiate Action, loginAction, defined for 'index' in namespace
'/'loginAction from
BaseClassLoader@147f75{VFSClassLoaderPolicy@1bc12c9{name=vfszip:/usr/local/jboss-5.0.1/server/default/deploy/GamigoWebStore.ear/GamigoWebStore.war/
domain=ClassLoaderDomain@4148d4{name=vfszip:/usr/local/jboss-5.0.1/server/default/deploy/GamigoWebStore.ear/GamigoWebStore.war/
parentPolicy=AFTER_BUT_JAVA_BEFORE
please help me
--
View this message in context: http://www.nabble.com/how-to-integrate-struts2-%2B-convention-plugin-%2Bspring-tp23525241p23558491.html
Sent from the Struts - User mailing list archive at Nabble.com.
Re: adding spring to struts2
Posted by phillips1021 <bp...@ku.edu>.
I've done some blog articles on integrating Spring and Struts 2, which
include some example applications you may want to study if you're not
familiar with how to use these two technologies together.
See:
http://www.brucephillips.name/blog/index.cfm/2009/3/7/Using-Spring-In-A-Struts-2-Web-Application
and
http://www.brucephillips.name/blog/index.cfm/2008/10/17/Using-Struts-2-and-Spring-Frameworks-Together
--
View this message in context: http://www.nabble.com/how-to-integrate-struts2-%2B-convention-plugin-%2Bspring-tp23525241p23567130.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: adding spring to struts2
Posted by Dave Newton <ne...@yahoo.com>.
Don't send it to *me*, send it to the list.
Dave
Dave Newton wrote:
> You'll want to send plain-text emails or otherwise escape your XML,
> otherwise all we see is this:
>
> k_ocel wrote:
>> applicationContext.xml
>> Code:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> Which makes figuring out any problems really hard ;)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: adding spring to struts2
Posted by Dave Newton <ne...@yahoo.com>.
You'll want to send plain-text emails or otherwise escape your XML,
otherwise all we see is this:
k_ocel wrote:
> applicationContext.xml
> Code:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Which makes figuring out any problems really hard ;)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org