Skip to content
This repository has been archived by the owner on Aug 6, 2018. It is now read-only.

GettingStarted

making edited this page Nov 1, 2012 · 1 revision

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.

screen01

Click "OK".

Create Template Project

Go to "File" -> "New" -> "Spring Template Project" and select "Spring Web Application Template Project".

screen04

Click "Next". You have to download template project at the first time.

screen03

Click "Yes".

Enter the project information and click "Finish".

screen04

Template project has been created in your workspace.

Right click the project and select "Configure" -> "Convert to Maven Project".

screen05

Your project has been configured as Maven project

screen06

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".

screen07

The output looks like as shown.

screen08

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.