mvn eclipse:eclipse and m2e eclipse import – Errors in Web project – Richfaces showcase example – OutOfMemoryError

If you convert a maven project to eclipse using eclipse:eclipse, like richfaces showcase, and try to open it in eclipse, it might lead to ClassNotFound errors when you run the app in Tomcat. To fix that, delete the ‘.settings’ directory and install m2e plugin, and m2e webtools plugin (wtp). Then import the project into eclipse via maven. Then run the project in Tomcat server in Eclipse. If you run into “java.lang.OutOfMemoryError: PermGen space”, set permsize arguments for Tomcat as shown:
-XX:PermSize=64m -XX:MaxPermSize=128m


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: