@JFinal 你好,想跟你请教个问题:
应用部署到tomcat之后,报错了,详细内容,请参考以下的粗体黑色文字的内容。另外,部署的时候,已经删除了jetty-server-8.1.8.jar。请帮忙分析是啥原因造成的。
<table border="1" cellspacing="0" cellpadding="0" style="width:100%;border:none;">
<tbody>
<tr>
<td style="border:none;">
<p style="vertical-align:baseline;">
<span style="font-size:9.0pt;font-family:"color:#333333;">#2015-07-05
14:22:18,315 [main] INFO org.apache.catalina.startup.Catalina- Server startup in 5853 ms
#2015-07-05 14:22:18,306 [main] INFO org.apache.coyote.http11.Http11Protocol- Starting ProtocolHandler ["http-bio-18080"]
#2015-07-05 14:22:18,139 [localhost-startStop-1] INFO org.apache.catalina.startup.HostConfig- Deploying web application archive /home/bae/app/ROOT.war |
#2015-07-05 14:22:18,123 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Context [/happyshow] startup failed due to previous errors |
#2015-07-05 14:22:18,123 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Error filterStart |
# at java.lang.Thread.run(Thread.java:724) |
# at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) |
# at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) |
# at java.util.concurrent.FutureTask.run(FutureTask.java:166) |
# at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) |
# at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) |
# at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660) |
# at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983) |
# at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) |
# at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) |
# at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) |
# at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) |
# at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452) |
# at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775) |
# at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) |
# at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) |
# at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) |
# at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49) |
# at com.jfinal.core.JFinal.init(JFinal.java:67) |
# at com.jfinal.core.Config.configJFinal(Config.java:46) |
# at com.chixun.common.Config.configConstant(Config.java:44) |
# at com.jfinal.config.JFinalConfig.loadPropertyFile(JFinalConfig.java:96) |
#java.lang.IllegalArgumentException: Properties file not found: /tmp/tomcat/Catalina/localhost/happyshow/WEB-INF/dev_db_config.txt |
#2015-07-05 14:22:18,121 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/happyshow]- Exception starting filter jfinal |
#2015-07-05 14:22:12,501 [localhost-startStop-1] INFO org.apache.catalina.startup.HostConfig- Deploying web application archive /home/bae/app/happyshow.war |
#2015-07-05 14:22:12,489 [main] INFO org.apache.catalina.core.StandardEngine- Starting Servlet Engine: Apache Tomcat/7.0.47 |
#2015-07-05 14:22:12,489 [main] INFO org.apache.catalina.core.StandardService- Starting service Catalina |
#2015-07-05 14:22:12,461 [main] INFO org.apache.catalina.startup.Catalina- Initialization processed in 682 ms |
#2015-07-05 14:22:12,445 [main] INFO org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-18080"] |
#2015-07-05 14:22:12,219 [main] INFO org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib |
但是,实际上,在打好的happyshow.war中是包含dev_db_config.txt文件的
你查看Tomcat中的这个位置“<spanstyle="font-size:12pt;font-family:'color:red;">/tmp/tomcat/Catalina/localhost/happyshow/WEB-INF/”下,是否存在此.txt配置文件,如果没有,说明有问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。