Добрый день.
Не получилось пройти данный урок.Возникает ошибка.
Jmix version: 2.1.1
Jmix Studio plugin version: 2.1.1-233
IntelliJ version: IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Что делать ? Как исправить ?
Добрый день.
Не получилось пройти данный урок.Возникает ошибка.
Jmix version: 2.1.1
Jmix Studio plugin version: 2.1.1-233
IntelliJ version: IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Что делать ? Как исправить ?
Александр, добрый день!
Попробуйте заключить второй аргумент в кавычки:
./gradlew "-Pvadin.productionMode=true" bootJar
По результатам отпишитесь здесь пожалуйста.
С уважением,
Константин
Дело сдвинулось с мёртвой точки.
Но тут же наткнулся на новую проблему:
При запуске jar файла получаю ошибку:
При этом если приложение запускать из IDE, то запускается.
Приложите пожалуйста сюда весь вывод в консоль с ошибкой, в текстовом виде, обернув в тройные обратные кавычки (```)
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.4)
2023-12-30T20:13:09.168+03:00 INFO 24960 --- [ main] r.e.p.ProjectManagementApplication : Starting ProjectManagementApplication v0.0.1 using Java 17.0.9 with PID 24960
(C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\build\libs\jmixpm-0.0.1.jar started by dcvfk in C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\buil
d\libs)
2023-12-30T20:13:09.171+03:00 INFO 24960 --- [ main] r.e.p.ProjectManagementApplication : No active profile set, falling back to 1 default profile: "default"
2023-12-30T20:13:11.298+03:00 INFO 24960 --- [ main] io.jmix.core.JmixModulesProcessor : Using Jmix modules: [io.jmix.core, io.jmix.security, io.jmix.flowui, io.jmix.s
ecurityflowui, io.jmix.data, io.jmix.datatools, io.jmix.gridexportflowui, io.jmix.datatoolsflowui, io.jmix.eclipselink, io.jmix.flowuidata, io.jmix.localfs, io.jmix.securitydata, ru.edu
cation.projectmanagement]
2023-12-30T20:13:11.696+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the
affected code with '-parameters' instead or avoid its introspection: io.jmix.core.impl.ManagedResourceAspect
2023-12-30T20:13:12.427+03:00 INFO 24960 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-12-30T20:13:12.440+03:00 INFO 24960 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-12-30T20:13:12.440+03:00 INFO 24960 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.13]
2023-12-30T20:13:12.592+03:00 INFO 24960 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-12-30T20:13:12.594+03:00 INFO 24960 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3092 ms
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2023-12-30T20:13:12.706+03:00 INFO 24960 --- [ main] i.j.c.i.s.JmixModulesClasspathScanner : Classpath scan completed in 74 ms
2023-12-30T20:13:12.736+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the
affected code with '-parameters' instead or avoid its introspection: io.jmix.core.CoreProperties
2023-12-30T20:13:12.755+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the
affected code with '-parameters' instead or avoid its introspection: io.jmix.core.CoreProperties$PessimisticLock
2023-12-30T20:13:13.010+03:00 INFO 24960 --- [ main] io.jmix.core.impl.MetadataLoader : Metadata initialized in 149 ms
2023-12-30T20:13:13.141+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the
affected code with '-parameters' instead or avoid its introspection: io.jmix.data.DataProperties
2023-12-30T20:13:13.222+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the
affected code with '-parameters' instead or avoid its introspection: io.jmix.core.session.SessionProperties
2023-12-30T20:13:13.226+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.jmix.core.rememberme.Reme
mberMeProperties
2023-12-30T20:13:13.390+03:00 WARN 24960 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.jmix.security.SecurityPro
perties
2023-12-30T20:13:13.639+03:00 INFO 24960 --- [ main] c.v.f.s.VaadinServletContextInitializer : Search for VaadinAppShell took 52 ms
2023-12-30T20:13:18.316+03:00 INFO 24960 --- [ main] c.v.f.s.VaadinServletContextInitializer : Search for subclasses and classes with annotations took 4518 ms
2023-12-30T20:13:18.390+03:00 INFO 24960 --- [ main] c.v.b.d.startup.DevModeStartupListener : Starting dev-mode updaters in C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement folder.
2023-12-30T20:13:18.437+03:00 INFO 24960 --- [ main] c.v.f.s.f.s.FullDependenciesScanner : Visited 155 classes. Took 27 ms.
2023-12-30T20:13:18.439+03:00 INFO 24960 --- [ main] c.v.f.s.frontend.BundleValidationUtil : Checking if a development mode bundle build is needed
2023-12-30T20:13:18.469+03:00 INFO 24960 --- [ main] c.v.f.s.frontend.BundleValidationUtil : Dependency ace-builds is missing from the bundle
2023-12-30T20:13:18.469+03:00 INFO 24960 --- [ main] c.v.f.s.frontend.BundleValidationUtil : A development mode bundle build is needed
2023-12-30T20:13:18.609+03:00 INFO 24960 --- [onPool-worker-1] c.v.f.s.frontend.TaskUpdatePackages : Skipping `pnpm install` because the frontend packages are already installed in the folder 'C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\node_modules' and
the hash in the file 'C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\node_modules\.vaadin\vaadin.json' is the same as in 'package.json'
2023-12-30T20:13:18.609+03:00 INFO 24960 --- [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Copying frontend resources from jar files ...
2023-12-30T20:13:18.627+03:00 INFO 24960 --- [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Visited 0 resources. Took 17 ms.
2023-12-30T20:13:18.738+03:00 ERROR 24960 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Exception sending context initialized event to listener instance of class [com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener]
java.lang.RuntimeException: Unable to initialize com.vaadin.flow.spring.VaadinServletContextInitializer$DevModeServletContextListener
at com.vaadin.flow.spring.VaadinServletContextInitializer$FailFastServletContextListener.contextInitialized(VaadinServletContextInitializer.java:191) ~[vaadin-spring-24.1.12.jar!/:na]
at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.lambda$contextInitialized$0(VaadinServletContextInitializer.java:213) ~[vaadin-spring-24.1.12.jar!/:na]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na]
at com.vaadin.flow.spring.VaadinServletContextInitializer$CompositeServletContextListener.contextInitialized(VaadinServletContextInitializer.java:213) ~[vaadin-spring-24.1.12.jar!/:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4420) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4860) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322) ~[tomcat-embed-core-10.1.13.jar!/:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-10.1.13.jar!/:na]
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) ~[na:na]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:846) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322) ~[tomcat-embed-core-10.1.13.jar!/:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-10.1.13.jar!/:na]
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) ~[na:na]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:241) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:918) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:485) ~[tomcat-embed-core-10.1.13.jar!/:na]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:489) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:183) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:602) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298) ~[spring-boot-3.1.4.jar!/:3.1.4]
at ru.education.projectmanagement.ProjectManagementApplication.main(ProjectManagementApplication.java:32) ~[classes!/:0.0.1]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[jmixpm-0.0.1.jar:0.0.1]
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalStateException:
Failed to find the following files:
- ./generated/jar-resources/gridConnector.js
- ./generated/jar-resources/src/code-editor/jmix-code-editor.js
- ./generated/jar-resources/vaadin-grid-flow-selection-column.js
- ./generated/jar-resources/messageListConnector.js
- ./generated/jar-resources/vaadin-big-decimal-field.js
- ./generated/jar-resources/selectConnector.js
- ./generated/jar-resources/src/value-picker-button/jmix-value-picker-button.js
- ./generated/jar-resources/flow-component-renderer.js
- ./generated/jar-resources/src/multi-select-combo-box-picker/jmix-multi-select-combo-box-picker.js
- ./generated/jar-resources/lit-renderer.ts
- ./generated/jar-resources/src/combo-box-picker/jmix-combo-box-picker.js
- ./generated/jar-resources/vaadin-time-picker/timepickerConnector.js
- ./generated/jar-resources/src/upload-button/jmix-upload-button.js
- ./generated/jar-resources/contextMenuConnector.js
- ./generated/jar-resources/src/timer/jmix-timer.js
- ./generated/jar-resources/buttonFunctions.js
- ./generated/jar-resources/src/uploadfield/jmix-upload-field.js
- ./generated/jar-resources/dndConnector.js
- ./generated/jar-resources/contextMenuTargetConnector.js
- ./generated/jar-resources/datepickerConnector.js
- ./generated/jar-resources/comboBoxConnector.js
- ./generated/jar-resources/tooltip.ts
- ./generated/jar-resources/menubarConnector.js
- ./generated/jar-resources/virtualListConnector.js
- ./generated/jar-resources/src/login-form/jmix-login-form.js
- ./generated/jar-resources/src/tabsheet/jmix-tabsheet.js
- ./generated/jar-resources/src/value-picker/jmix-value-picker.js
Locations searched were:
- `C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\frontend` in this project
- `META-INF/frontend` in included JARs
- `META-INF/resources/frontend` in included JARs
Please, double check that those files exist. If you use a custom directory for your resource files instead of default `frontend` folder then make sure you it's correctly configured (e.g. set 'vaadin.frontend.frontend.folder' property)
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[na:na]
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[na:na]
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[na:na]
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[na:na]
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[na:na]
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[na:na]
Caused by: java.lang.IllegalStateException:
Failed to find the following files:
- ./generated/jar-resources/gridConnector.js
- ./generated/jar-resources/src/code-editor/jmix-code-editor.js
- ./generated/jar-resources/vaadin-grid-flow-selection-column.js
- ./generated/jar-resources/messageListConnector.js
- ./generated/jar-resources/vaadin-big-decimal-field.js
- ./generated/jar-resources/selectConnector.js
- ./generated/jar-resources/src/value-picker-button/jmix-value-picker-button.js
- ./generated/jar-resources/flow-component-renderer.js
- ./generated/jar-resources/src/multi-select-combo-box-picker/jmix-multi-select-combo-box-picker.js
- ./generated/jar-resources/lit-renderer.ts
- ./generated/jar-resources/src/combo-box-picker/jmix-combo-box-picker.js
- ./generated/jar-resources/vaadin-time-picker/timepickerConnector.js
- ./generated/jar-resources/src/upload-button/jmix-upload-button.js
- ./generated/jar-resources/contextMenuConnector.js
- ./generated/jar-resources/src/timer/jmix-timer.js
- ./generated/jar-resources/buttonFunctions.js
- ./generated/jar-resources/src/uploadfield/jmix-upload-field.js
- ./generated/jar-resources/dndConnector.js
- ./generated/jar-resources/contextMenuTargetConnector.js
- ./generated/jar-resources/datepickerConnector.js
- ./generated/jar-resources/comboBoxConnector.js
- ./generated/jar-resources/tooltip.ts
- ./generated/jar-resources/menubarConnector.js
- ./generated/jar-resources/virtualListConnector.js
- ./generated/jar-resources/src/login-form/jmix-login-form.js
- ./generated/jar-resources/src/tabsheet/jmix-tabsheet.js
- ./generated/jar-resources/src/value-picker/jmix-value-picker.js
Locations searched were:
- `C:\╦шўэ√х Їрщы√\╨рчЁрсюЄър\Java\╙ўхсэ√х яЁюхъЄ√\ProjectManagement\frontend` in this project
- `META-INF/frontend` in included JARs
- `META-INF/resources/frontend` in included JARs
Please, double check that those files exist. If you use a custom directory for your resource files instead of default `frontend` folder then make sure you it's correctly configured (e.g. set 'vaadin.frontend.frontend.folder' property)
at com.vaadin.flow.server.frontend.AbstractUpdateImports.getUniqueEs6ImportPaths(AbstractUpdateImports.java:548) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.flow.server.frontend.AbstractUpdateImports.getModuleLines(AbstractUpdateImports.java:578) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.flow.server.frontend.AbstractUpdateImports.process(AbstractUpdateImports.java:280) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.flow.server.frontend.AbstractUpdateImports.run(AbstractUpdateImports.java:137) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.flow.server.frontend.TaskUpdateImports.execute(TaskUpdateImports.java:88) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:312) ~[flow-server-24.1.12.jar!/:24.1.12]
at com.vaadin.base.devserver.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:352) ~[vaadin-dev-server-24.1.12.jar!/:na]
at com.vaadin.base.devserver.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:293) ~[vaadin-dev-server-24.1.12.jar!/:na]
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[na:na]
... 6 common frames omitted
2023-12-30T20:13:19.173+03:00 ERROR 24960 --- [ main] o.apache.catalina.core.StandardContext : One or more listeners failed to start. Full details will be found in the appropriate container log file
2023-12-30T20:13:19.174+03:00 ERROR 24960 --- [ main] o.apache.catalina.core.StandardContext : Context [] startup failed due to previous errors
2023-12-30T20:13:19.262+03:00 INFO 24960 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-12-30T20:13:19.266+03:00 WARN 24960 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server
2023-12-30T20:13:19.278+03:00 INFO 24960 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-12-30T20:13:19.302+03:00 ERROR 24960 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:164) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:602) ~[spring-context-6.0.12.jar!/:6.0.12]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298) ~[spring-boot-3.1.4.jar!/:3.1.4]
at ru.education.projectmanagement.ProjectManagementApplication.main(ProjectManagementApplication.java:32) ~[classes!/:0.0.1]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[jmixpm-0.0.1.jar:0.0.1]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[jmixpm-0.0.1.jar:0.0.1]
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:489) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:183) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161) ~[spring-boot-3.1.4.jar!/:3.1.4]
... 16 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions(TomcatWebServer.java:187) ~[spring-boot-3.1.4.jar!/:3.1.4]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[spring-boot-3.1.4.jar!/:3.1.4]
... 21 common frames omitted
У вас опечатка в команде сборки: надо не “vadin” а “vaadin”. Поэтому JAR собрался не для продакшн и выдает ошибку при запуске.
Точно. Так и есть, опечатка. Теперь работает как надо. Спасибо !