[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Setting Classpath dynamically

fmarchioni do-not-reply at jboss.com
Wed Jul 9 04:34:40 EDT 2008


Hi all !
I have a web application which reads some configuration files (hibernate.cfg.xml ...etc). Until now I have simply placed this files into WEB-INF/classes so that they're visible by the Classpath of the Web Application. Now I have to move them on the root directory of the Web application.

Is there a way to set the classpath to search for files in another location, dynamically ? That is I cannot change the env variable CLASSPATH or the startup script, I need to set up classpath by code or using a property in web.xml file.

Thanks a lot
Francesco



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

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



More information about the jboss-user mailing list