RestComm / jain-slee

The World's #1 Open Source JAIN-SLEE (JSLEE) 1.1 Implementation
http://www.restcomm.com/
GNU Affero General Public License v3.0
24 stars 49 forks source link

How to build RestComm/jain-slee #137

Open armachea opened 5 years ago

armachea commented 5 years ago

Hi guys,

Hope everyone is doing okey. I just downloaded the last repo of jainslee which is jain-slee-7.2.0-182

i am having a problem on building it ?

I tried to go into - /home/armacheantoni/Documents/jain-slee-7.2.0-182/release/

and use sudo mvn pom.xml and use sudo ant build.xml

I just keep on having errors, does anyone know how to build this source file ?

msrashed2018 commented 5 years ago

What's error you get while mvn installing?

On Tue, May 7, 2019, 10:18 Mr. KFC notifications@github.com wrote:

Hi guys,

Hope everyone is doing okey. I just downloaded the last repo of jainslee which is jain-slee-7.2.0-182

i am having a problem on building it ?

I tried to go into - /home/armacheantoni/Documents/jain-slee-7.2.0-182/release/

and use sudo mvn pom.xml and use sudo ant build.xml

I just keep on having errors, does anyone know how to build this source file ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RestComm/jain-slee/issues/137, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJYNOAXOE66IMZXH3D5RQTPUE3OTANCNFSM4HLGOTBQ .

armachea commented 5 years ago

Hi msrashed am having the following errors while doing the | sudo mvn pom.xml inside /Documents/RepoSLEE/jain-slee-7.2.0-182/release$ |

BuildingERROR


ibstelix commented 5 years ago

Hi, replace "sudo mvn pom.xml" with "mvn clean install"

Best regards,

Le mar. 7 mai 2019 à 09:18, Mr. KFC notifications@github.com a écrit :

Hi guys,

Hope everyone is doing okey. I just downloaded the last repo of jainslee which is jain-slee-7.2.0-182

i am having a problem on building it ?

I tried to go into - /home/armacheantoni/Documents/jain-slee-7.2.0-182/release/

and use sudo mvn pom.xml and use sudo ant build.xml

I just keep on having errors, does anyone know how to build this source file ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RestComm/jain-slee/issues/137, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYQJAL4MZEHUVBY27NFABLPUE3ORANCNFSM4HLGOTBQ .

armachea commented 5 years ago

Hi Ibrahima,

Thanks for the quick feedback, I did the following in main the folder:

/Documents/RepoSLEE/jain-slee-7.2.0-182$ sudo mvn clean install

The building process is stopped in midway by an error for [spi ]...... this is the below error:

Downloading: https://repo.maven.apache.org/maven2/org/restcomm/cluster/core/3.0.1-187/core-3.0.1-187.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] restcomm-slee-core ................................. SUCCESS [ 0.371 s] [INFO] Restcomm JAIN SLEE 1.1 API Extensions .............. SUCCESS [ 5.736 s] [INFO] restcomm-slee-core-container ....................... SUCCESS [ 0.018 s] [INFO] jmx-property-editors ............................... SUCCESS [ 8.945 s] [INFO] fault-tolerant-ra-parent ........................... SUCCESS [01:59 min] [INFO] fault-tolerant-ra-api .............................. SUCCESS [ 0.880 s] [INFO] spi ................................................ FAILURE [01:16 min] [INFO] common ............................................. SKIPPED [INFO] usage .............................................. SKIPPED [INFO] activities ......................................... SKIPPED [INFO] events ............................................. SKIPPED [INFO] profiles ........................................... SKIPPED [INFO] remote ............................................. SKIPPED [INFO] router ............................................. SKIPPED [INFO] transaction ........................................ SKIPPED [INFO] components-parent .................................. SKIPPED [INFO] descriptors ........................................ SKIPPED [INFO] components ......................................... SKIPPED [INFO] fault-tolerant-ra-impl ............................. SKIPPED [INFO] resource ........................................... SKIPPED [INFO] slee-timers ........................................ SKIPPED [INFO] services ........................................... SKIPPED [INFO] congestion ......................................... SKIPPED [INFO] standard-components-parent ......................... SKIPPED [INFO] standard-events-jar ................................ SKIPPED [INFO] standard-events11-jar .............................. SKIPPED [INFO] standard-profiles-jar .............................. SKIPPED [INFO] standard-profiles11-jar ............................ SKIPPED [INFO] standard-components-du ............................. SKIPPED [INFO] slee-container-build ............................... SKIPPED [INFO] slee-container-build-as7 ........................... SKIPPED [INFO] slee-container-build-as7-modules ................... SKIPPED [INFO] slee-container-build-as7-extension ................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:33 min [INFO] Finished at: 2019-05-07T12:18:06+03:00 [INFO] Final Memory: 69M/407M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project spi: Could not resolve dependencies for project org.mobicents.servers.jainsl ee.core:spi:jar:7.2.0-182: Could not find artifact org.restcomm.cluster:core:jar:3.0.1-187 in redhat-ga-repository (ht tps://maven.repository.redhat.com/ga/) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :spi

