sách gpt4 ai đã đi

logging - 无法在 Glassfish 4.1 上部署 Spring Boot 应用程序

In lại 作者:行者123 更新时间:2023-12-02 10:28:04 26 4
mua khóa gpt4 Nike

我创建了一个 Spring Boot 应用程序(Webservice Soap)。一切正常,应用程序通过 Spring Boot 中集成的 tomcat 运行良好。当我尝试打包并部署到 Glassfish 4.1 时,出现了一个奇怪的错误。

我的maven配置:



xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0


org.springframework.boot
spring-boot-starter-parent
1.3.0.RELEASE

MyWS
fr.companie
myws
Spring Boot Data JPA Project
1.3

some org


${packaging.type}


1.7
1.7




org.springframework.boot
spring-boot-starter-data-jpa


org.springframework.boot
spring-boot-starter-web


org.springframework.boot
spring-boot-starter-test
test




org.springframework.boot
spring-boot-starter-freemarker


org.springframework.boot
spring-boot-starter-velocity








org.apache.cxf
cxf-rt-frontend-jaxws
3.1.4


org.apache.cxf
cxf-rt-transports-http
3.1.4



commons-codec
commons-codec
1.10


com.oracle
ojdbc6
11.2.0.4







production

war



org.springframework.boot
spring-boot-starter-tomcat
provided




${project.name}


maven-war-plugin

**/*.sql







developpement

true


jar




org.springframework.boot
spring-boot-maven-plugin






以及部署错误:

remote failure: Error occurred during deployment: 
Exception while loading the app : java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException:
org.springframework.context.ApplicationContextException: Unable to start embedded container;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration':
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties
org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration.server;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties'
defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]:
Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError:
Could not initialize class org.jboss.logging.LoggerProviders. Please see server.log for more details.
Command deploy failed.

我尝试添加 jboss 日志记录依赖项和 log4j sl4j 等一个依赖项,但没有成功......:(

帮助:)!

1 Câu trả lời

玻璃鱼中的错误。 4.1.1版本修复

关于logging - 无法在 Glassfish 4.1 上部署 Spring Boot 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34251587/

26 4 0
Bài viết được đề xuất: Lấy giá trị trước đó của hộp văn bản asp.net vb.net
Bài viết được đề xuất: asp.net - 不要在 ASP.NET 中发布特定文件夹
Bài viết được đề xuất: SQL数据库设计
Bài viết được đề xuất: asp.net - 我应该使用 ASP.NET MVC 还是 ASP.NET 4.0 Webforms
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com