This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Jul 18, 2013 7:28 AM by Anish joseph  
Anish joseph Newbie 2 posts since
Jul 16, 2013
Currently Being Moderated

Jul 16, 2013 5:15 PM

Adding folder to classpath - tomcat

I feel like a bit of an idiot here but am am frustrated with my attempts to add a folder to the classpath. I am running tomcat from within IJ and i have my properties file in a folder that is not part of source. (src/test/resources)

What i did was to rigt click that folder and mark it as a source folder (which made it turn blue). However when tomcat starts up it does not see the file. I tried making both test and test/resourfces as a source folder but with no success.

 

however if i keep that properties files under src/main/resources all is well.

 

thx in advance

-anish

Michael Golubev JetBrains 92 posts since
Mar 27, 2012
Currently Being Moderated
Jul 17, 2013 1:35 PM in response to: Anish joseph
Re: Adding folder to classpath - tomcat

Hello,

 

Your workflow is not clear for me, please provide more details:

 

How do you deploy the properties file to Tomcat? - is it part of a WAR being deployed to Tomcat?
Do you build your WAR as the IDEA artifact (Project structure->Artifacts) or do you build it externally with maven?

More Like This

  • Retrieving data ...