PDA

View Full Version : No existing transaction found for transaction marked with propagation 'mandatory'



eros
Nov 26th, 2009, 02:08 AM
environment:
Spring 2.5.2
SWF 1.0.5
DWR 2.0.5

Error Message:

org.springframework.transaction.IllegalTransaction StateException: No existing transaction found for transaction marked with propagation 'mandatory'

Configurations:

web.xml


<context-param>
<param-name>contextConfigLocation</param-name>
<param-value><![CDATA[
classpath:applicationContext.xml,
classpath:applicationContext-service.xml
]]></param-value>
</context-param>
<listener>
<listener-class>
jp.co.udom.rosenpro.web.util.LogbackConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>
<servlet>
<servlet-name>route-web</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext-servlet.xml
classpath:applicationContext-webflow.xml
classpath:applicationContext-tiles.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>route-web</servlet-name>
<url-pattern>/pro/*</url-pattern>
</servlet-mapping>

<!-- DWR 2.0.5 Integration -->
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>

<!-- Turn debug to false in production-->
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>


applicationContext-service.xml


<bean id="routeService" parent="serviceBase"
class="com.coy.route.service.impl.RouteServiceImpl">
<property name="routeBl" ref="routeBl" />
<property name="searchConditionSaveBl" ref="searchConditionSaveBl" />
<dwr:remote javascript="dwrRouteService">
<dwr:include method="execFindLatestRouteNumber" />
</dwr:remote>
</bean>


applicationContext-servlet.xml


<bean class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<value>
<![CDATA[
/pro/k/*=flowController
/pro/flow/**-flow=flowController
/engine.js=dwrController
/util.js=dwrController
/call/**=dwrController
/dwr/**"=dwrController
/interface/**=dwrController
]]>
</value>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewR esolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.tiles2.TilesV iew">
</property>
</bean>

<dwr:configuration>
</dwr:configuration>

<dwr:controller id="dwrController" debug="true" />



I am trying to integrate the DWR 2.0 but it fails.