applicationContext-import-remoteServices.xml - Wrong xml syntax ----------------------------------------------------------------
Key: SPRING-186 URL: http://jira.andromda.org/browse/SPRING-186 Project: Spring Cartridge Type: Bug Components: CRUD Environment: PC, WindowsXP SP2, Maven2, MagicDraw9.5, AndroMDA-3.2-SNAPSHOT, using Manageable Entities Reporter: Béla Boda Assigned to: Chad Brandon The Manageable feature creates the file: applicationContext-import-remoteServices.xml There is wrong syntax: ... <!-- ========================= Start of SERVICE DEFINITIONS ========================= --> <!-- StatusManageableService Remote Service Local Proxy with inner StatusManageableService Remote Service invoker --> <bean id="StatusManageableService" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="target"> <property name="serviceUrl"><value></value></property> <property name="serviceInterface"><value>hu.alerant.ing.model.common.crud.StatusManageableService</value></property> </bean> <!-- wrong syntax here!!!--> </property> <property name="proxyInterfaces"><value>hu.alerant.ing.model.common.crud.StatusManageableService</value></property> </bean> ... I don't know if I have to specify to poblish the services remotely, and don't know how it effects, the web CURD, but the XML syntax is surely wrong. I changed the Manageable part like this: #foreach ($manageable in $manageables) <!-- $manageable.manageableServiceName Remote Service Local Proxy with inner $manageable.manageableServiceName Remote Service invoker --> <bean id="$manageable.manageableServiceName" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="target"> #if($manageable.remotingTypeHttpInvoker) <bean class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl"><value>$manageable.remoteUrl</value></property> <property name="serviceInterface"><value>$manageable.fullyQualifiedManageableServiceName</value></property> </bean> #elseif($manageable.remotingTypeHessian) <bean class="org.springframework.remoting.caucho.HessianProxyFactoryBean"> <property name="serviceUrl"><value>$manageable.remoteUrl</value></property> <property name="serviceInterface"><value>$manageable.fullyQualifiedManageableServiceName</value></property> </bean> #elseif($manageable.remotingTypeBurlap) <bean class="org.springframework.remoting.caucho.BurlapProxyFactoryBean"> <property name="serviceUrl"><value>$manageable.remoteUrl</value></property> <property name="serviceInterface"><value>$manageable.fullyQualifiedManageableServiceName</value></property> </bean> #elseif($manageable.remotingTypeRmi) <bean class="org.springframework.remoting.rmi.RmiProxyFactoryBean"> <property name="serviceUrl"><value>$manageable.remoteUrl</value></property> <property name="serviceInterface"><value>$manageable.fullyQualifiedManageableServiceName</value></property> </bean> #end </property> <property name="proxyInterfaces"><value>$manageable.fullyQualifiedManageableServiceName</value></property> #if ($adviceEnabled) <property name="interceptorNames"> <list> <value>exceptionHandlingAdvice</value> </list> </property> #end </bean> #end Now it's fine for me logically and syntactically, but I'm not sure of the semantic and the effect... Thanks! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642