cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to Alfresco CE through JMX

jbrasil
Confirmed Champ
Confirmed Champ

Hello,
I need to get jmx in alfresco CE.
I followed the documentation below, but it didn't work out.
Did not generate directory structure /etc/alfresco/config/
https://docs.alfresco.com/5.0/tasks/jmx-access.html
Any other procedures to be done?
Thanks.

2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator

JMX objects are not available in Alfresco Community Edition like they are in Alfresco Enterprise Edition. This is one of the "commercial only" features available to Enterprise Edition.

However, you might want to check out this community-driven initiative:

https://github.com/loftuxab/alfresco-jmx

It looks like it hasn't been touched in quite a while, though.

jbrasil
Confirmed Champ
Confirmed Champ

Hi jpotts,
I'm using JRE for alfresco.
Look:
https://gi.processoverde.com.br/alfresco/s/admin/admin-communitysummary

Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Java version: 1.8.0_232

See the error below:

root@servertwtech:~/install/alfresco-jmx# ./run.sh

[INFO] Compiling 3 source files to /root/install/alfresco-jmx/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:39 min
[INFO] Finished at: 2019-12-23T14:35:09-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5:compile (default-compile) on project alfresco-jmx: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[ERROR] -> [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/MojoFailureException

Do I have to change any parameters to compile JMX?
With best regards,
Zé Brasil