embedded tomcat startup error cas6.6.x

42 views
Skip to first unread message

Yan Zhou

unread,
Jul 17, 2023, 11:05:54 PM7/17/23
to CAS Community
HI 

i followed doc to this step, but not sure why it failed. I am on Windows and using CAS 6.6.9. it built fine, but when running in embedded tomcat, run into error.

not sure what it tries to do in /etc/cas/templates, I am on Windows, so I am hoping to find where it is specified and change it to Windows path.

thanks in advance!

Yan

C:\apereocas66x\cas-server\webapp\cas-server-webapp-tomcat>"../../gradlew" build bootRun --parallel --offline --configure-on-demand --build-cache --stacktrace
Configuration on demand is an incubating feature.
<-------------> 0% CONFIGURING [1m 24s]
> Task :webapp:cas-server-webapp-tomcat:processBootRunResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':webapp:cas-server-webapp-tomcat:processBootRunResources'.
> Cannot fingerprint input file property 'rootSpec$1': Could not stat file \\etc\cas\templates

Ray Bon

unread,
Jul 18, 2023, 12:29:49 PM7/18/23
to cas-...@apereo.org
Yan,

It looks like you are using cas instead of cas-overlay-template. The main project is for developers. This is for deployers https://github.com/apereo/cas-overlay-template

Ray

On Mon, 2023-07-17 at 12:15 -0700, Yan Zhou wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

Yan Zhou

unread,
Jul 18, 2023, 3:39:38 PM7/18/23
to CAS Community, Ray Bon
HI Ray,

Overlay did work, thx a lot!   Still,  I should be able to run CAS as any CAS developer would,  not sure why i run into this 

this is what I did on my Windows, overlay works fine with additional command line arguments, so I attempted the same on CAS project, 

C:\apereocas66x\cas-server\webapp\cas-server-webapp-tomcat>"../../gradlew" build bootRun --parallel --offline --configure-on-demand --build-cache --stacktrace --args=--spring.profiles.active=standalone,--cas.standalone.configuration-directory=C:\apereocas66x\config

Configuration on demand is an incubating feature.

> Task :api:cas-server-core-api-configuration-model:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\apereocas66x\cas-server\api\cas-server-core-api-configuration-model\src\main\java\org\apereo\cas\configuration\metadata\ConfigurationMetadataGenerator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :support:cas-server-support-thymeleaf:compileJava FAILED
<==========---> 82% EXECUTING [1m 46s]
> :api:cas-server-core-api-configuration-model:generateConfigurationMetadata


In my IntelliJ IDE, it reports this error,  I am sure the CAS project itself has no problem, but I cannot figure out why it is missing Thymeleaf layout dialect jar, and where is this supposed to be specified?

:support:cas-server-support-openid-webflow:test: Could not find nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.1.0 .
Required by:
    project :support:cas-server-support-openid-webflow > project :support:cas-server-support-thymeleaf

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


Thanks,
Yan

Ray Bon

unread,
Jul 18, 2023, 3:50:07 PM7/18/23
to yana...@gmail.com, cas-...@apereo.org
Yan,


There is a step for getting submodules; Was that missed?

Ray

Yan

unread,
Jul 19, 2023, 12:09:28 AM7/19/23
to Ray Bon, cas-...@apereo.org
I did run to get submodules.   Same error.
I am not as familiar with Gradle, so cannot figure out why.  But if anyone knows why, this maybe quite simple. I would appreciate the help!

Yan

C:\apereocas66x\cas-server\support\cas-server-support-thymeleaf>"../../gradlew" build

Configuration on demand is an incubating feature.
> Task :support:cas-server-support-thymeleaf:compileJava FAILED


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':support:cas-server-support-thymeleaf:compileJava'.
> Could not resolve all files for configuration ':support:cas-server-support-thymeleaf:compileClasspath'.

   > Could not find nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.1.0 .
     Searched in the following locations:
       - file:/C:/Users/yan.x.zhou/.m3/repository/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/3.1.0 /thymeleaf-layout-dialect-3.1.0 .pom
       - https://repo.maven.apache.org/maven2/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/3.1.0 /thymeleaf-layout-dialect-3.1.0 .pom
       - https://oss.sonatype.org/content/repositories/releases/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/3.1.0 /thymeleaf-layout-dialect-3.1.0 .pom
       - https://repo.spring.io/milestone/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/3.1.0 /thymeleaf-layout-dialect-3.1.0 .pom
     Required by:
         project :support:cas-server-support-thymeleaf

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 10s
168 actionable tasks: 2 executed, 166 up-to-date

C:\apereocas66x\cas-server\support\cas-server-support-thymeleaf>

Reply all
Reply to author
Forward
0 new messages