开发者社区> 问答> 正文

应用部署到tomcat之后,报错了,已经删除了jettey相关的jar包?报错

@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文件的

展开
收起
爱吃鱼的程序员 2020-06-14 14:55:25 537 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你查看Tomcat中的这个位置“<spanstyle="font-size:12pt;font-family:'color:red;">/tmp/tomcat/Catalina/localhost/happyshow/WEB-INF/”下,是否存在此.txt配置文件,如果没有,说明有问题。

    2020-06-14 14:55:41
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载