hi,
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
struts.xml
Code:
<struts>
<constant name="struts.objectFactory" value="spring" />
<constant name="struts.objectFactory.spring.autoWire" value="name" />
<constant name="struts.devMode" value="false" />
<constant name="struts.configuration.xml.reload" value="false" />
<constant name="struts.custom.i18n.resources" value="ApplicationResources" />
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.i18n.reload" value="false"/>
<package name="" extends="struts-default">
<default-interceptor-ref name="paramsPrepareParamsStack" />
<action name="index" class="loginAction">
<result>/WEB-INF/jsp/login.jsp</result>
<result name="success">/WEB-INF/jsp/home.jsp</result>
<result name="error">/WEB-INF/jsp/login.jsp </result>
<result name="AGB">/WEB-INF/jsp/acceptAGB.jsp </result>
</action>
web.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>GamigoWebStore</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:applicationContext*.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
LoginAction
public class LoginAction extends ActionSupport {
public String execute() {
and i have exception:
Unable to instantiate Action, loginAction, defined for 'index' in namespace '/'loginAction from BaseClassLoader@147f75{VFSClassLoade...goWebStore.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!!!!
kemal