Do i have to change version of jainslee ?

msrashed2018 commented 5 years ago

change restcomm.cluster.version property in jainslle/container/pom.xml to be

3.0.0.15 and mvn clean install again On Tue, May 7, 2019 at 11:26 AM Mr. KFC wrote: > Hi Ibrahima, > Thanks for the quick feedback, I did the following in main the folder: /Documents/RepoSLEE/jain-slee-7.2.0-182$ > sudo mvn clean install > > The building process is stopped in midway by an error for [spi ]...... > this is the below error: > > Downloading: > https://repo.maven.apache.org/maven2/org/restcomm/cluster/core/3.0.1-187/core-3.0.1-187.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] restcomm-slee-core ................................. SUCCESS [ > 0.371 s] > [INFO] Restcomm JAIN SLEE 1.1 API Extensions .............. SUCCESS [ > 5.736 s] > [INFO] restcomm-slee-core-container ....................... SUCCESS [ > 0.018 s] > [INFO] jmx-property-editors ............................... SUCCESS [ > 8.945 s] > [INFO] fault-tolerant-ra-parent ........................... SUCCESS [01:59 > min] > [INFO] fault-tolerant-ra-api .............................. SUCCESS [ > 0.880 s] > [INFO] spi ................................................ FAILURE [01:16 > min] > [INFO] common ............................................. SKIPPED > [INFO] usage .............................................. SKIPPED > [INFO] activities ......................................... SKIPPED > [INFO] events ............................................. SKIPPED > [INFO] profiles ........................................... SKIPPED > [INFO] remote ............................................. SKIPPED > [INFO] router ............................................. SKIPPED > [INFO] transaction ........................................ SKIPPED > [INFO] components-parent .................................. SKIPPED > [INFO] descriptors ........................................ SKIPPED > [INFO] components ......................................... SKIPPED > [INFO] fault-tolerant-ra-impl ............................. SKIPPED > [INFO] resource ........................................... SKIPPED > [INFO] slee-timers ........................................ SKIPPED > [INFO] services ........................................... SKIPPED > [INFO] congestion ......................................... SKIPPED > [INFO] standard-components-parent ......................... SKIPPED > [INFO] standard-events-jar ................................ SKIPPED > [INFO] standard-events11-jar .............................. SKIPPED > [INFO] standard-profiles-jar .............................. SKIPPED > [INFO] standard-profiles11-jar ............................ SKIPPED > [INFO] standard-components-du ............................. SKIPPED > [INFO] slee-container-build ............................... SKIPPED > [INFO] slee-container-build-as7 ........................... SKIPPED > [INFO] slee-container-build-as7-modules ................... SKIPPED > [INFO] slee-container-build-as7-extension ................. SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 03:33 min > [INFO] Finished at: 2019-05-07T12:18:06+03:00 > [INFO] Final Memory: 69M/407M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project spi: Could not resolve > dependencies for project org.mobicents.servers.jainsl > ee.core:spi:jar:7.2.0-182: Could not find artifact > org.restcomm.cluster:core:jar:3.0.1-187 in redhat-ga-repository (ht tps:// > maven.repository.redhat.com/ga/) -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn -rf :spi > > Do i have to change version of jainslee ? > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
armachea commented 5 years ago

Hi Mohamed thanks for the quick feedback.....

But something is wrong.....

1 - 3.0.0.15</restcomm.cluster.version> is not present inside the repo url : https://maven.repository.redhat.com/ga/org/restcomm/ DOES NOT EXIST https://maven.repository.redhat.com/ga/org/ DOES EXIST

