- This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by cconway.
-
AuthorPosts
-
Greg SoulsbyMemberWould it be true that scaffolding CRUD Webflow and Security M4S 10 means you have to apply this patch? https://jira.springsource.org/browse/SWF-1182
They are saying the error I am getting (a class not found) is caused by incompatibility between Webflow 2 and Security 3
If so, should it not be built into M4S?
Also, having applied the above patch I am getting another error, exactly as per this patch http://spring-java-ee.blogspot.com/2010/02/solving-tomcat-jsf-20-error.html
I think they are saying there is incompatibility between Tomcat and JSF 2.0
Does that also sound right?
cconwayMemberYes, there is an incompatiblity with JSF 2.0 and Tomcat but there is a simple workaround. There are two steps, one that adds the correct JSF libs to your project and one that prepends the correct libs to the tomcat classpath.
Add JSF Capabilities
1. Right-click on your project and select MyEclipse > Add JSF Capabilities
2. Verifiy the values on the dialog and press finish.Prepend EL Libs
1. Right-click on your Tomcat Server Connector (in the Servers view) and select Configure Server Connector.
2. Expand the MyEclipse Tomcat node and select the Paths node.
3. In the Prepend to classpath box, press the Add JAR/ZIP button
4. Select the el-api 2.2.x.jar and the el-impl-2.2.x jar. You should be able to get the libs from http://search.maven.org.After you do these two things you should be able to use JSF 2.0 with your tomcat.
As far as the patch goes, we would not typically include a patch with the distribution but if it fixes the problem you are having, then by all means you should install it. It looks like that patch was included in a 2.1 version of webflow and in fact, it looks like webflow is at version 3.0 (I had no idea and couldn’t find that the other day). I’ll log an issue to update our webflow support to 3.0 in our next release if possible.
Greg SoulsbyMemberGreat, thanks Cindy.
Any other similar conflicts to be aware of?
Maybe I should go through the learning curve of Maven, which I was hoping to avoid.
cconwayMemberYou’re welcome, as always.
Typically if there are known workarounds we post them as sticky posts in this General forum. The JSF one was in the 9.0 release notes along with a GWT issue. I think there was also a popup dialog that should have appeared when you did the JSF scaffolding alerting you to some possible things you’d need to do for JSF. It seems that JSF and GWT are “special” in that there are always extra things you need to do.
https://www.genuitec.com/forums/topic/myeclipse-for-spring-9-0-release-notes/
The webflow/security incompatibility was unfortunately uncovered by you. In general though, security is only supported for MVC scaffolding so there would be work to do for each of the other web layer types.
-
AuthorPosts