MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
P0rridge
Post subject: Webflow and Security conflict - is this patch required?  PostPosted: Dec 22, 2011 - 05:49 PM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

Would 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?
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Dec 22, 2011 - 06:40 PM



Joined: Apr 04, 2011
Posts: 196

Yes, 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.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
P0rridge
Post subject: Thanks again  PostPosted: Dec 23, 2011 - 02:52 AM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

Great, 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.
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Dec 23, 2011 - 04:07 PM



Joined: Apr 04, 2011
Posts: 196

You'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.

http://myeclipseide.com/PNphpBB2-viewtopic-t-27078.html

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.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits