[cas-user] Deployiment error on Wildfly 14.0.1- CAS 5.3.3

177 views
Skip to first unread message

Filipa Deus

unread,
Oct 3, 2018, 10:07:28 AM10/3/18
to CAS Community
Hi,

I'm trying to deploy cas 5.3.3 overlay template with Wildfly 14.0.1 but  I'm always having errors.

I excluded embedded tomcat  and changed the app.server to blank.

Deployment fails with following error:

14:58:14,539 ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool -- 95) Application startup failed: java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.core.io.VfsUtils.invokeVfsMethod(VfsUtils.java:100)
at org.springframework.core.io.VfsUtils.getFile(VfsUtils.java:172)
at org.springframework.core.io.VfsResource.getFile(VfsResource.java:90)
at org.apereo.cas.util.CasVersion.getDateTime(CasVersion.java:59)
at org.apereo.cas.util.SystemUtils.getSystemInfo(SystemUtils.java:50)
at org.apereo.cas.util.spring.boot.AbstractCasBanner.collectEnvironmentInfo(AbstractCasBanner.java:63)
at org.apereo.cas.util.spring.boot.AbstractCasBanner.printBanner(AbstractCasBanner.java:37)
at org.springframework.boot.SpringApplicationBannerPrinter.print(SpringApplicationBannerPrinter.java:71)
at org.springframework.boot.SpringApplication.printBanner(SpringApplication.java:505)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:298)
at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:154)
at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:134)
at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:87)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:203)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:485)

14:59:49,060 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "cas.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"cas.war\".undertow-deployment" => "java.lang.RuntimeException: java.lang.IllegalArgumentException: object is not an instance of declaring class
    Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: object is not an instance of declaring class
    Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class"}}
14:59:49,094 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "cas.war" (runtime-name : "cas.war")
14:59:49,094 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."cas.war".undertow-deployment: java.lang.RuntimeException: java.lang.IllegalArgumentException: object is not an instance of declaring class


Am I missing something? Does anyone know what could be the problem?

--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/e4aea998-de1c-4dc3-b32f-e3a5753e2ca3%40apereo.org.

Tzoreol

unread,
Oct 22, 2018, 4:22:37 AM10/22/18
to CAS Community
Hello,

Got the same error with CAS 5.2.1 and JBoss EAP 6.4.21.GA (in a docker container). It worked fine 3 weeks ago (not sure of EAP version I used). I switched back to a docker container with JBoss EAP 6.4.18.GA and got it worked again.
So I think there is an update that is uncompatible with CAS. Try to downgrade your wildfly.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/b9891f5b-c0a0-49e9-93bc-a8c91703ed7a%40apereo.org.

kristiaan...@gmail.com

unread,
Dec 4, 2018, 7:43:42 AM12/4/18
to jasig-cas-user
We get the same error on Jboss EAP 7.1.5.

This was introduced with the resolution to this problem: https://github.com/jbossas/jboss-vfs/pull/28
This is the proposed resolution: https://github.com/jbossas/jboss-vfs/pull/30 but it requires a change in VfsUtils from Spring. No issue found in the spring Jira at the moment, I just logged it here: https://jira.spring.io/browse/SPR-17563

Vikash Chandra Ansh

unread,
Aug 6, 2019, 3:58:51 PM8/6/19
to CAS Community
Is there any other alternative

--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/35fb5564-a047-4078-99c4-f62e140d0985%40apereo.org.

Ravi MCA

unread,
Oct 16, 2019, 8:46:28 AM10/16/19
to CAS Community, fmd...@gmail.com
This is happening WildFly 14 and above versions. Stuck with this. Is anybody found a solution.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/2eb40bf3-ad54-42b0-98aa-a485ab38d16e%40apereo.org.

Ravi MCA

unread,
Oct 16, 2019, 8:47:23 AM10/16/19
to CAS Community, fmd...@gmail.com
have you got solution?

--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/e6638dc3-f036-4089-b2bd-b4c4052f8483%40apereo.org.
Reply all
Reply to author
Forward
0 new messages