If you plan to use Tomcat as the development web application server, then you have to both install it in the file system and eventually configure Eclipse to use it.

Installing Apache Tomcat

Download the latest Tomcat server (8.x or 8.5x) from the Apache Web Site: https://tomcat.apache.org/download-80.cgi. Just unzip the server under your installation directory:

If you plan to use the demo applications, then you need to add some demo users with roles in your tomcat environment. Add the following content to {tomcat install dir}\conf\tomcat-users.xml :

<role name="user"/>
  <user password="darwino" roles="user" username="atinov"/>
  <user password="darwino" roles="user" username="amass"/>
  <user password="darwino" roles="user" username="aboucher"/>
  <user password="darwino" roles="user" username="acalder"/>
  <user password="darwino" roles="user" username="agardner"/>
  <user password="darwino" roles="user" username="bchapot"/>
  <user password="darwino" roles="user" username="blemercier"/>
  <user password="darwino" roles="user" username="bchris"/>
  <user password="darwino" roles="user" username="bbright"/>
  <user password="darwino" roles="user" username="larmatti"/>
  <user password="darwino" roles="user" username="lbros"/>
  <user password="darwino" roles="user" username="mdavis"/>
  <user password="darwino" roles="user" username="pcollins"/>
  <user password="darwino" roles="user" username="rjordan"/>

Configuring Eclipse with Tomcat

Eclipse J2EE comes with a set of tools called WTP, which allows the configuration and use of application servers. To configure Apache TOMCAT, you have to create a new 'Runtime Environment' from the Eclipse 'Window->Preferences...':

Once the runtime environment is configured, you should create a new server. For this, you should either make visible the Eclipse 'Servers' view (Window->Show View...Servers) or switch to the J2EE perspective (Window->Open Perspective...Java EE). In the server view, create a new server by hitting the link bellow. If the view displays a list instead, right click and select 'New->Server...' Select your Tomcat environment and eventually change the server name, and hit 'Finish'

Download the darwino-beans.xml and darwino.properties files to the Tomcat install directory.

Now you have your server ready for the Darwino applications

results matching ""

    No results matching ""