I have one more question, I have already set app.server etmpy, it seems 
that is still got embed tomcat:
<app.server></app.server>
jar tf ./target/cas.war|grep -i tomcat
WEB-INF/lib/spring-boot-starter-tomcat-1.5.18.RELEASE.jar
WEB-INF/lib/tomcat-embed-websocket-8.5.47.jar
WEB-INF/lib/tomcat-embed-core-8.5.47.jar
WEB-INF/lib/tomcat-embed-el-8.5.47.jar
WEB-INF/lib/tomcat-annotations-api-8.5.47.jar

And I can still run it directly:
$ java -jar ./target/cas.war

How can I build a clean cas.war without embed tomcat?  


He Vincent在 2021年7月30日星期五下午4:38:52 [UTC+8]寫道:

> step1:
> I download completed new cas-overlay-template-5.3:
> step 2: vi pom.xml
> I just did one change: remove -tomcat since I will use external tomcat:
> <app.server></app.server>
> step 3: Build the cas.war
>  ./build.sh clean
> ./build.sh package
> ./build.sh copy
> Step 4: copy cas.war to tomcat
> step 5: starttup tomcat
> step 6: shutdown it after a few minutes
> then I got the WARNING:
>
> 30-Jul-2021 16:29:33.895 WARNING [localhost-startStop-2] 
> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The 
> web application [cas] appears to have started a thread named [Thread-9] but 
> has failed to stop it. This is very likely to create a memory leak. Stack 
> trace of thread:
>  sun.nio.fs.LinuxWatchService.poll(Native Method)
>  sun.nio.fs.LinuxWatchService.access$600(LinuxWatchService.java:47)
>  sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:314)
>  java.lang.Thread.run(Thread.java:748)
> 30-Jul-2021 16:29:33.896 WARNING [localhost-startStop-2] 
> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The 
> web application [cas] appears to have started a thread named [config] but 
> has failed to stop it. This is very likely to create a memory leak. Stack 
> trace of thread:
>  sun.misc.Unsafe.park(Native Method)
>  java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
>
>  
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
>
>  
> java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
>
>  java.util.concurrent.LinkedBlockingDeque.take(LinkedBlockingDeque.java:680)
>  sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:118)
>  org.apereo.cas.util.io.PathWatcherService.run(PathWatcherService.java:67)
>  java.lang.Thread.run(Thread.java:748)
> 30-Jul-2021 16:29:33.958 INFO [main] 
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler 
> ["http-nio-8080"]
> 30-Jul-2021 16:29:33.966 INFO [main] 
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler 
> ["https-jsse-nio-9000"]
> 30-Jul-2021 16:29:33.970 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["http-nio-8080"]
> 30-Jul-2021 16:29:33.972 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["https-jsse-nio-9000"]
>
>
>

-- 
- 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/0a2f2f08-0a5b-4d51-8c32-b7e077e03673n%40apereo.org.

Reply via email to