I am brand new to CAS and tried to read through all the documentation but I 
have some questions about how to get up and running.  Here is what I've 
done so far:

1) https://github.com/apereo/cas-overlay-template
- I grabbed this repo, changed the pom.xml app.server property to "-jetty" 
and built it using "build package".

2) I take cas.war and drop it in to my standalone Jetty 9.4.4 webapps 
directory and get errors on startup (see end of this message).
- However if I start Jetty, wait for it to come up, and THEN drop in my 
cas.war everything seems to deploy properly and I can hit 
http://localhost:8080/cas and login.

Am I on the right path here?  How can I get my cas.war to deploy without 
throwing errors in Jetty?  My initial goal is just to use the CAS filter in 
the web.xml of my hello-world sample app in Jetty.  Any resources or 
examples of doing something like this would be appreciated.  Most of the 
stuff I've found is from several years back.


D:\jetty-distribution-9.4.4.v20170414>java -jar start.jar
2017-05-31 20:04:22.029:INFO::main: Logging initialized @647ms to 
org.eclipse.jetty.util.log.StdErrLog
2017-05-31 20:04:22.179:WARN:oejs.HomeBaseWarning:main: This instance of 
Jetty is not running from a separate {jetty.base} directory, this is not 
reco
mmended.  See documentation at 
http://www.eclipse.org/jetty/documentation/current/startup.html
2017-05-31 20:04:22.209:INFO:oejs.Server:main: jetty-9.4.4.v20170414
2017-05-31 20:04:22.229:INFO:oejdp.ScanningAppProvider:main: Deployment 
monitor [file:///D:/jetty-distribution-9.4.4.v20170414/webapps/] at 
interval 1

2017-05-31 20:04:26.384:INFO:oeja.AnnotationConfiguration:main: Scanning 
elapsed time=3024ms
2017-05-31 20:04:27.698:INFO:oejshC.cas_server_webapp_jetty:main: 2 Spring 
WebApplicationInitializers detected on classpath
Ignoring Class-Path entry xml-apis.jar found 
inD:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\serializer-2.7.2.jar
as 
D:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xml-apis.jar
 
does not exist
Ignoring Class-Path entry xercesImpl.jar found 
inD:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xalan-2.7.2.jar
 
as
D:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xercesImpl.jar
 
does not exist
Ignoring Class-Path entry xml-apis.jar found 
inD:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xalan-2.7.2.jar
 
as D:
\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xml-apis.jar
 
does not exist
Ignoring Class-Path entry serializer.jar found 
inD:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\xalan-2.7.2.jar
 
as
D:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty\WEB-INF\lib\serializer.jar
 
does not exist
2017-05-31 20:04:29.092:WARN:oeja.ServletContainerInitializersStarter:main:
org.springframework.boot.devtools.restart.SilentExitExceptionHandler$SilentExitException
        at 
org.springframework.boot.devtools.restart.SilentExitExceptionHandler.exitCurrentThread(SilentExitExceptionHandler.java:90)
        at 
org.springframework.boot.devtools.restart.Restarter.immediateRestart(Restarter.java:184)
        at 
org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:163)
        at 
org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:552)
        at 
org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationStartingEvent(RestartApplicationListener.java:67)
        at 
org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationEvent(RestartApplicationListener.java:45)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
        at 
org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:68)
        at 
org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)
        at 
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
        at 
org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
        at 
org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:63)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:329)
        at 
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
        at 
org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
        at 
org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
        at 
org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
        at 
org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:437)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
        at 
org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:561)
        at 
org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:236)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.server.Server.start(Server.java:452)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:419)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1511)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1438)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:222)
        at org.eclipse.jetty.start.Main.start(Main.java:486)
        at org.eclipse.jetty.start.Main.main(Main.java:79)
2017-05-31 20:04:29.106:WARN:oejw.WebAppContext:main: Failed startup of 
context 
o.e.j.w.WebAppContext@4566e5bd{/cas-server-webapp-jetty,file:///D:/jet
ty-distribution-9.4.4.v20170414/webapps/cas-server-webapp-jetty/,UNAVAILABLE}{D:\jetty-distribution-9.4.4.v20170414\webapps\cas-server-webapp-jetty}
java.lang.RuntimeException: 
org.springframework.boot.devtools.restart.SilentExitExceptionHandler$SilentExitException
        at 
org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:68)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:329)
        at 
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
        at 
org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
        at 
org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
        at 
org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
        at 
org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:437)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
        at 
org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:561)
        at 
org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:236)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.server.Server.start(Server.java:452)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:419)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1511)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1438)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:222)
        at org.eclipse.jetty.start.Main.start(Main.java:486)
        at org.eclipse.jetty.start.Main.main(Main.java:79)
Caused by:
org.springframework.boot.devtools.restart.SilentExitExceptionHandler$SilentExitException
        at 
org.springframework.boot.devtools.restart.SilentExitExceptionHandler.exitCurrentThread(SilentExitExceptionHandler.java:90)
        at 
org.springframework.boot.devtools.restart.Restarter.immediateRestart(Restarter.java:184)
        at 
org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:163)
        at 
org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:552)
        at 
org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationStartingEvent(RestartApplicationListener.java:67)
        at 
org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationEvent(RestartApplicationListener.java:45)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
        at 
org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:68)
        at 
org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
        at 
org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)
        at 
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
        at 
org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
        at 
org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:63)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:329)
        at 
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
        at 
org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
        at 
org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
        at 
org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
        at 
org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:437)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
        at 
org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:561)
        at 
org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:236)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
        at org.eclipse.jetty.server.Server.start(Server.java:452)
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
        at org.eclipse.jetty.server.Server.doStart(Server.java:419)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1511)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1438)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:222)
        at org.eclipse.jetty.start.Main.start(Main.java:486)
        at org.eclipse.jetty.start.Main.main(Main.java:79)
2017-05-31 20:04:29.146:INFO:oejs.AbstractConnector:main: Started 
ServerConnector@51351f28{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2017-05-31 20:04:29.147:INFO:oejs.Server:main: Started @7759ms


-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
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/c3026b7f-35c8-4b71-9eb8-fe0cf41941d4%40apereo.org.

Reply via email to