struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandy143 <sjavah...@gmail.com>
Subject Re: migration from struts 1 to 2
Date Wed, 30 Apr 2008 19:00:36 GMT

I guess there is some problem with upload: Please find it here

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
	<package name="XXX" namespace="/XXX" extends="struts1-default">
		<result-types>
			<result-type name="tiles"
				class="org.apache.struts2.views.tiles.TilesResult" />
		</result-types>

		<interceptors>
			<interceptor name="loginActionForm"
			
class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor">
				
					com.xxx.LoginActionForm
				
				loginActionForm
			</interceptor>
			<interceptor name="loginValidation"
				class="org.apache.struts2.s1.ActionFormValidationInterceptor">
				
				
/org/apache/struts/validator/validator-rules.xml,/WEB-INF/validation-rules.xml,/WEB-INF/validation.xml
				
			</interceptor>
			<interceptor-stack name="loginActionForm">
				<interceptor-ref name="staticParams" />
				<interceptor-ref name="loginActionForm" />
				<interceptor-ref name="modelDriven" />
				<interceptor-ref name="actionForm-reset" />
				<interceptor-ref name="basicStack" />
				<interceptor-ref name="loginValidation" />
				<interceptor-ref name="workflow" />
			</interceptor-stack>
			
			<default-action-ref name="loginAction" />
			<action name="LoginAction"
			class="org.apache.struts2.s1.Struts1Action">
			
				com.xxx.LoginAction
			
			<result name="success" type="tiles">
				/Login.jsp
			</result>
		</action>
		
		</package>
</struts>


Sandy143 wrote:
> 
> Hello ...
> 
> I have started to migrate from S1 to S2 using the plugin link.
> 
> I have a login page. I am able to start the app with no errors and see the
> login page.
> 
> The configuration I have done in struts.xml is being uploaded.
> 
> When I enter username and password and click on submit I get this error:
> 
> [4/30/08 13:47:08:151 CDT] 00000023 WebApp        E   [Servlet
> Error]-[org.apache.struts.action.ActionForm]:
> java.lang.InstantiationException: org.apache.struts.action.ActionForm
> 	at java.lang.Class.newInstanceImpl(Native Method)
> 	at java.lang.Class.newInstance(Class.java:1263)
> 	at
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
> 	at
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> 	at
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
> 	at
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.resolveModel(ScopedModelDrivenInterceptor.java:93)
> 	at
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:122)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> 	at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> 	at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> 	at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> 	at
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)
> 	at
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
> 	at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> 	at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> 	at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
> 	at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
> 	at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
> 	at
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:628)
> 	at
> com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:145)
> 	at
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:595)
> 	at
> com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:111)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
> 	at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
> 	at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
> 	at
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
> 	at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
> 	at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
> 	at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
> 	at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
> 	at
> com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
> 	at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
> http://www.nabble.com/file/p16989415/struts.txt struts.txt 
> 

-- 
View this message in context: http://www.nabble.com/migration-from-struts-1-to-2-tp16819256p16989432.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


Mime
View raw message