Hi,
See the error when installing alfresco social login.
I ran the command:
mvn clean install alfresco: run
I followed the documentation on the site below:
https://github.com/FlexSolution/SocialLogin
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ SocialLogin-platform ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to /root/install/linkedin/SocialLogin/SocialLogin-platform/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] ------------------------------------------------------------------------
[INFO] Skipping SocialLogin OAUTH2 login AIO - SDK 3.0
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SocialLogin OAUTH2 login AIO - SDK 3.0 1.0-SNAPSHOT:
[INFO]
[INFO] SocialLogin OAUTH2 login AIO - SDK 3.0 ............. SUCCESS [ 0.817 s]
[INFO] Alfresco Platform/Repository SocialLogin JAR Module FAILURE [02:27 min]
[INFO] Alfresco Share SocialLogin JAR Module .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:28 min
[INFO] Finished at: 2019-12-16T10:52:40-02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SocialLogin-platform: 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf ocialLogin-platform
What is the solution to this error?
With best regards,
Zé Brasil
What JDK do you have installed?
Hi jljwoznica,
I was with jre.
Then we switched to jdk. Compiled, but now does not want to raise the tomcat.
Look:
[INFO] Reactor Summary for SocialLogin OAUTH2 login AIO - SDK 3.0 1.0-SNAPSHOT:
[INFO]
[INFO] SocialLogin OAUTH2 login AIO - SDK 3.0 ............. SUCCESS [ 1.443 s]
[INFO] Alfresco Platform/Repository SocialLogin JAR Module SUCCESS [ 8.223 s]
[INFO] Alfresco Share SocialLogin JAR Module .............. SUCCESS [ 1.808 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.686 s
[INFO] Finished at: 2019-12-16T16:39:15-02:00
[INFO] ------------------------------------------------------------------------
root@servertwtech:~/install/linkedin/SocialLogin# echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
root@servertwtech:~/install/linkedin/SocialLogin# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
root@servertwtech:~/install/linkedin/SocialLogin# java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
root@servertwtech:~/install/linkedin/SocialLogin# mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-72-generic", arch: "amd64", family: "unix"
root@servertwtech:~# tail -f /opt/alfresco/tomcat/logs/catalina.out
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Unrecognized option: -d64
Do I have to change something in the alfresco-service.sh script to get alfresco up?
Or would it be changing some java environment variable?
With best regards,
Zé Brasil
Hi,
I installed the amp following the documentation below:
https://hub.alfresco.com/t5/alfresco-content-services-add/social-login-linkedin-oauth2/td-p/290278
However, when you click on tools - Oauth2 Configuration the page is blank.
Does not open the linkedin option to authenticate.
I am using version 6.1.1
Community - 6.1.1 (r9d03d2fd-b168)
alfresco.log.2019-09-12:2019-09-12 20:15:22,497 INFO [org.alfresco.service.descriptor.DescriptorService] [localhost-startStop-1] Alfresco Content Services started (Community). Current vers
ion: 6.1.1 (r9d03d2fd-b168) schema 12,001. Originally installed version: 6.1.1 (r9d03d2fd-b168) schema 12,001.
With best regards,
What is missing?
Does it work on this version?
With best regards
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.