Have you tried putting your db.properties file under WEB-INF/classes directory?
views:
940answers:
2
A:
Yes, initially the file was under WEB-INF/classes then also we were facing the same issue so we put the file under WEB-INF/classes and WEB-INF/lib (both places)
Vinnie
2009-05-02 09:30:37
+1
A:
Try to change classloader ordering in settings of your ent. application in the admin console (from PARENT_FIRST
to PARENT_LAST
) on both EAR and WAR levels.
It seems to me that 3rd party class (com.myco.wo.vs.util.OrderLovUtilities
) is not loaded from your jar file in WEB-INF/lib, but it is rather comes from some other location on the server. Its classloader then does not see the property file.
If that is the issue, changing the classloader ordering should cause the expected copy of the class to load.
Also, the classloader viewer in the admin console can put some light on that.
david a.
2009-05-05 16:23:13
Made the classloader to PARENT_LAST and it worked like a charm.Thanks a Lot David ...
Vinnie
2009-05-05 18:17:59