GettingStarted - making/spring-webapp-template GitHub Wiki
Prerequisites
(Tested with spring-tool-suite-3.1.0.RELEASE-e3.8-macosx-cocoa-x86_64)
Configure Custom Template Project
Go to "Preferences" -> "Spring" -> "Template Projects" and click "add". In the dialog, enter "custom-template"(any name ok) as Name and "https://github.com/making/spring-webapp-template/raw/master/template/descriptors.xml" as URL.
Click "OK".
Create Template Project
Go to "File" -> "New" -> "Spring Template Project" and select "Spring Web Application Template Project".
Click "Next". You have to download template project at the first time.
Click "Yes".
Enter the project information and click "Finish".
Template project has been created in your workspace.
Right click the project and select "Configure" -> "Convert to Maven Project".
Your project has been configured as Maven project
Run the application
Right click the project and select "Run As" -> "Run on Server".
Select "VMware vFabric tc Server Developer Edition vx.x" and click "Finish".
The output looks like as shown.
Trouble Shooting
Cannot create JDBC driver
problem
00:50:18 [tomcat-http--4] [DEBUG] [o.h.e.transaction.spi.AbstractTransactionImpl ] - begin
Cannot create JDBC driver of class 'net.sf.log4jdbc.DriverSpy' for connect URL 'jdbc:log4jdbc:h2:mem:projectName;MODE=PostgreSQL'
java.sql.SQLException: No suitable driver
Application server couldn't find the jdbc driver. H2 is pre-configured as default driver.
solution
cp $HOME/.m2/repository/com/h2database/h2/x.x.x/h2-x.x.x.jar $STS_HOME/vfabric-tc-server-developer-x.x.x.RELEASE/tomcat-x.x.x.RELEASE/lib/
Out of memory: PermGen space
problem
java.lang.OutOfMemoryError: PermGen space
Aplication couldn't start.
solution
Add JVM option -XX:PermSize=256m
. In case of tc server, this is pre-configured.