Announcement Announcement Module
Collapse
No announcement yet.
No existing transaction found for transaction marked with propagation 'mandatory' Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No existing transaction found for transaction marked with propagation 'mandatory'

    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
    Code:
    	<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.ContextLoaderListener
    		</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
    Code:
    	<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
    Code:
        <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
            <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.UrlBasedViewResolver">
           <property name="viewClass"
                value="org.springframework.web.servlet.view.tiles2.TilesView">
            </property>
        </bean>
    
        <dwr:configuration>
        </dwr:configuration>
        
    	<dwr:controller id="dwrController" debug="true" />

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