WebSphere
Installing WebSphere – Download WebSphere 8.5 Liberty Profile. Run the command line mentioned on that page, e.g.
java -jar wlp-developers-runtime-8.5.5.0.jar
. In what follows, we'll refer to the directory where you installed WebSphere Liberty Profile asWLP
.Running WebSphere – Run the server:
cd WLP/bin ; ./server run
. This will create the directory structure underWLP/usr/servers/defaultServer
.Deploying Orbeon Forms – In
WLP/usr/servers/defaultServer/apps
create awar
directory, and inside it anorbeon
directory. Uncompress the Orbeon Forms war into thatorbeon
directory. OpenWLP/usr/servers/defaultServer/server.xml
in an editor, inside the<server>
root element, add the following two lines. The first lines declared the Orbeon Form app. The second disables automatic application redeployment when files in Orbeon Forms war file change. You need this as by default Form Runner uses the embedded eXist database, which writes toWEB-INF/exist-data
, inside the Orbeon Formswar
, which would trigger the app to restart as data is written to disk.Testing your installation – Check the console: you should see the that Orbeon Forms was deployed successfully. Then access
http://localhost:9080/orbeon/home/
, and you should see the Orbeon Forms home page. If you start WebSphere from the WLP/bin directory, as mentioned on step 2, you will find the Orbeon Forms log file inWLP/usr/servers/logs/orbeon.log
.
[SINCE Orbeon Forms 4.3]
To setup a JDBC, for instance here for Oracle:
Install the database driver – Create a directory
WLS/usr/servers/defaultServer/lib
, and inside it place the database driver jar file, for instanceojdbc6_g.jar
. On WebSphere, Orbeon Forms requires a JDBC 4 driver (e.g. for Oracle , useojdbc6_g.jar
orojdbc6.jar
but notojdbc5_g.jar
orojdbc5.jar
).Setup a datasource in WebSphere – Open your
WLP/usr/servers/defaultServer/server.xml
in an editor. Your server.xml should look like the one below. Thejdbc-4.0
feature in included, a top level library is declared pointing to the driver jar (in this caseojdbc6_g.jar
), a datasource is defined, and the JNDI name set tojdbc/oracle
, and both the data source and the application point to the same top level library, which is particularly important so WebSphere loads the driver classes with a single shared class loader.Setup the datasource the Orbeon Forms web app – In
WLP/usr/servers/defaultServer/apps/war/orbeon/WEB-INF
create a fileibm-web-bnd.xml
with the following content:Then, edit the
web.xml
in the same directory, and uncomment the<resource-ref>
, which should look as follows:Setup Form Runner – If you're doing this setup so Form Runner (i.e. the forms you create with Form Builder) stores data in a relational database, then you also need to add the following property to instruct Form Runner to use the appropriate persistence implementation. The value of the property will typically be
oracle
,mysql
, ordb2
.
Last updated