To get the QualiPSo Factory running in production mode, follow the steps detailed in the Environment installation page.
To get it running in a development mode (via Eclipse) for debugging a view in particular or just run the module without making a new war for production mode, there are two different ways :
Be sure that the first configuration step of the development guidelines has been achieved. Then, a run/debug configuration has to be set as below (depending on the mode you want to use).
In order to be able to run/debug the view you want (so, display it in a web browser) you first need to configure three files (their location is detailed in the module tree).
The entry point of the debug mode is that file. So, your module has to inherit the OPContainer class.
<module rename-to='projectdev'>
<inherits name="org.qualipso.factory.ui.shared.OpenParts.OPContainer" />
</module>That file is needed by the Jetty server (included inside Eclipse).
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Factory UI Project service test</display-name>
<servlet>
<display-name>ProjectServlet</display-name>
<servlet-name>ProjectServlet</servlet-name>
<servlet-class>org.qualipso.factory.ui.service.project.server.ProjectServletImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ProjectServlet</servlet-name>
<url-pattern>/project/project</url-pattern>
</servlet-mapping>
</web-app>That html file has to be configured in order to specify which view will be debugged. There are for main parameters :
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="Jerome Blanchard, Christophe Bouthier" />
<meta name="copyright" content="copyright 2009-2010 - INRIA" />
[1] <meta name="part_name" content="project" />
[2] <meta name="part_resource" content="project" />
[3] <meta name="part_view" content="update" />
[4] <meta name="part_params" content="path, /" />
<script type="text/javascript" src='projectdev/projectdev.nocache.js'></script>
<title>Factory UI - Test page for Project service</title>
</head>
<body id="factory.qualipso.org">
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
</body>
</html>So, the configuration inside Eclipse is the following one:
Click on Run > Run/Debug Configurations... > Web Application > New
The Project field is the name of the package which you want to debug (here, factory-ui-service-project). The Main class field is always com.google.gwt.dev.DevMode.

For that run/debug mode, we use the Jetty server included in Eclipse. So, set the checkbox Run built-in server.

In the (x)=Arguments tab, add Program arguments and VM arguments (be aware that the environment variable $PROJECTS_FOLDER have to be modified regarding your own environment).
Program arguments:
-port 8888 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel INFO -war
$PROJECTS_FOLDER/factory-ui/factory-ui-service-project/war org.qualipso.factory.ui.service.project.Project
org.qualipso.factory.ui.service.project.dev.ProjectDevVM arguments:
-Xmx512m

In that mode, only your module and the two frameworks projects (OpenParts and QGWT) have to be set here. So, do as follow :
Click on Add projects... (for OpenParts and QGWT)
Click on Advanced...
Select the following folders for each module :
src/main/java
src/main/webapp
src/main/resources
target/generated-sources/gwt
Click on Run/Debug
Then, the Development Mode tab appear in the bottom. Just copy/paste the URL provided in your internet browser (the GWT browser plugin is required).
In order to do this, you need to have deployed the whole UI at least once on JBoss (so that GWT Dev. Mode can recognize the modules).
For the server part, each required project has to be compiled, as explained in the Server Environment Installation page.
For the UI part, you need to compile things in order (cf. UI Environment installation). Then, an EAR is generated and can be deployed on a JBoss server.
So, the configuration inside Eclipse is the following one:
Click on Run > Run/Debug Configurations... > Web Application > New
The Project field is the name of the main project (factory-ui-core). The Main class field is always com.google.gwt.dev.DevMode.

For that run/debug mode, we don't use the Jetty server included in Eclipse because we are using the JBoss one outside Eclipse. So, unckeck the checkbox Run built-in server.

We just use the modules included in the main project (factory-ui-core) :
You have to specify the URL of the running factory on the external JBoss (here, http://localhost:8080/factory/).

In the (x)=Arguments tab, add Program arguments and VM arguments (be aware that environment variables $JBOSS_HOME and $PROJECTS_FOLDER have to be modified regarding your own environment).
Program arguments:
-noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl http://localhost:8080/factory/ -logLevel INFO -war
$PROJECTS_FOLDER/factory-ui/factory-ui-core/war org.qualipso.factory.ui.core.core.Core org.qualipso.factory.ui.core.dev.CoreDev
org.qualipso.factory.ui.core.login.Login org.qualipso.factory.ui.core.main.Main org.qualipso.factory.ui.core.membership.Membership
org.qualipso.factory.ui.core.security.Security org.qualipso.factory.ui.shared.OpenParts.OPContainer org.qualipso.factory.ui.shared.QGWT.QGWT
org.qualipso.factory.ui.service.git.Git org.qualipso.factory.ui.service.project.Project org.qualipso.factory.ui.service.issuetracker.IssueTrackerVM arguments:
-Xmx512m -Dqualipso.factory.config=$JBOSS_HOME$/server/default/conf/factory.config

In that mode, all the modules and the two frameworks projects (OpenParts and QGWT) have to be set here. The required projects are the following ones:
So, do as follow :
Click on Add projects... (for all required projects)
Click on Advanced...
Select the following folders for each required module :
src/main/java
src/main/resources
target/generated-sources/gwt
Click on Run/Debug
Then, the Development Mode tab appear in the bottom. Just copy/paste the URL provided in your internet browser (the GWT browser plugin is required). The JBoss server has to be running with the EAR generated first.
Problem: ServletAsync cannot be resolved...
Problem: How to run it?
Problem: tried with 'gwt:run' (just out of curiosity) but got:
[WARNING] Your POM <build><outputdirectory> does not match your hosted webapp WEB-INF/classes folder for GWT Hosted browser to see your classes. ... ...
Question: The list of files appeared, but not the rewritten URL. To see the initial page I had to remove the 'main' from the end of the address: 'http://localhost:8081/factory-ui-1.0-SNAPSHOT/main'.
The problem is that, when passing this url, the web server should read one element in the web.xml config file of factory-ui, and DIRECTLY go to the main module and load its index page. And this is working... almost. This is working but NOT the first time.
Right now, we don't know exactly why (this is on the list of things to investigate).