tomcat not working the same from within IDEA?

Hi!

It seems that running tomcat from within IDEA isn't the same as running it stand alone.

For one, the apps I deploy from IDEA doesn't show up in my normal tomcat directory
Second, I have none-standard directories that our apps read inside tomcat (tomcat/props) and those isn't readable when starting through IDEA.

Are my observations true and are there any workarounds?

cheers.

0
Avatar
Permanently deleted user

Hello,

when IDEA starts Tomcat it set CATALINA_BASE env variable to point to a special directory. It allows to deploy the app without copying to the Tomcat
directory.

How do you obtain path to Tomcat in your web app?

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

I use CATALINA_BASE to point to $CATALINA_BASE/properties to find files we've placed there. However, the "special place" used by idea doesn't have my directories. I've found a dirty work around in placing the files under conf instead (those files gets copied) but that is not a solution for production as more applications uses these files and the same framework.

0
Avatar
Permanently deleted user

You can try to use $CATALINA_HOME instead, it doesn't changed by IDEA.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

请先登录再写评论。