PaletteConfig on TomEE
Create a new instance of server by changing the port numbers in server.xml file to avoid conflicts with other instances if any.
Create a directory by name uploads.
The shared folder should be created with two folders namely conf and lib where the necessary configuration files required for running the PaletteConfig application will be placed.
Create a file PaletteWebApplication.properties in the conf subdirectory.
Open the PaletteWebApplication.properties file and add/edit the download.dir property to point to the uploads folder.
PaletteWebApplication.properties
Port Configuration
download.dir=D:\\TomEE_Server_WorkSpace\\apache-tomee-plume-10.0.0\\uploads
download.dir=/scratch/Servers/TomEE/uploads
Creating Data Sources
In tomee.xml file we need to configure the two data sources for Palette Config application to run named PALETTECONFIGDS and PALETTECONFIGIVSDS. The sample configuration is shown below:
tomee.xml
Port Configuration
<tomee>
<Resource id="PALETTECONFIGDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@<Host ip Address>:<port>:<SID>
userName = <User>
password = <Pwd>
jtaManaged = false
</Resource>
<Resource id="PALETTECONFIGIVSDS" type="javax.sql.DataSource">
jdbcDriver = oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@<Host ip Address>:<port>:<SID>
userName = <User>
password = <Pwd>
jtaManaged = false
</Resource>
</tomee>
Configuring Ports
The server.xml should be configured with unique port numbers
server.xml
Port Configuration
<Connector port="8086" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8805" maxParameterCount="1000" xpoweredBy="false" server="Apache TomEE" />
Deploying PaletteConfig
- Rename the Palette Config war from the distribution (distribution generated with weblogic profile) to PaletteConfig.war.
- Deploy PaletteConfig war in webapps folder of TomEE application server.
-
Finally start the server and test the deployment with the following url:
Note: If you change the context name, use that name in the URL instead of PaletteConfig.