Re: [cas-user] run CAS 5.0.x with spring boot

2017-02-16 Thread Chris
Dear D,

Thanks for your reply.

The message below may be off-topic.

Do you have any idea on performance advise when running in standalone war?  
It seem the performance running in real tomcat is better.  e.g., Do you 
know how to make CAS running in embedded tomcat with libapr?

Thanks.


Chris

On Thursday, February 16, 2017 at 8:30:46 PM UTC+8, dkopy...@unicon.net 
wrote:
>
> This is a known issue with Spring Boot Maven and Gradle plugins where it 
> fails to run with a gigantic classpath size is generated. At this time the 
> best way to run CAS in a embedded mode is to build and 'java -jar 
> target/cas.war'
>
> Best,
> D.
>
> On Feb 15, 2017, 21:34 -0500, Chris >, wrote:
>
> Dear all,
>
> I followed the cas-overlay-template in github and I would run the CAS with 
> spring boot.  However, when I try to add other dependency, e.g, ldap, it 
> will failed with Spring boot but run fine with stand alone jar.
>
> Spring boot fail output:
>
> # ./mvnw clean package spring-boot:run -T 5 -X
>   :
>   :
>   :
> [ERROR] Failed to execute goal 
> org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run 
> (default-cli) on project cas-overlay: Could not exec java: Application 
> finished with exit code: 1 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run 
> (default-cli) on project cas-overlay: Could not exec java
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at 
> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
> at 
> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Could not exec 
> java
> at 
> org.springframework.boot.maven.RunMojo.runWithForkedJvm(RunMojo.java:79)
> at 
> org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm(AbstractRunMojo.java:261)
> at 
> org.springframework.boot.maven.AbstractRunMojo.run(AbstractRunMojo.java:230)
> at 
> org.springframework.boot.maven.AbstractRunMojo.execute(AbstractRunMojo.java:170)
> at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> ... 11 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Application 
> finished with exit code: 1
> at 
> org.springframework.boot.maven.RunMojo.runWithForkedJvm(RunMojo.java:75)
> ... 16 more
> [ERROR]
> [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/MojoExecutionException
>
>
> my machine:
>
> # ./mvnw -V
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
> 2015-11-11T00:41:47+08:00)
> Maven home: 
> /root/.m2/wrapper/dists/apache-maven-3.3.9-bin/5idsp2re5hobq3cp5qhqv0ru0h/apache-maven-3.3.9
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_HK, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-100-generic", arch: "amd64", family: 
> "unix"
>
> my pom.xml
>
>
> # cat pom.xml
> 
> http://maven.apache.org/POM/4.0.0";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd ">
> 4.0.0
> org.apereo.cas
> cas-overlay
> war
> 1.0
>
> 
> 
> 
> com.rimerosolutions.maven.plugins
> wrapper-maven-plugin
> 0.0.4
> 
> true
> MD5
> 
> 
> 
> org.springframework.boot
> spring-boot-maven-plugin
> ${springboot.version}
> 
> 
> org.springf

Re: [cas-user] run CAS 5.0.x with spring boot

2017-02-16 Thread dkopylenko
This is a known issue with Spring Boot Maven and Gradle plugins where it fails 
to run with a gigantic classpath size is generated. At this time the best way 
to run CAS in a embedded mode is to build and 'java -jar target/cas.war'

Best,
D.

On Feb 15, 2017, 21:34 -0500, Chris , wrote:
> Dear all,
>
> I followed the cas-overlay-template in github and I would run the CAS with 
> spring boot. However, when I try to add other dependency, e.g, ldap, it will 
> failed with Spring boot but run fine with stand alone jar.
>
> Spring boot fail output:
>
> # ./mvnw clean package spring-boot:run -T 5 -X
> :
> :
> :
> [ERROR] Failed to execute goal 
> org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run 
> (default-cli) on project cas-overlay: Could not exec java: Application 
> finished with exit code: 1 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.springframework.boot:spring-boot-maven-plugin:1.4.2.RELEASE:run 
> (default-cli) on project cas-overlay: Could not exec java
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at 
> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
> at 
> org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Could not exec java
> at org.springframework.boot.maven.RunMojo.runWithForkedJvm(RunMojo.java:79)
> at 
> org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm(AbstractRunMojo.java:261)
> at 
> org.springframework.boot.maven.AbstractRunMojo.run(AbstractRunMojo.java:230)
> at 
> org.springframework.boot.maven.AbstractRunMojo.execute(AbstractRunMojo.java:170)
> at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> ... 11 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Application 
> finished with exit code: 1
> at org.springframework.boot.maven.RunMojo.runWithForkedJvm(RunMojo.java:75)
> ... 16 more
> [ERROR]
> [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/MojoExecutionException
>
>
> my machine:
>
> # ./mvnw -V
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
> 2015-11-11T00:41:47+08:00)
> Maven home: 
> /root/.m2/wrapper/dists/apache-maven-3.3.9-bin/5idsp2re5hobq3cp5qhqv0ru0h/apache-maven-3.3.9
> Java version: 1.8.0_111, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_HK, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-100-generic", arch: "amd64", family: "unix"
>
> my pom.xml
>
>
> # cat pom.xml
> 
> http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd ">
> 4.0.0
> org.apereo.cas
> cas-overlay
> war
> 1.0
>
> 
> 
> 
> com.rimerosolutions.maven.plugins
> wrapper-maven-plugin
> 0.0.4
> 
> true
> MD5
> 
> 
> 
> org.springframework.boot
> spring-boot-maven-plugin
> ${springboot.version}
> 
> org.springframework.boot.loader.WarLauncher
> true
> 
> 
> 
> org.apache.maven.plugins
> maven-war-plugin
> 2.6
> 
> cas
> false
> false
> 
> false
> ${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp/META-INF/MANIFEST.MF
> 
> 
> 
> 
> org.apereo.cas
> cas-server-webapp
> 
> 
> 
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 3.3
> 
> 
> cas
> 
>
> 
> 
> org.apereo.cas
> cas-server-webapp
> ${cas.version}
> war
> runtime
> 
> 
> org.apereo.cas
> cas-server-support-ldap
> ${cas.version}
> 
> 
> org.apereo.cas
> cas-server-support-saml
> ${cas.version}
> 
> 
> org.apereo.cas
> cas-server-support-duo
> ${cas.version}
> 
> 
> org.apereo.cas
> cas-server-support-json-service-registry
> ${cas.version}
> 
> 
> org.apereo.cas
> cas-server-support-hazelcast-ticket-registry
> ${cas.version}
> 
> 
>
> 
> 5.0.2
> 1.4.2.RELEASE
> 1.8
> 1.8
> UTF-8
> 
>
> 
> 
> sonaty