Size: a a a

Spring Framework and more

2019 March 15

A

Abilmansur in Spring Framework and more
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [manager-asiacredit] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
источник

N

Nolol in Spring Framework and more
Это не то
источник

A

Abilmansur in Spring Framework and more
15-Mar-2019 12:09:24.926 WARNING [http-nio-8080-exec-25] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [manager-asiacredit] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
15-Mar-2019 12:09:24.937 WARNING [http-nio-8080-exec-25] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [manager-asiacredit] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
15-Mar-2019 12:09:26.705 INFO [Abandoned connection cleanup thread] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1383)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1036)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
источник

N

Nolol in Spring Framework and more
Это спринг Бут?
источник

N

Nolol in Spring Framework and more
Порты стоят разные в application.properties
источник

A

Abilmansur in Spring Framework and more
Nolol
Это спринг Бут?
Да
источник

N

Nolol in Spring Framework and more
И ты ложишь джарки на томката?
источник

A

Abilmansur in Spring Framework and more
Nolol
И ты ложишь джарки на томката?
Вар
источник

N

Nolol in Spring Framework and more
Блин, никогда так не делал. Это условие такое, что сбиодать варку через спринг Бут и закинуть на томкат?
источник

N

Nolol in Spring Framework and more
Я без Бута билдал варки и закидывал на томкат. Если Бут то тупо две джарки ранаешь, только порты другие пропиши
источник

A

Abilmansur in Spring Framework and more
Nolol
Блин, никогда так не делал. Это условие такое, что сбиодать варку через спринг Бут и закинуть на томкат?
Так сказали сделать
источник

N

Nolol in Spring Framework and more
источник

A

Abilmansur in Spring Framework and more
Я по этой и делал
источник

N

Nolol in Spring Framework and more
А одна варка деплоится?
источник

A

Andrii in Spring Framework and more
Nolol
Я без Бута билдал варки и закидывал на томкат. Если Бут то тупо две джарки ранаешь, только порты другие пропиши
если у тебя один продакш сервер с одним открытым портом - проще и лучше - Томкат
источник

N

Nolol in Spring Framework and more
@andrii_ls я про опыт рассказал :) просто через Бут варки билдать, зачем? Просто через спринг и все.
источник

RS

Ruslan Stelmachenko in Spring Framework and more
Abilmansur
15-Mar-2019 12:09:24.926 WARNING [http-nio-8080-exec-25] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [manager-asiacredit] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
15-Mar-2019 12:09:24.937 WARNING [http-nio-8080-exec-25] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [manager-asiacredit] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
15-Mar-2019 12:09:26.705 INFO [Abandoned connection cleanup thread] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1383)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1036)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
это тоже все не то. это обычная пурга томката, связанная с тем, почему собственно все стараются уйти от такого способа деплоя - приложения влияют друг на друга и делают мемори лики.

но тут ни слова про то, почему у вас одно из приложений не запускается.

вообще я не уверен, что порт из application.properties имеет хоть малейшее отношение к такому типу деплоя. он для embedded сервера применяется. а порт для внешнего контейнера в xml файлах томката для конкретного контекста. но могу ошибаться, возможно бут делает какую-то магию и создает context.xml для томката или что-то еще.
источник

MG

Mikhail Gerun in Spring Framework and more
@abilmansur4 spring.jmx.defualt-domain сделать разным для двух проектов
источник

A

Abilmansur in Spring Framework and more
Mikhail Gerun
@abilmansur4 spring.jmx.defualt-domain сделать разным для двух проектов
Уже сделал кстати. Спасибо
источник

f

flash in Spring Framework and more
flash:
Can anyone provide a resource to
How should I bind form data to bean class ?
источник