zengkid / SmartTomcat

The Tomcat plugin for Intellij IDEA
Apache License 2.0
125 stars 56 forks source link

java.io.FileNotFoundException when try to find server.xml #126

Open conhello opened 4 months ago

conhello commented 4 months ago

I have an exception when i try start a Smart Tomcat on IntelliJ Idea, they trow java.io.FileNotFoundException: /Users/franciscoparis/cooltra/projects/etendo/etendo/conf/server.xml (No such file or directory). I try to indicate the conf folder of the tomcat Catalina Base, but when i push the button Start throw me the exception and delete all the content of the conf folder. I Install again the apache Tomcat and try the same steps, and when i push the Start Button, again trows the exception and delete all the content of the folder.

https://i.postimg.cc/fLs3rmyf/Captura-de-pantalla-2024-06-25-a-las-13-44-23-1.png

My partner use: Mac M2 with Sonoma OS v14.5 IntelliJ Idea CE 17.0.11 Apache Tomcat 8.5.82 SmartTomcat 4.7.2

tb12315 commented 4 months ago

你发的邮件我已经收到。会在近期内查看。

zengkid commented 4 months ago

@conhello please update Catalina base, the server.xml full path should be %catalina_base%/conf/server.xml

Sandoramix commented 4 months ago

I have an exception when i try start a Smart Tomcat on IntelliJ Idea, they trow java.io.FileNotFoundException: /Users/franciscoparis/cooltra/projects/etendo/etendo/conf/server.xml (No such file or directory). I try to indicate the conf folder of the tomcat Catalina Base, but when i push the button Start throw me the exception and delete all the content of the conf folder. I Install again the apache Tomcat and try the same steps, and when i push the Start Button, again trows the exception and delete all the content of the folder.

https://i.postimg.cc/fLs3rmyf/Captura-de-pantalla-2024-06-25-a-las-13-44-23-1.png

My partner use: Mac M2 with Sonoma OS v14.5 IntelliJ Idea CE 17.0.11 Apache Tomcat 8.5.82 SmartTomcat 4.7.2

I'm having the same issue here. It was working well with my configuration which i haven't touched for months, but today it suddenly stopped working. I'm using Apache Tomcat/9.0.83; Smart Tomcat 4.7.3; Windows 11 Home 22631.3737; IntelliJ 2024.1.4

oosterholt commented 4 months ago

I have the same issue after updating to 4.7.3. Revert to 4.7.2 fixes the issue. In version 4.7.3, the complete %catalina_base%/conf directory is cleared when Tomcat is started.

yuezk commented 4 months ago

4.7.3 works for me. It looks like two issues.

@conhello For your case, the Catalina base looks changed manually. Can you clear its value and try again?

image

@Sandoramix @oosterholt Is there any error popup when running Tomcat? Please attach them if possible, Thanks.

Darksider3 commented 4 months ago

Same issue for me, the configuration: image

When starting with 4.7.3, Tomcat just throws a file not found error in the .SmartTomcat/$Name/conf, and that's it. If wanted i can surely provide an IntellIJ Log for that, but it's just a simple File not Found. I suspect this is happening because .SmartTomcat/conf is empty?

This is a problem i can observe at work, too, btw. We all just rolled back to 4.7.2 ^^'

PengyuanJiang commented 3 months ago

I have the same issue after updating to 4.7.3. Revert to 4.7.2 fixes the issue. In version 4.7.3, the complete %catalina_base%/conf directory is cleared when Tomcat is started.

I also revert to 4.7.2 and to fixed this issue. The conf directory is cleared when i start smart tomcat

jialin43 commented 3 months ago

This issue also works for me

tb12315 commented 3 months ago

你发的邮件我已经收到。会在近期内查看。

mrgreywater commented 2 months ago

4.7.2 also deletes the conf directory and then complains about the missing server.xml for me. I reverted back to 4.6.1, which works.

kanturkar commented 3 weeks ago

Was anyone able to resolve it? I have tried installing multiple versions (4.7.3, 4.7.2, 4.6.1) of the plugin and still facing the same issue.

tb12315 commented 3 weeks ago

你发的邮件我已经收到。会在近期内查看。

aksovius commented 1 week ago

the same issue. m2 sequoia 15.0.1 but on 4.7.3 . downgraded to 4.7.1