无法在Wildfly中使用JNDI部署Spring Boot

时间:2018-12-30 08:03:26

标签: java spring-boot wildfly jndi

我正试图将我的springboot应用程序部署为在Wildfly服务器上使用maven创建的war文件,并遇到以下异常,该异常在经过多次尝试后仍未得到解决。任何帮助或指针都将不胜感激。

谢谢。

请在下面找到异常跟踪。

30 Декабрь

application.properties:

{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"assignment.war\".undertow-deployment" => "java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.boot.autoconfigure.SpringBootApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/data/jdbc/repository/config/JdbcConfiguration.class] cannot be opened because it does not exist
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.boot.autoconfigure.SpringBootApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/data/jdbc/repository/config/JdbcConfiguration.class] cannot be opened because it does not exist
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.boot.autoconfigure.SpringBootApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/data/jdbc/repository/config/JdbcConfiguration.class] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/data/jdbc/repository/config/JdbcConfiguration.class] cannot be opened because it does not exist"}}

JPA(JpaBaseConfiguration,HibernateJpaAutoConfiguration)

spring.datasource.jndi-name=java:/PostgresDS
spring.datasource.driver-class-name=org.postgresql.Driver

还有我的pom.xml是:

spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false

0 个答案:

没有答案