小编Moh*_*han的帖子

在cloudfoundry上发布项目时获取错误java.io.FileNotFoundException(log4j日志文件)

我计划将Web应用程序与mysql服务一起移动到cloudfoundry.但我收到了以下错误.

它与当地环境合作良好.日志文件也生成了.

以下是错误日志:

Jan 5, 2013 7:35:59 AM org.cloudfoundry.reconfiguration.AbstractServiceConfigurer configure
INFO: No beans of type org.springframework.amqp.rabbit.connection.ConnectionFactory found in application context
Jan 5, 2013 7:35:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 5, 2013 7:35:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
log4j:WARN Continuable parsing error 109 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /logs/abc-web.log (No such file or directory)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:177) …
Run Code Online (Sandbox Code Playgroud)

java log4j cloud-foundry

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

cloud-foundry ×1

java ×1

log4j ×1