Vaadin是一个用于Web应用程序开发的开源平台。 Vaadin平台包括一组Web组件,Java Web框架和一组工具。
在 Vaadin 中,可以在启动时在推送注释中指定传输协议。 @Push(运输 = Transport.LONG_POLLING) 效果很好,但我想检查 URI ...
使用 Vaadin 24: 我尝试使用 GridContextMenu grid.addContextMenu(),它通过右键单击打开,但是它不会选择我单击的行,并且我在 GridContextMenu 上找不到此类选项
如何从普通 Servlet 访问 VaadinSession?
我尝试过: @WebServlet(urlPatterns = "/TestServlet") 公共类 TestServlet 扩展 HttpServlet { @覆盖 protected void doGet(HttpServletRequest 请求, HttpServletResponse 响应) 抛出
如何修改Vaadin MessageInput文本区域占位符/按钮内容?
为什么没有直接修改 MessageInput 的内容: 文本区域的占位符内容(我想用您的查询替换消息) 发送按钮文本(我想用 Sea 替换 Send...
如何使用 cypress 测试 vaadin-combo-box?
我尝试在 cypress vaadin-combo-box 中进行测试。我有两个值:是/否。默认值为“否”。 在测试中我想更改为“是” 我柏树我写道: cy.get('#addressDetails input').should('be.visible').clea...
我是 vaadin 的新手。我有一个电子表格组件,在 Springboot (Java) 的 A 列和 B 列中有两个组合框。我通过电子表格 setSpreadsheetComponentFactory 添加了这些组合框....
Vaadin 示例项目在使用 @ManyToMany 时遇到问题
这是 Vaadin 示例项目遇到 @OneToMany @ManyToOne 问题的后续问题 (为了一次一个问题地提问) 这是我的公共示例项目,它很简单......
我正在使用 vaadin 的登录表单 (LoginOverlay) 登录我的应用程序。 我使用自定义表单区域添加一个语言选择框,可以在其中选择语言 然后将表格发布到
我有一个 Vaadin 网格,我使用 setItems() 手动填充它。当我单击其中一项时,我将其提供给对话框内的 FormLayout 进行编辑。我传递了对我的服务的引用...
Vaadin 示例项目在使用 @OneToMany @ManyToOne
这是我的公共示例项目,它经过简化并重现了我正在努力解决的场景: https://github.com/sketchbook22/help 我正在开发的机器使用的是java版本 java--
如何在Vaadin24中正确使用FormLayout和FlexLayout
我尝试将 3 个项目垂直放置在屏幕左侧(文本字段、日期选择器和选择下拉列表)。然后我想将 3 个选择下拉菜单水平放置在
BeanValidation 错误 - 在类路径上找不到 JSR 303 Bean 验证实现
我正在制作 Vaadin 教程系列。 https://www.youtube.com/watch?v=k-DxZ1reIdM&list=PLcRrh9hGNallPtT2VbUAsrWqvkQ-XE22h&index=11 文字版:https://vaadin.com/learn/tutorials/mod...
将 vaadin 升级到版本 23.3.0 会导致 lombok 停止工作
当我将 vaadin 版本从 23.0.2 升级到 23.3.0 时,出现错误“找不到符号”。这个符号是由lombok生成的,所以我认为由于某种原因lombok已经停止工作了...
如何在 Vaadin Flow 中使用 CSS 文本对齐属性?
我不久前开始学习Vaadin Flow(我了解“核心”Java),但我遇到了一个问题。我在 Vaadin 文档中看到,要设计我们的网页样式,必须进入“frontend/themes/
如何迁移spring(无启动)+vaadin到tomcat 10
我正在尝试将spring(无启动)遗留项目迁移到tomcat 10。 目前该项目的 pom.xml 正在查找: 我正在尝试将 spring(无启动)遗留项目迁移到 tomcat 10。 目前该项目的 pom.xml 正在查找: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <version>4.1.0-SNAPSHOT</version> <groupId>com.mycompany.internal-jar</groupId> <artifactId>internal-jar-war</artifactId> <packaging>war</packaging> <name>internal-jar::internal-jar-war</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <jacoco.skip>true</jacoco.skip> <internal.jar.java.source.version>17</internal.jar.java.source.version> <internal.jar.java.target.version>17</internal.jar.java.target.version> <java.version>17</java.version> <commons-io.version>2.7</commons-io.version> <joda-time.version>2.7</joda-time.version> <log4j.version>2.17.1</log4j.version> <slf4j.version>1.6.1</slf4j.version> <spring.version>6.0.9</spring.version> <vaadin.version>8.23.0</vaadin.version> <fasterxml.jackson.version>2.16.1</fasterxml.jackson.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-framework-bom</artifactId> <version>${spring.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-bom</artifactId> <version>${vaadin.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> <version>2.1.1</version> </dependency> <!-- mycompany --> <dependency> <groupId>com.mycompany.internal-jar</groupId> <artifactId>internal-jar</artifactId> <version>5.0.0-SNAPSHOT</version> </dependency> <!-- UI --> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-spring</artifactId> <version>24.3.3</version> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-compatibility-server</artifactId> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-compatibility-themes</artifactId> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-compatibility-client-compiled</artifactId> </dependency> <!-- Spring --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <exclusions> <exclusion> <artifactId>commons-logging</artifactId> <groupId>commons-logging</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${fasterxml.jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>${fasterxml.jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>${fasterxml.jackson.version}</version> </dependency> <!-- So transacted channels work --> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.8.5</version> <scope>runtime</scope> </dependency> <!-- Logging --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>${log4j.version}</version> </dependency> <!-- Required to override tetris "provided" scope --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> <scope>compile</scope> </dependency> <!-- So Spring logs through LOG4J2 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> <version>${slf4j.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>${log4j.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>5.3</version> </dependency> <dependency> <groupId>jakarta.servlet</groupId> <artifactId>jakarta.servlet-api</artifactId> <version>6.0.0</version> <scope>provided</scope> </dependency> <!-- Apache Commons overrides required by Spring --> <!-- Required to override tetris root version and "provided" scope --> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.6</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.6</version> <scope>runtime</scope> </dependency> <!-- Required to override tetris root "provided" scope --> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>${joda-time.version}</version> <scope>runtime</scope> </dependency> <!-- For JavaMelody monitoring --> <dependency> <groupId>net.bull.javamelody</groupId> <artifactId>javamelody-core</artifactId> <version>1.56.0</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>2.1.7</version> <scope>runtime</scope> <exclusions> <exclusion> <artifactId>bcmail-jdk14</artifactId> <groupId>bouncycastle</groupId> </exclusion> <exclusion> <artifactId>bcprov-jdk14</artifactId> <groupId>bouncycastle</groupId> </exclusion> <exclusion> <artifactId>bctsp-jdk14</artifactId> <groupId>bouncycastle</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>internal-jar</finalName> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0.2</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration>--> <failOnMissingWebXml>false</failOnMissingWebXml>--> </configuration>--> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${internal.jar.java.source.version}</source> <target>${internal.jar.java.target.version}</target> </configuration> </plugin> <plugin> <groupId>org.jfrog.buildinfo</groupId> <artifactId>artifactory-maven-plugin</artifactId> <version>3.6.2</version> <inherited>false</inherited> <executions> <execution> <id>build-info</id> <goals> <goal>publish</goal> </goals> <configuration> <artifactory> <includeEnvVars>true</includeEnvVars> <envVarsExcludePatterns>*password*,*secret*,*key*,*token*,*passphrase*</envVarsExcludePatterns> <timeoutSec>60</timeoutSec> </artifactory> <publisher> <contextUrl>https://mycompanyavm.jfrog.io/artifactory</contextUrl> <username>${artifactory.user}</username> <password>${artifactory.password}</password> <repoKey>libs-release-local</repoKey> <snapshotRepoKey>libs-snapshot-local</snapshotRepoKey> <publishBuildInfo>false</publishBuildInfo> </publisher> </configuration> </execution> </executions> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.xml</include> </includes> </resource> </resources> <testResources> <testResource> <filtering>true</filtering> <directory>src/test/resources</directory> <excludes> <exclude>**/binary/**</exclude> </excludes> </testResource> <testResource> <filtering>false</filtering> <directory>src/test/resources</directory> <includes> <include>**/binary/**</include> </includes> </testResource> </testResources> </build> </project> 当我尝试将 war 文件部署到 tomcat 10 时,我收到了几个我无法识别的异常: java.lang.IllegalStateException: The application Lookup instance is not found in VaadinContext. The instance is supposed to be created by a ServletContainerInitializer. Issues known to cause this problem are: - A Spring Boot application deployed as a war-file but the main application class does not extend SpringBootServletInitializer - An embedded server that is not set up to execute ServletContainerInitializers - Unit tests which do not properly set up the context for the test at com.vaadin.flow.server.startup.ApplicationConfiguration.lambda$get$0(ApplicationConfiguration.java:53) at com.vaadin.flow.server.VaadinServletContext.getAttribute(VaadinServletContext.java:73) at com.vaadin.flow.server.startup.ApplicationConfiguration.get(ApplicationConfiguration.java:47) at com.vaadin.flow.server.DeploymentConfigurationFactory.createPropertyDeploymentConfiguration(DeploymentConfigurationFactory.java:73) at com.vaadin.flow.server.startup.ServletDeployer$StubServletConfig.createDeploymentConfiguration(ServletDeployer.java:139) at com.vaadin.flow.server.startup.ServletDeployer.lambda$getServletConfigurations$0(ServletDeployer.java:198) at java.base/java.util.Optional.ifPresent(Optional.java:178) at com.vaadin.flow.server.startup.ServletDeployer.getServletConfigurations(ServletDeployer.java:197) at com.vaadin.flow.server.startup.ServletDeployer.contextInitialized(ServletDeployer.java:148) at com.vaadin.flow.server.startup.ServletContextListeners.contextInitialized(ServletContextListeners.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4438) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4876) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:712) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1833) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:294) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:814) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:422) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:376) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:294) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:814) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:472) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1472) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1310) at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1412) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) 然后在日志中我看到下一个: SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [transactionalNonGroupChannel] with key 'transactionalNonGroupChannel' at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) at org.springframework.jmx.export.MBeanExporter.lambda$registerBeans$2(MBeanExporter.java:552) at java.base/java.util.HashMap.forEach(HashMap.java:1421) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:552) at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:435) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:984) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:941) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:394) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:274) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:102) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4436) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4876) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:712) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1833) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:294) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:814) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:422) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:376) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:294) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:814) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:472) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1472) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1310) at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1412) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842) Caused by: org.springframework.jmx.export.MBeanExportException: Could not create ModelMBean for managed resource [transactionalNonGroupChannel] with key 'transactionalNonGroupChannel' at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:825) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:678) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ... 56 more Caused by: java.lang.IllegalArgumentException: MetadataMBeanInfoAssembler does not support JDK dynamic proxies - export the target beans directly or use CGLIB proxies instead at org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler.checkManagedBean(MetadataMBeanInfoAssembler.java:114) at org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:64) at org.springframework.jmx.export.MBeanExporter.getMBeanInfo(MBeanExporter.java:847) at org.springframework.jmx.export.MBeanExporter.createAndConfigureMBean(MBeanExporter.java:820) ... 58 more 我终于在终端中多了一个堆栈跟踪 INFO: Closing Spring root WebApplicationContext 24-Jan-2024 16:54:31.787 WARNING [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [internal-jar-war] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 24-Jan-2024 16:54:31.789 WARNING [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [internal-jar-war] appears to have started a thread named [Catalina-utility-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5231) org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1301) org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1305) org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1305) org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1283) [email protected]/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [email protected]/java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:305) [email protected]/java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [email protected]/java.lang.Thread.run(Thread.java:842) [2024-01-24 04:54:31,825] Artifact internal-jar-war:war: Error during artifact deployment. See server log for details. 请帮忙。预先感谢。 更新: 我对我的 pom.xml 进行了以下更改: 提高了vaadin版本。 <vaadin.version>24.3.3</vaadin.version> 添加了 vaadin 依赖项 <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin</artifactId> </dependency> 删除了除 vaadin-spring 之外的所有其他 vaadin 依赖项。 当我这样做时,代码无法编译,因为缺少一些 vaadin 类,例如: import com.vaadin.ui.Button; import com.vaadin.ui.Notification; import com.vaadin.ui.Window; import com.vaadin.ui.FormLayout; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Notification.Type; 所以我添加了以下依赖项: <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-compatibility-server</artifactId> <version>8.23.0</version> </dependency> 所以我能够构建该应用程序。 但是,当我在部署应用程序时,除了之前的异常之外,我在日志中看到了新的异常: SEVERE: Exception sending context destroyed event to listener instance of class [com.vaadin.base.devserver.startup.DevModeStartupListener] java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext 堆栈跟踪出现在原始描述的第二个和第三个跟踪之间。 您有两个选择: 切换到 Vaadin 24,由于框架发生重大变化,这将是一个重大变化 - 这将是一个完整的迁移项目。 获取 Vaadin 8 扩展维护,以及支持 Spring 6、Java 17 等的新 vaadin-spring 版本。第一个测试版刚刚发布,因此您可能需要等待一段时间才能稳定。这也需要商业订阅。
我是 Vaadin (24) 的新手,正在尝试最小化文本字段旁边标签右侧的空间。当我打开页面并检查标签并删除/取消选中 Chrome 中的宽度元素时
如何在生产模式下使用另一个文件夹作为 webapp (Vaadin 23)
我有 vaadin 应用程序(版本 vaadin 23.2.7 和 java 11)。我有问题,我需要为我的应用程序使用图块(地图 OSM),并且此文件需要位于另一个文件夹中(不是 WEB-IN
我有一个 Vaadin 24 项目,我从 /src/main/resources 加载一些静态资源。这在开发模式下运行良好,但当打包为 JAR 时,我所有资源上的 InputStream 均为空。 我
我正在 Vaadin 24 中开发一个应用程序。我有一个使用默认登录组件的登录页面。使用此登录,我想将使用重定向到调用登录页面的 url,但是...
用于 MultiSelectComboBox 的 Vaadin 活页夹
有人可以帮我使用 Vaadin Binder 来实现这个“MultiSelectComboBox”吗? MultiSelectComboBox 组件是否始终需要“Set”作为绑定方法? 我有这样的实体 @实体(...