com.intellij.execution.ExecutionException: Cannot load E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml: E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml (系统找不到指定的文件。)

日志显示错误:

2022-05-24 19:50:08,310 [4034000]   INFO - tbrains.idea.tomcat.TomcatUtil - Cannot load E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml: E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml (系统找不到指定的文件。) 
com.intellij.execution.ExecutionException: Cannot load E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml: E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml (系统找不到指定的文件。)
	at org.jetbrains.idea.tomcat.TomcatUtil.loadXMLFile(TomcatUtil.java:210)
	at org.jetbrains.idea.tomcat.TomcatUtil.findContextInContextXml(TomcatUtil.java:109)
	at org.jetbrains.idea.tomcat.TomcatUtil.findContextElement(TomcatUtil.java:383)
	at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl$4.doPerform(TomcatAdminLocalServerImpl.java:129)
	at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl$DeployStep.perform(TomcatAdminLocalServerImpl.java:283)
	at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.doDeploy(TomcatAdminLocalServerImpl.java:132)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$4.doPerform(JavaeeJmxAdminServerBase.java:120)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$JmxOperation.perform(JavaeeJmxAdminServerBase.java:245)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.doStartDeploy(JavaeeJmxAdminServerBase.java:135)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$2.setDeploymentStatus(JavaeeJmxAdminServerBase.java:90)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$DeploymentModelOperation.doSetDeploymentStatus(JavaeeJmxAdminServerBase.java:272)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$3.doPerform(JavaeeJmxAdminServerBase.java:100)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$JmxOperation.perform(JavaeeJmxAdminServerBase.java:245)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.doStartDeployWithUndeploy(JavaeeJmxAdminServerBase.java:107)
	at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.startDeploy(JavaeeJmxAdminServerBase.java:74)
	at org.jetbrains.idea.tomcat.admin.TomcatAdminServerBase.startDeploy(TomcatAdminServerBase.java:121)
	at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.startDeploy(TomcatAdminLocalServerImpl.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.remoteServer.agent.impl.ThreadInvocationHandler.lambda$invoke$0(ThreadInvocationHandler.java:53)
	at com.intellij.remoteServer.agent.impl.ThreadInvocationHandler.lambda$invoke$1(ThreadInvocationHandler.java:97)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:227)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:200)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:194)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: E:\DIRECTION\整理\maven项目\springCRUDWeb项目汇总\springCRUDWeb\target\springCRUDWeb\META-INF\context.xml (系统找不到指定的文件。)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.jetbrains.idea.tomcat.TomcatUtil.loadXMLFile(TomcatUtil.java:205)
	... 32 more

  

代码显示错误:

com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl error 严重: create connection SQLException

  

错误解决:jdbc.properties 里 username 需要加前缀  .username  例如:jdbc.username

i

 

 

 

第二次错误:mysql没有开

解决方法:打开服务-->开启mysql 关闭 mysqlzl

posted on 2022-05-24 20:01  初晓臻  阅读(2406)  评论(0编辑  收藏  举报