Did you try sudo...

El sábado, 31 de marzo de 2018, Rovanion Luckey <[email protected]>
escribió:

> All this is on a 64-bit Ubuntu 16.04 with OpenJDK 9, cas-overlay-template
> was also tested with JDK 8.
>
> Starting with cas-gradle-overlay-template on 
> 7435f376831e2760e3fa91c52e9094bcc4da413e,
> that is master, and the full procedures as follows:
>
> $ git clone [email protected]:apereo/cas-gradle-overlay-template.git
> $ cd cas-gradle-overlay-template/
> $ ./build.sh run
>
> This, as far as I understand it, is what's needed to get the project up
> and running. The README isn't very clear on the subject though. The full
> output of the last command is rather long and can be found here:
> http://paste.ubuntu.com/p/hxCNnNvrX4/
>
> The first of the many reported issues being that the program is unable to
> create a folder `/etc/cas/logs` which is quite right assuming that the
> error message is correct. A user program should not touch anything under
> `/etc` and `/etc` is not the right place for logs, see the Linux Standard
> Base Filesystem Hiarchy Standard [0]. Logs in a development environment
> should be located in a folder relative to the project itself and in a
> production environment under `/var/log`.
>
> I made an attempt at changing where the logs were being written to by
> modifying `<project-root>/etc/cas/config/log4j2.xml` so that the property
> `baseDir` read `./hat/cat`, yet the error continues to read `Could not
> create directory /etc/cas/logs`.
>
> Running out of ideas available to me as a normal user I reached for the
> second template in the stack, cas-overlay-template:
>
> $ git clone [email protected]:apereo/cas-overlay-template.git
> $ ./build.sh run
> Exception in thread "main" javax.net.ssl.SSLException: java.lang.
> RuntimeException: Could not generate DH keypair
>     at sun.security.ssl.Alerts.getSSLException(java.base@9-internal/Alerts
> .java:214)
>     at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/SS
> LSocketImpl.java:1949)
>     at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/SS
> LSocketImpl.java:1901)
>     at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-internal
> /SSLSocketImpl.java:1884)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1416)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1393)
>     at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-
> internal/HttpsClient.java:559)
>     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.
> connect(java.base@9-internal/AbstractDelegateHttpsURLConnection.java:185)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.
> base@9-internal/HttpURLConnection.java:1511)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.
> base@9-internal/HttpURLConnection.java:1439)
>     at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(
> java.base@9-internal/HttpsURLConnectionImpl.java:235)
>     at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(
> DefaultDownloader.java:84)
>     at org.apache.maven.wrapper.DefaultDownloader.download(DefaultD
> ownloader.java:68)
>     at org.apache.maven.wrapper.Installer.createDist(Installer.java:69)
>     at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.
> java:149)
>     at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.
> java:48)
> Caused by: java.lang.RuntimeException: Could not generate DH keypair
>     at sun.security.ssl.DHCrypt.<init>(java.base@9-internal/DHCrypt.java:
> 142)
>     at sun.security.ssl.DHCrypt.<init>(java.base@9-internal/DHCrypt.java:
> 114)
>     at sun.security.ssl.ClientHandshaker.serverKeyExchange(java.base@9-
> internal/ClientHandshaker.java:830)
>     at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-
> internal/ClientHandshaker.java:335)
>     at sun.security.ssl.Handshaker.processLoop(java.base@9-internal/
> Handshaker.java:1003)
>     at sun.security.ssl.Handshaker.processRecord(java.base@9-internal/
> Handshaker.java:937)
>     at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-
> internal/SSLSocketImpl.java:1119)
>     at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
> SSLSocketImpl.java:1056)
>     at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
> SSLSocketImpl.java:955)
>     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-
> internal/SSLSocketImpl.java:1382)
>     at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1409)
>     ... 11 more
> Caused by: java.security.InvalidAlgorithmParameterException: Prime size
> must be multiple of 64, and can only range from 512 to 2048 (inclusive)
>     at com.sun.crypto.provider.DHKeyPairGenerator.initialize(java.base@9-
> internal/DHKeyPairGenerator.java:120)
>     at java.security.KeyPairGenerator$Delegate.initialize(java.base@9-
> internal/KeyPairGenerator.java:681)
>     at sun.security.ssl.DHCrypt.<init>(java.base@9-internal/DHCrypt.java:
> 128)
>     ... 21 more
>
> Googling this issue it seemed like it could due to which version of Java I
> was using, so I tried Java 8 instead, but unfortunately that didn't help,
> then again that's going in the wrong direction.
>
> Not feeling very confident I could figure this one out I went on to the
> final stop: cas.
>
> $ git clone [email protected]:apereo/cas.git
> $ cd cas
> $ ./gradlew build install --stacktrace -x test -x javadoc -x check
>
> Here I followed the build instructions linked to in the README:
> https://apereo.github.io/cas/developer/Build-Process-5X.html
>
> Unfortunately the build process errored out after five minutes:
>
> ./gradlew build install --stacktrace -x test -x javadoc -x check |
> pastebinit
> error: cannot access module-info
>   bad class file: /modules/java.desktop/module-info.class
>     module declaration found in version 52.0 classfile
>     Please remove or make sure it appears in the correct subdirectory of
> the classpath.
> 1 error
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':api:cas-server-core-api-protocol:compileJava'.
> > Compilation failed with exit code 1; see the compiler error output for
> details.
>
> * Try:
> Run with --info or --debug option to get more log output. Run with --scan
> to get full insights.
>
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':api:cas-server-core-api-protocol:compileJava'.
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskEx
> ecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskEx
> ecuter.execute(ExecuteActionsTaskExecuter.java:73)
>         at org.gradle.api.internal.tasks.execution.OutputDirectoryCreat
> ingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
>         at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExec
> uter.execute(SkipUpToDateTaskExecuter.java:59)
>         at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCac
> hingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
>         at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.
> execute(ValidatingTaskExecuter.java:59)
>         at org.gradle.api.internal.tasks.execution.SkipEmptySourceFiles
> TaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
>         at org.gradle.api.internal.tasks.execution.FinalizeInputFilePro
> pertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:
> 44)
>         at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsE
> xecuter.execute(CleanupStaleOutputsExecuter.java:91)
>         at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactS
> tateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
>         at org.gradle.api.internal.tasks.execution.SkipTaskWithNoAction
> sExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
>         at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.
> execute(SkipOnlyIfTaskExecuter.java:54)
>         at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTas
> kExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
>         at org.gradle.api.internal.tasks.execution.CatchExceptionTaskEx
> ecuter.execute(CatchExceptionTaskExecuter.java:34)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$
> EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor$
> RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
> 336)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor$
> RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:
> 328)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.e
> xecute(DefaultBuildOperationExecutor.java:199)
>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(
> DefaultBuildOperationExecutor.java:110)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$
> EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$
> EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$
> TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$
> TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$
> TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$
> TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
>         at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5mifc5NXoWVWTzGSVQC%3D-nM3UEMCc0w3y5MDx9_0yvcww9Q%40mail.gmail.com.

Reply via email to