Project is based on Maven, thus import project to IntelliJ IDEA by:
- File -> Open... -> pick
pom.xml
file.
Short version:
- Download WebProfile, ZIP from: http://tomee.apache.org/downloads.html
- Unzip
- In IntelliJ IDEA: register "TomEE Server" -> local:
- Press "Fix", choose "exploded war" as artifact
- Run the server, project should start successfully.
Long version: TomEE and IntelliJ IDEA
- Download WebProfile from: http://www.payara.fish/all_downloads
- Unzip
- In IntelliJ IDEA: register "GlassFish Server" -> local:
- Choose "Server Domain": payaradomain
- Press "Fix", choose "exploded war"
- Press "Fix" again to update debugger settings
- Run the server, project should start successfully.
- Download ZIP "Java EE7 Full & Web Distribution" from: [http://wildfly.org/downloads/]
- Unzip
- In IntelliJ IDEA: register "JBoss Server" -> local:
- Press "Fix", choose "exploded war"
- Run the server, project should start successfully.
- Download and unzip: WAS Liberty
- Run:
wlp/bin/server create
- In IntelliJ IDEA: register "WebSphere Server" -> local:
- Press "Fix" to enable JMX
- Press "Fix" again, choose "exploded war" as artifact
- In tab "Deployment", for "Use custom context root" enter: JavaEEstarter
- Run the server for the first time (it will fail - that is OK), then stop the server.
- Open this file with text editor:
wlp/usr/servers/defaultServer/server.xml
, addclassloader
andlibrary
tags:
...
<application id="JavaEEstarter_war_exploded" ...>
<classloader commonLibraryRef="h2" />
</application>
<library id="h2">
<fileset dir="${shared.resource.dir}/h2" includes="*.jar" />
</library>
</server>
- Copy file
JavaEEstarter/target/JavaEEstarter-1.0-SNAPSHOT/WEB-INF/lib/h2-1.4.193.jar
to directorywlp/usr/shared/resources/h2
- Run the server again: project should work fine now.