一月 22, 2009...6:03 下午

Installation of the development environment

Jump to Comments

Installation of the development environment
Pre-requisites
JDK 5.0
JOnAS 5.x
Maven 2
Subversion/subclipse(eclipse plugin)
Flex Builder/ plugin Eclipse of Flex Builder
JOPE (JOnAS Plugin for Eclipse)
Steps of installation
 Download the code of JASMINe EoS from the server Subversion.
 address of svn is:
 svn://svn.forge.objectweb.org/svnroot/jasmine/jasmine-monitoring/trunk/jasmine-monitoring/jasmine-eos/
 Import the project in Eclipse
The first 2 steps could be realised by using the plugin SVN for Eclipse – Subclipse
 Repalce the file setting.xml in directory
 Windows :  <Apache-Maven>\conf\setting.xml
 Linux :  .m2/setting.xml
   <proxies>
       <proxy>
         <active>true</active>
         <protocol>http</protocol>
         <host>ecprox.bull.fr</host>
         <port>8080</port>
         <nonProxyHosts>localhost|*.frec.bull.fr|benoitf</nonProxyHosts>
       </proxy>
   </proxies>
   <profiles>
       <profile>
           <id>Repository Proxy</id>
           <activation>
               <activeByDefault>true</activeByDefault>
           </activation>
           <repositories>
               <repository>
                   <id>local-proxy</id>
                   <url>
                       http://mururoa.frec.bull.fr:12000/px-webapp.war/artifacts
                   </url>
                   <releases>
                       <enabled>true</enabled>
                   </releases>
                   <snapshots>
                       <enabled>true</enabled>
                   </snapshots>
               </repository>
         <repository>
     <id>repo objectweb</id>
  <url>http://maven.objectweb.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
    </repository>
    <repository>
   <id>repo objectweb</id>
   <url>http://maven.objectweb.org/maven2-snapshot</url>
   <releases>
    <enabled>false</enabled>
   </releases>
   <snapshots>
    <enabled>true</enabled>
   </snapshots>
    </repository>
           </repositories>
           <pluginRepositories>
               <pluginRepository>
                   <id>local-plugins-proxy</id>
                   <url>
                       http://mururoa.frec.bull.fr:12000/px-webapp.war/artifacts
                   </url>
                   <releases>
                       <enabled>true</enabled>
                   </releases>
                   <snapshots>
                       <enabled>true</enabled>
                   </snapshots>
               </pluginRepository>
           </pluginRepositories>
       </profile>
   </profiles>
   <servers>
       <server>
           <id>local-proxy</id>
           <username>jonas</username>
           <password>jonas</password>
       </server>
       <server>
           <id>local-plugins-proxy</id>
           <username>jonas</username>
           <password>jonas</password>
       </server>
   </servers>
</settings>
Generate the file jasmine-eos.warby Maven
In the console, we get into the directory of project jasmine-eos, and then execute
mvn clean install
to download the dependences of JASMINe EoS and generate the file .war
Copy the file jasmine-eos.warto the directory
<JOnAS_ROOT>/deploy
Copy into the file jass.xml for EoS, in
<JOnAS_ROOT>/conf/jass.xml
add a JAAS configuration named “eos”
for JOnAS 4.x :

        eos {
            // Use LoginModule for EoS authentication
            org.objectweb.jonas.security.auth.spi.JResourceLoginModule required
            resourceName=”memrlm_1″
            ;
        };

for JOnAS 5.x :

        eos {
            // Use LoginModule for EoS authentication
            org.ow2.jonas.security.auth.spi.JResourceLoginModule required
            resourceName=”memrlm_1″
            ;
        };
Start JOnAS and have the result in browser
http://localhost:9000/jasmine-eos/
WTP installation
Install the plugin Eclipse of JOPE by downloading at
http://forge.objectweb.org/projects/jope/
then unzip the files into the directorys /plugins and /features corresponding
Add a instance of server JOnAS in the project
Run the command : mvn -P initWTP to copy some dependencies in the WTP webapp lib directory
In the .project and .actionScriptProperties file of project, change the link path for matches your workspace path.

回复