-
Apr 4th, 2008, 09:01 PM
#1
Spring Struts Integratio Help
Hi guys, i am new to spring and trying to integrate struts with spring. I followed the tutorial ON --http://www-128.ibm.com/developerworks/java/library/j-sr2.html . I am using wsad5.1.2 struts 1.1
Struts config
<action-mappings>
<action
name="initiateActionForm"
path="/initiateQuote" scope="request"
type="org.springframework.web.struts.DelegatingAct ionProxy">
<forward name="success" path="presonalInfo.jsp">
</forward>
</action>
</action-mappings>
<!-- Message Resources -->
<message-resources parameter="assuranceweb.resources.ApplicationResou rces"/>
<plug-in
className="org.springframework.web.struts.ContextL oaderPlugIn">
<set-property property="contextConfigLocation" value="WEB-INF/beans.xml"/>
</plug-in>
Beans.xml
<beans>
<bean id="initiateService" name="initiateService" class="assurance.util.InitiateServiceImpl"/>
<bean name="/initiateQuote" class=" assuranceweb.actions.InitiateQuoteAction">
<property name="initiateService">
<ref bean="initiateService"/>
</property>
</bean>
</beans>
I am getting this error during the server startup......
[12/6/07 20:59:53:328 PST] 3fd4ec00 ContextLoader E org.springframework.web.struts.ContextLoaderPlugIn Context initialization failed
[12/6/07 20:59:53:344 PST] 3fd4ec00 ContextLoader E org.springframework.web.struts.ContextLoaderPlugIn TRAS0014I: The following exception was logged org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name '/initiateQuote' defined in ServletContext resource [/WEB-INF/beans.xml]: Bean class [ assuranceweb.actions.InitiateQuoteAction] not found; nested exception is java.lang.ClassNotFoundException: assuranceweb.actions.InitiateQuoteAction
java.lang.ClassNotFoundException: assuranceweb.actions.InitiateQuoteAction
at com.ibm.ws.classloader.CompoundClassLoader.findCla ss(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java(C ompiled Code))
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:256)
at org.springframework.util.ClassUtils.forName(ClassU tils.java:84)
at org.springframework.beans.factory.support.BeanDefi nitionReaderUtils.createBeanDefinition(BeanDefinit ionReaderUtils.java:61)
at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitionElement(Defa ultXmlBeanDefinitionParser.java:331)
at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitionElement(Defa ultXmlBeanDefinitionParser.java:299)
at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitions(DefaultXml BeanDefinitionParser.java:236)
Any Help appreciated
Thanks
Neal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules