• Post Reply Bookmark Topic Watch Topic
  • New Topic

loading properties into the classpath  RSS feed

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I found out that it is possible to load .properties files into the classpath by simply adding them to the WEB-INF/classes directory and then starting Tomcat. Is also possible to load classes by placing them in WEB-INF/lib? Or do the only files loaded from WEB-INF/lib include .jar files?

I have a jar file that is going to run on a 3rd party j2ee application and I do not have access to a classes directory, but I need to add a property file into the classpath.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do the only files loaded from WEB-INF/lib include .jar files?


True.

You either need to put the properties file in the WEB-INF/classes hieararchy, or put it in a jar file to drop into WEB-INF/lib.
 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That works. Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!