在weblogic-properties文件上失败的Spring集成应用程序不存在

时间:2018-01-02 21:24:16

标签: tomcat spring-boot weblogic

2018-01-02 15:55:27 DEBUG ClasspathLoggingApplicationListener:55 - Application failed to start with classpath: unknown
2018-01-02 15:55:27 ERROR SpringApplication:771 - Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed  to parse configuration class [com.tsi.i
ntegration.starter.ApplicationBoot]; nested exception is java.io.FileNotFoundException: class path resource [Application.
properties] cannot be opened because it does not exist at  org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181) at        org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(Configurat
ionClassPostProcessor.java:308)


 Caused by: java.io.FileNotFoundException: class path resource [Application.properties] cannot be opened because it does n
ot exist
    at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
    at org.springframework.core.io.support.EncodedResource.getInputStream(EncodedResource.java:154)
    at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:98)
    at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:72)
    at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:58)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:65)
    at org.springframework.core.io.support.DefaultPropertySourceFactory.createPropertySource(DefaultPropertySourceFactory.java:36)

嗨,我在描述之后丢失了异常格式。所以,我把它放在第一位。我是weblogic的新手。我正在尝试在weblogic中部署spring boot application -war文件。我收到错误,因为application.properties文件不存在。它已成功部署在sts中的嵌入式tomcontainer中。我找到了How to set the classpath of properties file in Weblogic Admin Console?。我没有管理员权限来更改类路径,这需要时间。我没有https://docs.oracle.com/cd/E13222_01/wls/docs/admindocs/classpath.html#weblogic_cp中所述的weblogic安装目录中的weblogicaux.jar或classes目录。有人可以帮我修复这个

感谢您的帮助。

0 个答案:

没有答案