This content has been marked as final.
Show 2 replies
-
1. Re: Properties not visible to WebApp
amit_despande Apr 29, 2007 4:23 AM (in response to seany123)Hi,
Actually your problem is because of class loaders as your war file will have different class loader allocated by tomcat so you will not be able to load your properties file from outside of war file.
the file jboss-service.xml residing in jbossweb-tomcat55.sar\META-INF contains two different options as"<attribute name="Java2ClassLoadingCompliance">false</attribute>"
and
"<attribute name="UseJBossWebLoader">false</attribute>"
if you make these values to true then it will tell the jboss that war won't be having different class loaders anymore. But making these values to true is not a good practice
regards
Amit -
2. Re: Properties not visible to WebApp
seany123 May 2, 2007 4:16 AM (in response to seany123)Hi amit_despande,
Thank you for your response, -your suggestion did the trick!
thanks,
Seam