[jboss-user] [Beginners Corner] - Re: Properties not visible to WebApp

amit_despande do-not-reply at jboss.com
Sun Apr 29 04:23:20 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041689#4041689

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041689



More information about the jboss-user mailing list