2 - after changing cluster version from 3.0.1-187 to the one u asked me to 3.0.0.15 keep having errors, see below errors

ErrorSPI.txt

Regards.

msrashed2018 commented 5 years ago

run the following commands to build needed version of restcomm cluster core : git clone https://github.com/RestComm/cluster cd cluster git checkout tags/3.0.1-163 mvn clean install

then change restcomm.cluster.version to be

3.0.1-163 On Tue, May 7, 2019 at 12:10 PM Mr. KFC wrote: > Hi Mohamed thanks for the quick feedback..... > > But something is wrong..... > > 1 - 3.0.0.15 is not > present inside the repo url : > https://maven.repository.redhat.com/ga/org/restcomm/ DOES NOT EXIST > https://maven.repository.redhat.com/ga/org/ DOES EXIST > > 2 - after changing cluster version from 3.0.1-187 to the one u asked me to > 3.0.0.15 keep having errors, see below errors > > ErrorSPI.txt > > > Regards. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
msrashed2018 commented 5 years ago

run the following commands to build needed version of restcomm cluster core : git clone https://github.com/RestComm/cluster cd cluster git checkout tags/3.0.1-163 mvn clean install

then change restcomm.cluster.version to be

3.0.1-163 then build jain slee container again with mvn clean install -DskipTests On Tue, May 7, 2019 at 12:10 PM Mr. KFC wrote: > Hi Mohamed thanks for the quick feedback..... > > But something is wrong..... > > 1 - 3.0.0.15 is not > present inside the repo url : > https://maven.repository.redhat.com/ga/org/restcomm/ DOES NOT EXIST > https://maven.repository.redhat.com/ga/org/ DOES EXIST > > 2 - after changing cluster version from 3.0.1-187 to the one u asked me to > 3.0.0.15 keep having errors, see below errors > > ErrorSPI.txt > > > Regards. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
armachea commented 5 years ago

Hi Mohamed thanks so much for the guidance and feedback, i have successfully build it but i don't see any changes in my folder....

i am running all my application with the following test-bed: restcomm-slee-7.1.83.87-wildfly-10.1.0.Final

As u can see restcomm-slee-7.1.83.87 (is 2015 ~ 2016 year older ) As u can see wildfly-10.1.0.Final (is 2013 year older )

I wanted to have the following test-bad for better performance: restcomm-slee-7.2.0-182-wildfly-15.0.0.Final

I thought i had first to build jain-slee7.2 then build wildfly 15.......... but now I am lost i don't see any change inside ** /Documents/RepoSLEE/jain-slee-7.2.0-182/ **** after the successful build.

Is there a special way or method that show how to combine (new jain-slee stack) and (new wildfly stack) in one folder like the old one ( restcomm-slee-7.1.83.87-wildfly-10.1.0.Final )

Regards.

msrashed2018 commented 5 years ago

i think all you need as to add the generated modules under jainslee/container/build to wildlfy modules directory and define extensions and beans configurations in standalone.xml as defined in old version.. you can do it manually without need to ant build

Run the following commands:

$ cp jain-slee/container/build/as7/extension/target/module/main/* $WILDFLY_HOME/modules/system/layers/base/org/restcomm/slee/container/lib/main

$ cp jain-slee/container/build/as7/extension/target/module/main/* $WILDFLY_HOME/modules/system/layers/base/org/restcomm/slee/container/extension/main

armachea commented 5 years ago

Hi Mohamed, this process of doing it manually is giving me a lot of trouble.

I have successfully copy all the generated data from jainslee stack to my wildfly stack following the old wildfly structures in regards to the two main folder: --lib --extension

i have implemented the inside the standalone.xml

when i run wildfly15.0 everything is working fine, but as soon i copy the generated ( slee-management-console.war ) from jainslee stack in my computer repo : /home/armacheantoni/Documents/RepoSLEE/jain-slee-7.2.0-182/tools/slee-management-console/war/${env.JBOSS_HOME}/standalone/deployments/slee-management-console.war

TO

wildfly15.0 stack in my computer repo : /root/rms/wildfly-15.0.0.Final/standalone/deployments/

Am receiving error from wildfly.......

sleeManagementERROR.txt