Groovy Controller Bugfix
Before I used to use groovy to take the place of java controller in spring MVC.
I develped a plugin named easygroovyplugin.jar base on some comments and discuss with a foreigner in disccuss group.
I tested them in tomcat/jboss in WINDOWS system.
But today I noticed that it does not work when I use tomcat6/tomcat7 on ubuntu system.
It is stange that when I use jboss5.1, it works fine.
Actually, I find this issue is caused in easygroovyplugin.jar:
cav.addIndexedArgumentValue(constructorArgNum++, "file://" + resource.getFile().getAbsolutePath());
So, I fixed it and rebuild the plugin.
Before I used to use groovy to take the place of java controller in spring MVC.
I develped a plugin named easygroovyplugin.jar base on some comments and discuss with a foreigner in disccuss group.
I tested them in tomcat/jboss in WINDOWS system.
But today I noticed that it does not work when I use tomcat6/tomcat7 on ubuntu system.
It is stange that when I use jboss5.1, it works fine.
Actually, I find this issue is caused in easygroovyplugin.jar:
cav.addIndexedArgumentValue(constructorArgNum++, "file://" + resource.getFile().getAbsolutePath());
So, I fixed it and rebuild the plugin.
本文介绍了作者在使用Groovy作为Spring MVC控制器替代品时遇到的问题。开发的easygroovyplugin.jar插件在Windows下的Tomcat/JBoss运行正常,但在Ubuntu系统上的Tomcat 6/7中出现问题。通过排查发现问题是由于文件路径处理不当导致,并成功修复。
877

被折叠的 条评论
为什么被折叠?



